[2025-01-14 00:00:05] Production.INFO: next invoice date [2025-01-14 00:00:05] Production.INFO: 2025-02-14 [2025-01-14 00:00:05] Production.INFO: getdaysdiff [2025-01-14 00:00:05] Production.INFO: +31 [2025-01-14 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (43,10,2,31,31,'RMScheduler',2025-01-14 00:00:05,1,0,,,0) [2025-01-14 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:00:07 [end_date_ymd] => 2025-01-14 00:00:07 [RateCDR] => 1 ) [2025-01-14 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:00:07' and `end` < '2025-01-14 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:00:20] Production.INFO: count ==666 [2025-01-14 00:00:20] Production.ERROR: pbx CDR StartTime 2025-01-13 21:00:07 - End Time 2025-01-14 00:00:07 [2025-01-14 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242466', 'tblTempUsageDetail_20' ) start [2025-01-14 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242466', 'tblTempUsageDetail_20' ) end [2025-01-14 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242466', 'tblTempVendorCDR_20' ) start [2025-01-14 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242466', 'tblTempVendorCDR_20' ) end [2025-01-14 00:00:21] Production.INFO: ProcessCDR(1,14242466,1,1,2) [2025-01-14 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242466', 'tblTempUsageDetail_20' ) start [2025-01-14 00:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242466', 'tblTempUsageDetail_20' ) end [2025-01-14 00:00:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:00:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:00:29] Production.INFO: ==24833== Releasing lock... [2025-01-14 00:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:00:29] Production.INFO: 34.25 MB #Memory Used# [2025-01-14 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:01:05 [end_date_ymd] => 2025-01-14 00:01:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 21:01:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:01:22] Production.INFO: count ==660 [2025-01-14 00:01:22] Production.ERROR: pbx CDR StartTime 2025-01-13 21:01:05 - End Time 2025-01-14 00:01:05 [2025-01-14 00:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242471', 'tblTempUsageDetail_20' ) start [2025-01-14 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242471', 'tblTempUsageDetail_20' ) end [2025-01-14 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242471', 'tblTempVendorCDR_20' ) start [2025-01-14 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242471', 'tblTempVendorCDR_20' ) end [2025-01-14 00:01:22] Production.INFO: ProcessCDR(1,14242471,1,1,2) [2025-01-14 00:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242471', 'tblTempUsageDetail_20' ) start [2025-01-14 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242471', 'tblTempUsageDetail_20' ) end [2025-01-14 00:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:01:27] Production.INFO: ==24919== Releasing lock... [2025-01-14 00:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:01:27] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:02:05 [end_date_ymd] => 2025-01-14 00:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 21:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:02:22] Production.INFO: count ==162 [2025-01-14 00:02:22] Production.ERROR: pbx CDR StartTime 2025-01-13 21:02:05 - End Time 2025-01-14 00:02:05 [2025-01-14 00:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242476', 'tblTempUsageDetail_20' ) start [2025-01-14 00:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242476', 'tblTempUsageDetail_20' ) end [2025-01-14 00:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242476', 'tblTempVendorCDR_20' ) start [2025-01-14 00:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242476', 'tblTempVendorCDR_20' ) end [2025-01-14 00:02:22] Production.INFO: ProcessCDR(1,14242476,1,1,2) [2025-01-14 00:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242476', 'tblTempUsageDetail_20' ) start [2025-01-14 00:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242476', 'tblTempUsageDetail_20' ) end [2025-01-14 00:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:02:26] Production.INFO: ==25000== Releasing lock... [2025-01-14 00:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:02:26] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:03:05 [end_date_ymd] => 2025-01-14 00:03:05 [RateCDR] => 1 ) [2025-01-14 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:03:05' and `end` < '2025-01-14 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:03:18] Production.INFO: count ==162 [2025-01-14 00:03:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:03:05 - End Time 2025-01-14 00:03:05 [2025-01-14 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242481', 'tblTempUsageDetail_20' ) start [2025-01-14 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242481', 'tblTempUsageDetail_20' ) end [2025-01-14 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242481', 'tblTempVendorCDR_20' ) start [2025-01-14 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242481', 'tblTempVendorCDR_20' ) end [2025-01-14 00:03:18] Production.INFO: ProcessCDR(1,14242481,1,1,2) [2025-01-14 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242481', 'tblTempUsageDetail_20' ) start [2025-01-14 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242481', 'tblTempUsageDetail_20' ) end [2025-01-14 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:03:22] Production.INFO: ==25077== Releasing lock... [2025-01-14 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:04:05 [end_date_ymd] => 2025-01-14 00:04:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 21:04:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:04:18] Production.INFO: count ==160 [2025-01-14 00:04:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:04:05 - End Time 2025-01-14 00:04:05 [2025-01-14 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242486', 'tblTempUsageDetail_20' ) start [2025-01-14 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242486', 'tblTempUsageDetail_20' ) end [2025-01-14 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242486', 'tblTempVendorCDR_20' ) start [2025-01-14 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242486', 'tblTempVendorCDR_20' ) end [2025-01-14 00:04:18] Production.INFO: ProcessCDR(1,14242486,1,1,2) [2025-01-14 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242486', 'tblTempUsageDetail_20' ) start [2025-01-14 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242486', 'tblTempUsageDetail_20' ) end [2025-01-14 00:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:04:22] Production.INFO: ==25155== Releasing lock... [2025-01-14 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:05:04 [end_date_ymd] => 2025-01-14 00:05:04 [RateCDR] => 1 ) [2025-01-14 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:05:04' and `end` < '2025-01-14 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:05:20] Production.INFO: count ==160 [2025-01-14 00:05:20] Production.ERROR: pbx CDR StartTime 2025-01-13 21:05:04 - End Time 2025-01-14 00:05:04 [2025-01-14 00:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242488', 'tblTempUsageDetail_20' ) start [2025-01-14 00:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242488', 'tblTempUsageDetail_20' ) end [2025-01-14 00:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242488', 'tblTempVendorCDR_20' ) start [2025-01-14 00:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242488', 'tblTempVendorCDR_20' ) end [2025-01-14 00:05:20] Production.INFO: ProcessCDR(1,14242488,1,1,2) [2025-01-14 00:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242488', 'tblTempUsageDetail_20' ) start [2025-01-14 00:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242488', 'tblTempUsageDetail_20' ) end [2025-01-14 00:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:05:23] Production.INFO: ==25240== Releasing lock... [2025-01-14 00:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:05:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:06:05 [end_date_ymd] => 2025-01-14 00:06:05 [RateCDR] => 1 ) [2025-01-14 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:06:05' and `end` < '2025-01-14 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:06:18] Production.INFO: count ==160 [2025-01-14 00:06:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:06:05 - End Time 2025-01-14 00:06:05 [2025-01-14 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242496', 'tblTempUsageDetail_20' ) start [2025-01-14 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242496', 'tblTempUsageDetail_20' ) end [2025-01-14 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242496', 'tblTempVendorCDR_20' ) start [2025-01-14 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242496', 'tblTempVendorCDR_20' ) end [2025-01-14 00:06:18] Production.INFO: ProcessCDR(1,14242496,1,1,2) [2025-01-14 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242496', 'tblTempUsageDetail_20' ) start [2025-01-14 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242496', 'tblTempUsageDetail_20' ) end [2025-01-14 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:06:21] Production.INFO: ==25324== Releasing lock... [2025-01-14 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:07:05 [end_date_ymd] => 2025-01-14 00:07:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 21:07:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:07:18] Production.INFO: count ==161 [2025-01-14 00:07:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:07:05 - End Time 2025-01-14 00:07:05 [2025-01-14 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242501', 'tblTempUsageDetail_20' ) start [2025-01-14 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242501', 'tblTempUsageDetail_20' ) end [2025-01-14 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242501', 'tblTempVendorCDR_20' ) start [2025-01-14 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242501', 'tblTempVendorCDR_20' ) end [2025-01-14 00:07:18] Production.INFO: ProcessCDR(1,14242501,1,1,2) [2025-01-14 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242501', 'tblTempUsageDetail_20' ) start [2025-01-14 00:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242501', 'tblTempUsageDetail_20' ) end [2025-01-14 00:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:07:23] Production.INFO: ==25445== Releasing lock... [2025-01-14 00:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:07:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:08:05 [end_date_ymd] => 2025-01-14 00:08:05 [RateCDR] => 1 ) [2025-01-14 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:08:05' and `end` < '2025-01-14 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:08:44] Production.INFO: count ==161 [2025-01-14 00:08:44] Production.ERROR: pbx CDR StartTime 2025-01-13 21:08:05 - End Time 2025-01-14 00:08:05 [2025-01-14 00:08:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:08:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242506', 'tblTempUsageDetail_20' ) start [2025-01-14 00:08:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242506', 'tblTempUsageDetail_20' ) end [2025-01-14 00:08:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242506', 'tblTempVendorCDR_20' ) start [2025-01-14 00:08:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242506', 'tblTempVendorCDR_20' ) end [2025-01-14 00:08:44] Production.INFO: ProcessCDR(1,14242506,1,1,2) [2025-01-14 00:08:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:08:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:08:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:08:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:08:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242506', 'tblTempUsageDetail_20' ) start [2025-01-14 00:08:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242506', 'tblTempUsageDetail_20' ) end [2025-01-14 00:08:47] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:08:47] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:08:47] Production.INFO: ==25531== Releasing lock... [2025-01-14 00:08:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:08:47] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:09:05 [end_date_ymd] => 2025-01-14 00:09:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 21:09:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:09:29] Production.INFO: count ==161 [2025-01-14 00:09:29] Production.ERROR: pbx CDR StartTime 2025-01-13 21:09:05 - End Time 2025-01-14 00:09:05 [2025-01-14 00:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242511', 'tblTempUsageDetail_20' ) start [2025-01-14 00:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242511', 'tblTempUsageDetail_20' ) end [2025-01-14 00:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242511', 'tblTempVendorCDR_20' ) start [2025-01-14 00:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242511', 'tblTempVendorCDR_20' ) end [2025-01-14 00:09:29] Production.INFO: ProcessCDR(1,14242511,1,1,2) [2025-01-14 00:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242511', 'tblTempUsageDetail_20' ) start [2025-01-14 00:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242511', 'tblTempUsageDetail_20' ) end [2025-01-14 00:09:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:09:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:09:33] Production.INFO: ==25616== Releasing lock... [2025-01-14 00:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:09:33] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:10:06 [end_date_ymd] => 2025-01-14 00:10:06 [RateCDR] => 1 ) [2025-01-14 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:10:06' and `end` < '2025-01-14 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:10:23] Production.INFO: count ==166 [2025-01-14 00:10:24] Production.ERROR: pbx CDR StartTime 2025-01-13 21:10:06 - End Time 2025-01-14 00:10:06 [2025-01-14 00:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242516', 'tblTempUsageDetail_20' ) start [2025-01-14 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242516', 'tblTempUsageDetail_20' ) end [2025-01-14 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242516', 'tblTempVendorCDR_20' ) start [2025-01-14 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242516', 'tblTempVendorCDR_20' ) end [2025-01-14 00:10:24] Production.INFO: ProcessCDR(1,14242516,1,1,2) [2025-01-14 00:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242516', 'tblTempUsageDetail_20' ) start [2025-01-14 00:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242516', 'tblTempUsageDetail_20' ) end [2025-01-14 00:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:10:27] Production.INFO: ==25701== Releasing lock... [2025-01-14 00:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:10:27] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:11:05 [end_date_ymd] => 2025-01-14 00:11:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 21:11:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:11:18] Production.INFO: count ==193 [2025-01-14 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:11:05 - End Time 2025-01-14 00:11:05 [2025-01-14 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242522', 'tblTempUsageDetail_20' ) start [2025-01-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242522', 'tblTempUsageDetail_20' ) end [2025-01-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242522', 'tblTempVendorCDR_20' ) start [2025-01-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242522', 'tblTempVendorCDR_20' ) end [2025-01-14 00:11:18] Production.INFO: ProcessCDR(1,14242522,1,1,2) [2025-01-14 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242522', 'tblTempUsageDetail_20' ) start [2025-01-14 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242522', 'tblTempUsageDetail_20' ) end [2025-01-14 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:11:22] Production.INFO: ==25795== Releasing lock... [2025-01-14 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:11:22] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:12:05 [end_date_ymd] => 2025-01-14 00:12:05 [RateCDR] => 1 ) [2025-01-14 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:12:05' and `end` < '2025-01-14 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:12:17] Production.INFO: count ==190 [2025-01-14 00:12:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:12:05 - End Time 2025-01-14 00:12:05 [2025-01-14 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242527', 'tblTempUsageDetail_20' ) start [2025-01-14 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242527', 'tblTempUsageDetail_20' ) end [2025-01-14 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242527', 'tblTempVendorCDR_20' ) start [2025-01-14 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242527', 'tblTempVendorCDR_20' ) end [2025-01-14 00:12:17] Production.INFO: ProcessCDR(1,14242527,1,1,2) [2025-01-14 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242527', 'tblTempUsageDetail_20' ) start [2025-01-14 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242527', 'tblTempUsageDetail_20' ) end [2025-01-14 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:12:21] Production.INFO: ==25876== Releasing lock... [2025-01-14 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:13:06 [end_date_ymd] => 2025-01-14 00:13:06 [RateCDR] => 1 ) [2025-01-14 00:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:13:06' and `end` < '2025-01-14 00:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:13:19] Production.INFO: count ==190 [2025-01-14 00:13:19] Production.ERROR: pbx CDR StartTime 2025-01-13 21:13:06 - End Time 2025-01-14 00:13:06 [2025-01-14 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242532', 'tblTempUsageDetail_20' ) start [2025-01-14 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242532', 'tblTempUsageDetail_20' ) end [2025-01-14 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242532', 'tblTempVendorCDR_20' ) start [2025-01-14 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242532', 'tblTempVendorCDR_20' ) end [2025-01-14 00:13:19] Production.INFO: ProcessCDR(1,14242532,1,1,2) [2025-01-14 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242532', 'tblTempUsageDetail_20' ) start [2025-01-14 00:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242532', 'tblTempUsageDetail_20' ) end [2025-01-14 00:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:13:24] Production.INFO: ==25965== Releasing lock... [2025-01-14 00:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:13:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:14:06 [end_date_ymd] => 2025-01-14 00:14:06 [RateCDR] => 1 ) [2025-01-14 00:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:14:06' and `end` < '2025-01-14 00:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:14:27] Production.INFO: count ==190 [2025-01-14 00:14:28] Production.ERROR: pbx CDR StartTime 2025-01-13 21:14:06 - End Time 2025-01-14 00:14:06 [2025-01-14 00:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242537', 'tblTempUsageDetail_20' ) start [2025-01-14 00:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242537', 'tblTempUsageDetail_20' ) end [2025-01-14 00:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242537', 'tblTempVendorCDR_20' ) start [2025-01-14 00:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242537', 'tblTempVendorCDR_20' ) end [2025-01-14 00:14:28] Production.INFO: ProcessCDR(1,14242537,1,1,2) [2025-01-14 00:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242537', 'tblTempUsageDetail_20' ) start [2025-01-14 00:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242537', 'tblTempUsageDetail_20' ) end [2025-01-14 00:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:14:31] Production.INFO: ==26054== Releasing lock... [2025-01-14 00:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:14:31] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:15:05 [end_date_ymd] => 2025-01-14 00:15:05 [RateCDR] => 1 ) [2025-01-14 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:15:05' and `end` < '2025-01-14 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:15:24] Production.INFO: count ==191 [2025-01-14 00:15:24] Production.ERROR: pbx CDR StartTime 2025-01-13 21:15:05 - End Time 2025-01-14 00:15:05 [2025-01-14 00:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242542', 'tblTempUsageDetail_20' ) start [2025-01-14 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242542', 'tblTempUsageDetail_20' ) end [2025-01-14 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242542', 'tblTempVendorCDR_20' ) start [2025-01-14 00:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242542', 'tblTempVendorCDR_20' ) end [2025-01-14 00:15:24] Production.INFO: ProcessCDR(1,14242542,1,1,2) [2025-01-14 00:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242542', 'tblTempUsageDetail_20' ) start [2025-01-14 00:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242542', 'tblTempUsageDetail_20' ) end [2025-01-14 00:15:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:15:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:15:29] Production.INFO: ==26138== Releasing lock... [2025-01-14 00:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:15:29] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:16:06 [end_date_ymd] => 2025-01-14 00:16:06 [RateCDR] => 1 ) [2025-01-14 00:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:16:06' and `end` < '2025-01-14 00:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:16:18] Production.INFO: count ==191 [2025-01-14 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:16:06 - End Time 2025-01-14 00:16:06 [2025-01-14 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242547', 'tblTempUsageDetail_20' ) start [2025-01-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242547', 'tblTempUsageDetail_20' ) end [2025-01-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242547', 'tblTempVendorCDR_20' ) start [2025-01-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242547', 'tblTempVendorCDR_20' ) end [2025-01-14 00:16:18] Production.INFO: ProcessCDR(1,14242547,1,1,2) [2025-01-14 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242547', 'tblTempUsageDetail_20' ) start [2025-01-14 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242547', 'tblTempUsageDetail_20' ) end [2025-01-14 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:16:22] Production.INFO: ==26228== Releasing lock... [2025-01-14 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:16:22] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:17:05 [end_date_ymd] => 2025-01-14 00:17:05 [RateCDR] => 1 ) [2025-01-14 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:17:05' and `end` < '2025-01-14 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:17:18] Production.INFO: count ==190 [2025-01-14 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:17:05 - End Time 2025-01-14 00:17:05 [2025-01-14 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242552', 'tblTempUsageDetail_20' ) start [2025-01-14 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242552', 'tblTempUsageDetail_20' ) end [2025-01-14 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242552', 'tblTempVendorCDR_20' ) start [2025-01-14 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242552', 'tblTempVendorCDR_20' ) end [2025-01-14 00:17:18] Production.INFO: ProcessCDR(1,14242552,1,1,2) [2025-01-14 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242552', 'tblTempUsageDetail_20' ) start [2025-01-14 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242552', 'tblTempUsageDetail_20' ) end [2025-01-14 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:17:21] Production.INFO: ==26313== Releasing lock... [2025-01-14 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:18:05 [end_date_ymd] => 2025-01-14 00:18:05 [RateCDR] => 1 ) [2025-01-14 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:18:05' and `end` < '2025-01-14 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:18:18] Production.INFO: count ==191 [2025-01-14 00:18:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:18:05 - End Time 2025-01-14 00:18:05 [2025-01-14 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242557', 'tblTempUsageDetail_20' ) start [2025-01-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242557', 'tblTempUsageDetail_20' ) end [2025-01-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242557', 'tblTempVendorCDR_20' ) start [2025-01-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242557', 'tblTempVendorCDR_20' ) end [2025-01-14 00:18:18] Production.INFO: ProcessCDR(1,14242557,1,1,2) [2025-01-14 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242557', 'tblTempUsageDetail_20' ) start [2025-01-14 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242557', 'tblTempUsageDetail_20' ) end [2025-01-14 00:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:18:23] Production.INFO: ==26411== Releasing lock... [2025-01-14 00:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:18:23] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:19:05 [end_date_ymd] => 2025-01-14 00:19:05 [RateCDR] => 1 ) [2025-01-14 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:19:05' and `end` < '2025-01-14 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:19:17] Production.INFO: count ==192 [2025-01-14 00:19:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:19:05 - End Time 2025-01-14 00:19:05 [2025-01-14 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242562', 'tblTempUsageDetail_20' ) start [2025-01-14 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242562', 'tblTempUsageDetail_20' ) end [2025-01-14 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242562', 'tblTempVendorCDR_20' ) start [2025-01-14 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242562', 'tblTempVendorCDR_20' ) end [2025-01-14 00:19:17] Production.INFO: ProcessCDR(1,14242562,1,1,2) [2025-01-14 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242562', 'tblTempUsageDetail_20' ) start [2025-01-14 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242562', 'tblTempUsageDetail_20' ) end [2025-01-14 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:19:23] Production.INFO: ==26494== Releasing lock... [2025-01-14 00:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:19:23] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:20:06 [end_date_ymd] => 2025-01-14 00:20:06 [RateCDR] => 1 ) [2025-01-14 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:20:06' and `end` < '2025-01-14 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:20:19] Production.INFO: count ==197 [2025-01-14 00:20:19] Production.ERROR: pbx CDR StartTime 2025-01-13 21:20:06 - End Time 2025-01-14 00:20:06 [2025-01-14 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242568', 'tblTempUsageDetail_20' ) start [2025-01-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242568', 'tblTempUsageDetail_20' ) end [2025-01-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242568', 'tblTempVendorCDR_20' ) start [2025-01-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242568', 'tblTempVendorCDR_20' ) end [2025-01-14 00:20:19] Production.INFO: ProcessCDR(1,14242568,1,1,2) [2025-01-14 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242568', 'tblTempUsageDetail_20' ) start [2025-01-14 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242568', 'tblTempUsageDetail_20' ) end [2025-01-14 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:20:22] Production.INFO: ==26583== Releasing lock... [2025-01-14 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:20:22] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:21:04 [end_date_ymd] => 2025-01-14 00:21:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 21:21:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:21:17] Production.INFO: count ==197 [2025-01-14 00:21:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:21:04 - End Time 2025-01-14 00:21:04 [2025-01-14 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242573', 'tblTempUsageDetail_20' ) start [2025-01-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242573', 'tblTempUsageDetail_20' ) end [2025-01-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242573', 'tblTempVendorCDR_20' ) start [2025-01-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242573', 'tblTempVendorCDR_20' ) end [2025-01-14 00:21:17] Production.INFO: ProcessCDR(1,14242573,1,1,2) [2025-01-14 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242573', 'tblTempUsageDetail_20' ) start [2025-01-14 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242573', 'tblTempUsageDetail_20' ) end [2025-01-14 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:21:20] Production.INFO: ==26667== Releasing lock... [2025-01-14 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:21:20] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:22:05 [end_date_ymd] => 2025-01-14 00:22:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 21:22:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:22:17] Production.INFO: count ==197 [2025-01-14 00:22:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:22:05 - End Time 2025-01-14 00:22:05 [2025-01-14 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242578', 'tblTempUsageDetail_20' ) start [2025-01-14 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242578', 'tblTempUsageDetail_20' ) end [2025-01-14 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242578', 'tblTempVendorCDR_20' ) start [2025-01-14 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242578', 'tblTempVendorCDR_20' ) end [2025-01-14 00:22:17] Production.INFO: ProcessCDR(1,14242578,1,1,2) [2025-01-14 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242578', 'tblTempUsageDetail_20' ) start [2025-01-14 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242578', 'tblTempUsageDetail_20' ) end [2025-01-14 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:22:21] Production.INFO: ==26754== Releasing lock... [2025-01-14 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:22:21] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:23:05 [end_date_ymd] => 2025-01-14 00:23:05 [RateCDR] => 1 ) [2025-01-14 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:23:05' and `end` < '2025-01-14 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:23:18] Production.INFO: count ==194 [2025-01-14 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:23:05 - End Time 2025-01-14 00:23:05 [2025-01-14 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242583', 'tblTempUsageDetail_20' ) start [2025-01-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242583', 'tblTempUsageDetail_20' ) end [2025-01-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242583', 'tblTempVendorCDR_20' ) start [2025-01-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242583', 'tblTempVendorCDR_20' ) end [2025-01-14 00:23:18] Production.INFO: ProcessCDR(1,14242583,1,1,2) [2025-01-14 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242583', 'tblTempUsageDetail_20' ) start [2025-01-14 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242583', 'tblTempUsageDetail_20' ) end [2025-01-14 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:23:21] Production.INFO: ==26875== Releasing lock... [2025-01-14 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:24:06 [end_date_ymd] => 2025-01-14 00:24:06 [RateCDR] => 1 ) [2025-01-14 00:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:24:06' and `end` < '2025-01-14 00:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:24:18] Production.INFO: count ==194 [2025-01-14 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:24:06 - End Time 2025-01-14 00:24:06 [2025-01-14 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242588', 'tblTempUsageDetail_20' ) start [2025-01-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242588', 'tblTempUsageDetail_20' ) end [2025-01-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242588', 'tblTempVendorCDR_20' ) start [2025-01-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242588', 'tblTempVendorCDR_20' ) end [2025-01-14 00:24:18] Production.INFO: ProcessCDR(1,14242588,1,1,2) [2025-01-14 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242588', 'tblTempUsageDetail_20' ) start [2025-01-14 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242588', 'tblTempUsageDetail_20' ) end [2025-01-14 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:24:22] Production.INFO: ==26956== Releasing lock... [2025-01-14 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:24:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:25:05 [end_date_ymd] => 2025-01-14 00:25:05 [RateCDR] => 1 ) [2025-01-14 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:25:05' and `end` < '2025-01-14 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:25:17] Production.INFO: count ==194 [2025-01-14 00:25:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:25:05 - End Time 2025-01-14 00:25:05 [2025-01-14 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242593', 'tblTempUsageDetail_20' ) start [2025-01-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242593', 'tblTempUsageDetail_20' ) end [2025-01-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242593', 'tblTempVendorCDR_20' ) start [2025-01-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242593', 'tblTempVendorCDR_20' ) end [2025-01-14 00:25:17] Production.INFO: ProcessCDR(1,14242593,1,1,2) [2025-01-14 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242593', 'tblTempUsageDetail_20' ) start [2025-01-14 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242593', 'tblTempUsageDetail_20' ) end [2025-01-14 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:25:21] Production.INFO: ==27037== Releasing lock... [2025-01-14 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:26:06 [end_date_ymd] => 2025-01-14 00:26:06 [RateCDR] => 1 ) [2025-01-14 00:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:26:06' and `end` < '2025-01-14 00:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:26:18] Production.INFO: count ==193 [2025-01-14 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:26:06 - End Time 2025-01-14 00:26:06 [2025-01-14 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242598', 'tblTempUsageDetail_20' ) start [2025-01-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242598', 'tblTempUsageDetail_20' ) end [2025-01-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242598', 'tblTempVendorCDR_20' ) start [2025-01-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242598', 'tblTempVendorCDR_20' ) end [2025-01-14 00:26:18] Production.INFO: ProcessCDR(1,14242598,1,1,2) [2025-01-14 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242598', 'tblTempUsageDetail_20' ) start [2025-01-14 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242598', 'tblTempUsageDetail_20' ) end [2025-01-14 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:26:21] Production.INFO: ==27118== Releasing lock... [2025-01-14 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:27:05 [end_date_ymd] => 2025-01-14 00:27:05 [RateCDR] => 1 ) [2025-01-14 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:27:05' and `end` < '2025-01-14 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:27:17] Production.INFO: count ==193 [2025-01-14 00:27:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:27:05 - End Time 2025-01-14 00:27:05 [2025-01-14 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242603', 'tblTempUsageDetail_20' ) start [2025-01-14 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242603', 'tblTempUsageDetail_20' ) end [2025-01-14 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242603', 'tblTempVendorCDR_20' ) start [2025-01-14 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242603', 'tblTempVendorCDR_20' ) end [2025-01-14 00:27:17] Production.INFO: ProcessCDR(1,14242603,1,1,2) [2025-01-14 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242603', 'tblTempUsageDetail_20' ) start [2025-01-14 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242603', 'tblTempUsageDetail_20' ) end [2025-01-14 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:27:21] Production.INFO: ==27193== Releasing lock... [2025-01-14 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:27:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:28:05 [end_date_ymd] => 2025-01-14 00:28:05 [RateCDR] => 1 ) [2025-01-14 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:28:05' and `end` < '2025-01-14 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:28:18] Production.INFO: count ==196 [2025-01-14 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:28:05 - End Time 2025-01-14 00:28:05 [2025-01-14 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242608', 'tblTempUsageDetail_20' ) start [2025-01-14 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242608', 'tblTempUsageDetail_20' ) end [2025-01-14 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242608', 'tblTempVendorCDR_20' ) start [2025-01-14 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242608', 'tblTempVendorCDR_20' ) end [2025-01-14 00:28:18] Production.INFO: ProcessCDR(1,14242608,1,1,2) [2025-01-14 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242608', 'tblTempUsageDetail_20' ) start [2025-01-14 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242608', 'tblTempUsageDetail_20' ) end [2025-01-14 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:28:21] Production.INFO: ==27267== Releasing lock... [2025-01-14 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:28:21] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:29:05 [end_date_ymd] => 2025-01-14 00:29:05 [RateCDR] => 1 ) [2025-01-14 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:29:05' and `end` < '2025-01-14 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:29:17] Production.INFO: count ==196 [2025-01-14 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:29:05 - End Time 2025-01-14 00:29:05 [2025-01-14 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242613', 'tblTempUsageDetail_20' ) start [2025-01-14 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242613', 'tblTempUsageDetail_20' ) end [2025-01-14 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242613', 'tblTempVendorCDR_20' ) start [2025-01-14 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242613', 'tblTempVendorCDR_20' ) end [2025-01-14 00:29:18] Production.INFO: ProcessCDR(1,14242613,1,1,2) [2025-01-14 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242613', 'tblTempUsageDetail_20' ) start [2025-01-14 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242613', 'tblTempUsageDetail_20' ) end [2025-01-14 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:29:21] Production.INFO: ==27342== Releasing lock... [2025-01-14 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:29:21] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:30:06 [end_date_ymd] => 2025-01-14 00:30:06 [RateCDR] => 1 ) [2025-01-14 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:30:06' and `end` < '2025-01-14 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:30:19] Production.INFO: count ==207 [2025-01-14 00:30:19] Production.ERROR: pbx CDR StartTime 2025-01-13 21:30:06 - End Time 2025-01-14 00:30:06 [2025-01-14 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242619', 'tblTempUsageDetail_20' ) start [2025-01-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242619', 'tblTempUsageDetail_20' ) end [2025-01-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242619', 'tblTempVendorCDR_20' ) start [2025-01-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242619', 'tblTempVendorCDR_20' ) end [2025-01-14 00:30:19] Production.INFO: ProcessCDR(1,14242619,1,1,2) [2025-01-14 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242619', 'tblTempUsageDetail_20' ) start [2025-01-14 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242619', 'tblTempUsageDetail_20' ) end [2025-01-14 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:30:22] Production.INFO: ==27422== Releasing lock... [2025-01-14 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:31:05 [end_date_ymd] => 2025-01-14 00:31:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 21:31:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:31:17] Production.INFO: count ==218 [2025-01-14 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:31:05 - End Time 2025-01-14 00:31:05 [2025-01-14 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242624', 'tblTempUsageDetail_20' ) start [2025-01-14 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242624', 'tblTempUsageDetail_20' ) end [2025-01-14 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242624', 'tblTempVendorCDR_20' ) start [2025-01-14 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242624', 'tblTempVendorCDR_20' ) end [2025-01-14 00:31:18] Production.INFO: ProcessCDR(1,14242624,1,1,2) [2025-01-14 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242624', 'tblTempUsageDetail_20' ) start [2025-01-14 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242624', 'tblTempUsageDetail_20' ) end [2025-01-14 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:31:22] Production.INFO: ==27497== Releasing lock... [2025-01-14 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:31:22] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:32:05 [end_date_ymd] => 2025-01-14 00:32:05 [RateCDR] => 1 ) [2025-01-14 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:32:05' and `end` < '2025-01-14 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:32:18] Production.INFO: count ==218 [2025-01-14 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:32:05 - End Time 2025-01-14 00:32:05 [2025-01-14 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242629', 'tblTempUsageDetail_20' ) start [2025-01-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242629', 'tblTempUsageDetail_20' ) end [2025-01-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242629', 'tblTempVendorCDR_20' ) start [2025-01-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242629', 'tblTempVendorCDR_20' ) end [2025-01-14 00:32:18] Production.INFO: ProcessCDR(1,14242629,1,1,2) [2025-01-14 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242629', 'tblTempUsageDetail_20' ) start [2025-01-14 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242629', 'tblTempUsageDetail_20' ) end [2025-01-14 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:32:21] Production.INFO: ==27570== Releasing lock... [2025-01-14 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:32:21] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:33:05 [end_date_ymd] => 2025-01-14 00:33:05 [RateCDR] => 1 ) [2025-01-14 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:33:05' and `end` < '2025-01-14 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:33:17] Production.INFO: count ==217 [2025-01-14 00:33:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:33:05 - End Time 2025-01-14 00:33:05 [2025-01-14 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242634', 'tblTempUsageDetail_20' ) start [2025-01-14 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242634', 'tblTempUsageDetail_20' ) end [2025-01-14 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242634', 'tblTempVendorCDR_20' ) start [2025-01-14 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242634', 'tblTempVendorCDR_20' ) end [2025-01-14 00:33:17] Production.INFO: ProcessCDR(1,14242634,1,1,2) [2025-01-14 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242634', 'tblTempUsageDetail_20' ) start [2025-01-14 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242634', 'tblTempUsageDetail_20' ) end [2025-01-14 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:33:21] Production.INFO: ==27642== Releasing lock... [2025-01-14 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:34:06 [end_date_ymd] => 2025-01-14 00:34:06 [RateCDR] => 1 ) [2025-01-14 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:34:06' and `end` < '2025-01-14 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:34:18] Production.INFO: count ==217 [2025-01-14 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:34:06 - End Time 2025-01-14 00:34:06 [2025-01-14 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242639', 'tblTempUsageDetail_20' ) start [2025-01-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242639', 'tblTempUsageDetail_20' ) end [2025-01-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242639', 'tblTempVendorCDR_20' ) start [2025-01-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242639', 'tblTempVendorCDR_20' ) end [2025-01-14 00:34:18] Production.INFO: ProcessCDR(1,14242639,1,1,2) [2025-01-14 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242639', 'tblTempUsageDetail_20' ) start [2025-01-14 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242639', 'tblTempUsageDetail_20' ) end [2025-01-14 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:34:21] Production.INFO: ==27717== Releasing lock... [2025-01-14 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:35:05 [end_date_ymd] => 2025-01-14 00:35:05 [RateCDR] => 1 ) [2025-01-14 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:35:05' and `end` < '2025-01-14 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:35:17] Production.INFO: count ==216 [2025-01-14 00:35:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:35:05 - End Time 2025-01-14 00:35:05 [2025-01-14 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242644', 'tblTempUsageDetail_20' ) start [2025-01-14 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242644', 'tblTempUsageDetail_20' ) end [2025-01-14 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242644', 'tblTempVendorCDR_20' ) start [2025-01-14 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242644', 'tblTempVendorCDR_20' ) end [2025-01-14 00:35:17] Production.INFO: ProcessCDR(1,14242644,1,1,2) [2025-01-14 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242644', 'tblTempUsageDetail_20' ) start [2025-01-14 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242644', 'tblTempUsageDetail_20' ) end [2025-01-14 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:35:21] Production.INFO: ==27789== Releasing lock... [2025-01-14 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:36:05 [end_date_ymd] => 2025-01-14 00:36:05 [RateCDR] => 1 ) [2025-01-14 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:36:05' and `end` < '2025-01-14 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:36:18] Production.INFO: count ==216 [2025-01-14 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:36:05 - End Time 2025-01-14 00:36:05 [2025-01-14 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242649', 'tblTempUsageDetail_20' ) start [2025-01-14 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242649', 'tblTempUsageDetail_20' ) end [2025-01-14 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242649', 'tblTempVendorCDR_20' ) start [2025-01-14 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242649', 'tblTempVendorCDR_20' ) end [2025-01-14 00:36:18] Production.INFO: ProcessCDR(1,14242649,1,1,2) [2025-01-14 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242649', 'tblTempUsageDetail_20' ) start [2025-01-14 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242649', 'tblTempUsageDetail_20' ) end [2025-01-14 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:36:21] Production.INFO: ==27865== Releasing lock... [2025-01-14 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:36:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:37:04 [end_date_ymd] => 2025-01-14 00:37:04 [RateCDR] => 1 ) [2025-01-14 00:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:37:04' and `end` < '2025-01-14 00:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:37:17] Production.INFO: count ==219 [2025-01-14 00:37:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:37:04 - End Time 2025-01-14 00:37:04 [2025-01-14 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242654', 'tblTempUsageDetail_20' ) start [2025-01-14 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242654', 'tblTempUsageDetail_20' ) end [2025-01-14 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242654', 'tblTempVendorCDR_20' ) start [2025-01-14 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242654', 'tblTempVendorCDR_20' ) end [2025-01-14 00:37:17] Production.INFO: ProcessCDR(1,14242654,1,1,2) [2025-01-14 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242654', 'tblTempUsageDetail_20' ) start [2025-01-14 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242654', 'tblTempUsageDetail_20' ) end [2025-01-14 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:37:20] Production.INFO: ==27941== Releasing lock... [2025-01-14 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:37:20] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:38:05 [end_date_ymd] => 2025-01-14 00:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 21:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:38:18] Production.INFO: count ==219 [2025-01-14 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:38:05 - End Time 2025-01-14 00:38:05 [2025-01-14 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242659', 'tblTempUsageDetail_20' ) start [2025-01-14 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242659', 'tblTempUsageDetail_20' ) end [2025-01-14 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242659', 'tblTempVendorCDR_20' ) start [2025-01-14 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242659', 'tblTempVendorCDR_20' ) end [2025-01-14 00:38:18] Production.INFO: ProcessCDR(1,14242659,1,1,2) [2025-01-14 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242659', 'tblTempUsageDetail_20' ) start [2025-01-14 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242659', 'tblTempUsageDetail_20' ) end [2025-01-14 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:38:22] Production.INFO: ==28020== Releasing lock... [2025-01-14 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:38:22] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:39:05 [end_date_ymd] => 2025-01-14 00:39:05 [RateCDR] => 1 ) [2025-01-14 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:39:05' and `end` < '2025-01-14 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:39:17] Production.INFO: count ==219 [2025-01-14 00:39:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:39:05 - End Time 2025-01-14 00:39:05 [2025-01-14 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242664', 'tblTempUsageDetail_20' ) start [2025-01-14 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242664', 'tblTempUsageDetail_20' ) end [2025-01-14 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242664', 'tblTempVendorCDR_20' ) start [2025-01-14 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242664', 'tblTempVendorCDR_20' ) end [2025-01-14 00:39:17] Production.INFO: ProcessCDR(1,14242664,1,1,2) [2025-01-14 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242664', 'tblTempUsageDetail_20' ) start [2025-01-14 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242664', 'tblTempUsageDetail_20' ) end [2025-01-14 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:39:21] Production.INFO: ==28131== Releasing lock... [2025-01-14 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:39:21] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:40:07 [end_date_ymd] => 2025-01-14 00:40:07 [RateCDR] => 1 ) [2025-01-14 00:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:40:07' and `end` < '2025-01-14 00:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:40:20] Production.INFO: count ==230 [2025-01-14 00:40:20] Production.ERROR: pbx CDR StartTime 2025-01-13 21:40:07 - End Time 2025-01-14 00:40:07 [2025-01-14 00:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242670', 'tblTempUsageDetail_20' ) start [2025-01-14 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242670', 'tblTempUsageDetail_20' ) end [2025-01-14 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242670', 'tblTempVendorCDR_20' ) start [2025-01-14 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242670', 'tblTempVendorCDR_20' ) end [2025-01-14 00:40:20] Production.INFO: ProcessCDR(1,14242670,1,1,2) [2025-01-14 00:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242670', 'tblTempUsageDetail_20' ) start [2025-01-14 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242670', 'tblTempUsageDetail_20' ) end [2025-01-14 00:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:40:25] Production.INFO: ==28207== Releasing lock... [2025-01-14 00:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:40:25] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:41:05 [end_date_ymd] => 2025-01-14 00:41:05 [RateCDR] => 1 ) [2025-01-14 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:41:05' and `end` < '2025-01-14 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:41:17] Production.INFO: count ==239 [2025-01-14 00:41:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:41:05 - End Time 2025-01-14 00:41:05 [2025-01-14 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242675', 'tblTempUsageDetail_20' ) start [2025-01-14 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242675', 'tblTempUsageDetail_20' ) end [2025-01-14 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242675', 'tblTempVendorCDR_20' ) start [2025-01-14 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242675', 'tblTempVendorCDR_20' ) end [2025-01-14 00:41:17] Production.INFO: ProcessCDR(1,14242675,1,1,2) [2025-01-14 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242675', 'tblTempUsageDetail_20' ) start [2025-01-14 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242675', 'tblTempUsageDetail_20' ) end [2025-01-14 00:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:41:20] Production.INFO: ==28281== Releasing lock... [2025-01-14 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:41:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:42:05 [end_date_ymd] => 2025-01-14 00:42:05 [RateCDR] => 1 ) [2025-01-14 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:42:05' and `end` < '2025-01-14 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:42:18] Production.INFO: count ==239 [2025-01-14 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:42:05 - End Time 2025-01-14 00:42:05 [2025-01-14 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242680', 'tblTempUsageDetail_20' ) start [2025-01-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242680', 'tblTempUsageDetail_20' ) end [2025-01-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242680', 'tblTempVendorCDR_20' ) start [2025-01-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242680', 'tblTempVendorCDR_20' ) end [2025-01-14 00:42:18] Production.INFO: ProcessCDR(1,14242680,1,1,2) [2025-01-14 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242680', 'tblTempUsageDetail_20' ) start [2025-01-14 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242680', 'tblTempUsageDetail_20' ) end [2025-01-14 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:42:21] Production.INFO: ==28362== Releasing lock... [2025-01-14 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:43:04 [end_date_ymd] => 2025-01-14 00:43:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 21:43:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:43:17] Production.INFO: count ==239 [2025-01-14 00:43:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:43:04 - End Time 2025-01-14 00:43:04 [2025-01-14 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242685', 'tblTempUsageDetail_20' ) start [2025-01-14 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242685', 'tblTempUsageDetail_20' ) end [2025-01-14 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242685', 'tblTempVendorCDR_20' ) start [2025-01-14 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242685', 'tblTempVendorCDR_20' ) end [2025-01-14 00:43:17] Production.INFO: ProcessCDR(1,14242685,1,1,2) [2025-01-14 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242685', 'tblTempUsageDetail_20' ) start [2025-01-14 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242685', 'tblTempUsageDetail_20' ) end [2025-01-14 00:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:43:20] Production.INFO: ==28440== Releasing lock... [2025-01-14 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:43:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:44:06 [end_date_ymd] => 2025-01-14 00:44:06 [RateCDR] => 1 ) [2025-01-14 00:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:44:06' and `end` < '2025-01-14 00:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:44:18] Production.INFO: count ==239 [2025-01-14 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:44:06 - End Time 2025-01-14 00:44:06 [2025-01-14 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242690', 'tblTempUsageDetail_20' ) start [2025-01-14 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242690', 'tblTempUsageDetail_20' ) end [2025-01-14 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242690', 'tblTempVendorCDR_20' ) start [2025-01-14 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242690', 'tblTempVendorCDR_20' ) end [2025-01-14 00:44:18] Production.INFO: ProcessCDR(1,14242690,1,1,2) [2025-01-14 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242690', 'tblTempUsageDetail_20' ) start [2025-01-14 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242690', 'tblTempUsageDetail_20' ) end [2025-01-14 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:44:22] Production.INFO: ==28518== Releasing lock... [2025-01-14 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:45:04 [end_date_ymd] => 2025-01-14 00:45:04 [RateCDR] => 1 ) [2025-01-14 00:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:45:04' and `end` < '2025-01-14 00:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:45:17] Production.INFO: count ==239 [2025-01-14 00:45:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:45:04 - End Time 2025-01-14 00:45:04 [2025-01-14 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242695', 'tblTempUsageDetail_20' ) start [2025-01-14 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242695', 'tblTempUsageDetail_20' ) end [2025-01-14 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242695', 'tblTempVendorCDR_20' ) start [2025-01-14 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242695', 'tblTempVendorCDR_20' ) end [2025-01-14 00:45:17] Production.INFO: ProcessCDR(1,14242695,1,1,2) [2025-01-14 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242695', 'tblTempUsageDetail_20' ) start [2025-01-14 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242695', 'tblTempUsageDetail_20' ) end [2025-01-14 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:45:20] Production.INFO: ==28600== Releasing lock... [2025-01-14 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:45:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:46:06 [end_date_ymd] => 2025-01-14 00:46:06 [RateCDR] => 1 ) [2025-01-14 00:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:46:06' and `end` < '2025-01-14 00:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:46:19] Production.INFO: count ==237 [2025-01-14 00:46:19] Production.ERROR: pbx CDR StartTime 2025-01-13 21:46:06 - End Time 2025-01-14 00:46:06 [2025-01-14 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242700', 'tblTempUsageDetail_20' ) start [2025-01-14 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242700', 'tblTempUsageDetail_20' ) end [2025-01-14 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242700', 'tblTempVendorCDR_20' ) start [2025-01-14 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242700', 'tblTempVendorCDR_20' ) end [2025-01-14 00:46:19] Production.INFO: ProcessCDR(1,14242700,1,1,2) [2025-01-14 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242700', 'tblTempUsageDetail_20' ) start [2025-01-14 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242700', 'tblTempUsageDetail_20' ) end [2025-01-14 00:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:46:23] Production.INFO: ==28702== Releasing lock... [2025-01-14 00:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:46:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:47:05 [end_date_ymd] => 2025-01-14 00:47:05 [RateCDR] => 1 ) [2025-01-14 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:47:05' and `end` < '2025-01-14 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:47:17] Production.INFO: count ==236 [2025-01-14 00:47:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:47:05 - End Time 2025-01-14 00:47:05 [2025-01-14 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242705', 'tblTempUsageDetail_20' ) start [2025-01-14 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242705', 'tblTempUsageDetail_20' ) end [2025-01-14 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242705', 'tblTempVendorCDR_20' ) start [2025-01-14 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242705', 'tblTempVendorCDR_20' ) end [2025-01-14 00:47:17] Production.INFO: ProcessCDR(1,14242705,1,1,2) [2025-01-14 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242705', 'tblTempUsageDetail_20' ) start [2025-01-14 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242705', 'tblTempUsageDetail_20' ) end [2025-01-14 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:47:21] Production.INFO: ==28802== Releasing lock... [2025-01-14 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:47:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:48:05 [end_date_ymd] => 2025-01-14 00:48:05 [RateCDR] => 1 ) [2025-01-14 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:48:05' and `end` < '2025-01-14 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:48:17] Production.INFO: count ==236 [2025-01-14 00:48:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:48:05 - End Time 2025-01-14 00:48:05 [2025-01-14 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242710', 'tblTempUsageDetail_20' ) start [2025-01-14 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242710', 'tblTempUsageDetail_20' ) end [2025-01-14 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242710', 'tblTempVendorCDR_20' ) start [2025-01-14 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242710', 'tblTempVendorCDR_20' ) end [2025-01-14 00:48:17] Production.INFO: ProcessCDR(1,14242710,1,1,2) [2025-01-14 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242710', 'tblTempUsageDetail_20' ) start [2025-01-14 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242710', 'tblTempUsageDetail_20' ) end [2025-01-14 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:48:21] Production.INFO: ==28913== Releasing lock... [2025-01-14 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:48:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:49:06 [end_date_ymd] => 2025-01-14 00:49:06 [RateCDR] => 1 ) [2025-01-14 00:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:49:06' and `end` < '2025-01-14 00:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:49:19] Production.INFO: count ==235 [2025-01-14 00:49:19] Production.ERROR: pbx CDR StartTime 2025-01-13 21:49:06 - End Time 2025-01-14 00:49:06 [2025-01-14 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242715', 'tblTempUsageDetail_20' ) start [2025-01-14 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242715', 'tblTempUsageDetail_20' ) end [2025-01-14 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242715', 'tblTempVendorCDR_20' ) start [2025-01-14 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242715', 'tblTempVendorCDR_20' ) end [2025-01-14 00:49:19] Production.INFO: ProcessCDR(1,14242715,1,1,2) [2025-01-14 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242715', 'tblTempUsageDetail_20' ) start [2025-01-14 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242715', 'tblTempUsageDetail_20' ) end [2025-01-14 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:49:22] Production.INFO: ==29013== Releasing lock... [2025-01-14 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:50:06 [end_date_ymd] => 2025-01-14 00:50:06 [RateCDR] => 1 ) [2025-01-14 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:50:06' and `end` < '2025-01-14 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:50:19] Production.INFO: count ==243 [2025-01-14 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-13 21:50:06 - End Time 2025-01-14 00:50:06 [2025-01-14 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242721', 'tblTempUsageDetail_20' ) start [2025-01-14 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242721', 'tblTempUsageDetail_20' ) end [2025-01-14 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242721', 'tblTempVendorCDR_20' ) start [2025-01-14 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242721', 'tblTempVendorCDR_20' ) end [2025-01-14 00:50:19] Production.INFO: ProcessCDR(1,14242721,1,1,2) [2025-01-14 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242721', 'tblTempUsageDetail_20' ) start [2025-01-14 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242721', 'tblTempUsageDetail_20' ) end [2025-01-14 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:50:22] Production.INFO: ==29124== Releasing lock... [2025-01-14 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:51:06 [end_date_ymd] => 2025-01-14 00:51:06 [RateCDR] => 1 ) [2025-01-14 00:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:51:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 00:51:19] Production.INFO: count ==243 [2025-01-14 00:51:19] Production.ERROR: pbx CDR StartTime 2025-01-13 21:51:06 - End Time 2025-01-14 00:51:06 [2025-01-14 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242726', 'tblTempUsageDetail_20' ) start [2025-01-14 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242726', 'tblTempUsageDetail_20' ) end [2025-01-14 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242726', 'tblTempVendorCDR_20' ) start [2025-01-14 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242726', 'tblTempVendorCDR_20' ) end [2025-01-14 00:51:19] Production.INFO: ProcessCDR(1,14242726,1,1,2) [2025-01-14 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242726', 'tblTempUsageDetail_20' ) start [2025-01-14 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242726', 'tblTempUsageDetail_20' ) end [2025-01-14 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:51:22] Production.INFO: ==29232== Releasing lock... [2025-01-14 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:51:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:52:05 [end_date_ymd] => 2025-01-14 00:52:05 [RateCDR] => 1 ) [2025-01-14 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:52:05' and `end` < '2025-01-14 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:52:20] Production.INFO: count ==243 [2025-01-14 00:52:20] Production.ERROR: pbx CDR StartTime 2025-01-13 21:52:05 - End Time 2025-01-14 00:52:05 [2025-01-14 00:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242731', 'tblTempUsageDetail_20' ) start [2025-01-14 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242731', 'tblTempUsageDetail_20' ) end [2025-01-14 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242731', 'tblTempVendorCDR_20' ) start [2025-01-14 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242731', 'tblTempVendorCDR_20' ) end [2025-01-14 00:52:20] Production.INFO: ProcessCDR(1,14242731,1,1,2) [2025-01-14 00:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242731', 'tblTempUsageDetail_20' ) start [2025-01-14 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242731', 'tblTempUsageDetail_20' ) end [2025-01-14 00:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:52:23] Production.INFO: ==29338== Releasing lock... [2025-01-14 00:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:52:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:53:06 [end_date_ymd] => 2025-01-14 00:53:06 [RateCDR] => 1 ) [2025-01-14 00:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:53:06' and `end` < '2025-01-14 00:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:53:18] Production.INFO: count ==242 [2025-01-14 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:53:06 - End Time 2025-01-14 00:53:06 [2025-01-14 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242736', 'tblTempUsageDetail_20' ) start [2025-01-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242736', 'tblTempUsageDetail_20' ) end [2025-01-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242736', 'tblTempVendorCDR_20' ) start [2025-01-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242736', 'tblTempVendorCDR_20' ) end [2025-01-14 00:53:18] Production.INFO: ProcessCDR(1,14242736,1,1,2) [2025-01-14 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242736', 'tblTempUsageDetail_20' ) start [2025-01-14 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242736', 'tblTempUsageDetail_20' ) end [2025-01-14 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:53:21] Production.INFO: ==29440== Releasing lock... [2025-01-14 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:54:06 [end_date_ymd] => 2025-01-14 00:54:06 [RateCDR] => 1 ) [2025-01-14 00:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:54:06' and `end` < '2025-01-14 00:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:54:18] Production.INFO: count ==227 [2025-01-14 00:54:18] Production.ERROR: pbx CDR StartTime 2025-01-13 21:54:06 - End Time 2025-01-14 00:54:06 [2025-01-14 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242741', 'tblTempUsageDetail_20' ) start [2025-01-14 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242741', 'tblTempUsageDetail_20' ) end [2025-01-14 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242741', 'tblTempVendorCDR_20' ) start [2025-01-14 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242741', 'tblTempVendorCDR_20' ) end [2025-01-14 00:54:18] Production.INFO: ProcessCDR(1,14242741,1,1,2) [2025-01-14 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242741', 'tblTempUsageDetail_20' ) start [2025-01-14 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242741', 'tblTempUsageDetail_20' ) end [2025-01-14 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:54:22] Production.INFO: ==29582== Releasing lock... [2025-01-14 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:55:05 [end_date_ymd] => 2025-01-14 00:55:05 [RateCDR] => 1 ) [2025-01-14 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:55:05' and `end` < '2025-01-14 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:55:17] Production.INFO: count ==226 [2025-01-14 00:55:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:55:05 - End Time 2025-01-14 00:55:05 [2025-01-14 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242746', 'tblTempUsageDetail_20' ) start [2025-01-14 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242746', 'tblTempUsageDetail_20' ) end [2025-01-14 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242746', 'tblTempVendorCDR_20' ) start [2025-01-14 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242746', 'tblTempVendorCDR_20' ) end [2025-01-14 00:55:18] Production.INFO: ProcessCDR(1,14242746,1,1,2) [2025-01-14 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242746', 'tblTempUsageDetail_20' ) start [2025-01-14 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242746', 'tblTempUsageDetail_20' ) end [2025-01-14 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:55:21] Production.INFO: ==29687== Releasing lock... [2025-01-14 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:55:21] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:56:05 [end_date_ymd] => 2025-01-14 00:56:05 [RateCDR] => 1 ) [2025-01-14 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:56:05' and `end` < '2025-01-14 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:56:20] Production.INFO: count ==226 [2025-01-14 00:56:20] Production.ERROR: pbx CDR StartTime 2025-01-13 21:56:05 - End Time 2025-01-14 00:56:05 [2025-01-14 00:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242750', 'tblTempUsageDetail_20' ) start [2025-01-14 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242750', 'tblTempUsageDetail_20' ) end [2025-01-14 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242750', 'tblTempVendorCDR_20' ) start [2025-01-14 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242750', 'tblTempVendorCDR_20' ) end [2025-01-14 00:56:20] Production.INFO: ProcessCDR(1,14242750,1,1,2) [2025-01-14 00:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242750', 'tblTempUsageDetail_20' ) start [2025-01-14 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242750', 'tblTempUsageDetail_20' ) end [2025-01-14 00:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:56:23] Production.INFO: ==29790== Releasing lock... [2025-01-14 00:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:56:23] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:57:04 [end_date_ymd] => 2025-01-14 00:57:04 [RateCDR] => 1 ) [2025-01-14 00:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:57:04' and `end` < '2025-01-14 00:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:57:17] Production.INFO: count ==226 [2025-01-14 00:57:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:57:04 - End Time 2025-01-14 00:57:04 [2025-01-14 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242756', 'tblTempUsageDetail_20' ) start [2025-01-14 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242756', 'tblTempUsageDetail_20' ) end [2025-01-14 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242756', 'tblTempVendorCDR_20' ) start [2025-01-14 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242756', 'tblTempVendorCDR_20' ) end [2025-01-14 00:57:17] Production.INFO: ProcessCDR(1,14242756,1,1,2) [2025-01-14 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242756', 'tblTempUsageDetail_20' ) start [2025-01-14 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242756', 'tblTempUsageDetail_20' ) end [2025-01-14 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:57:20] Production.INFO: ==29897== Releasing lock... [2025-01-14 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:57:20] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:58:05 [end_date_ymd] => 2025-01-14 00:58:05 [RateCDR] => 1 ) [2025-01-14 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:58:05' and `end` < '2025-01-14 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:58:17] Production.INFO: count ==233 [2025-01-14 00:58:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:58:05 - End Time 2025-01-14 00:58:05 [2025-01-14 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242761', 'tblTempUsageDetail_20' ) start [2025-01-14 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242761', 'tblTempUsageDetail_20' ) end [2025-01-14 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242761', 'tblTempVendorCDR_20' ) start [2025-01-14 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242761', 'tblTempVendorCDR_20' ) end [2025-01-14 00:58:17] Production.INFO: ProcessCDR(1,14242761,1,1,2) [2025-01-14 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242761', 'tblTempUsageDetail_20' ) start [2025-01-14 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242761', 'tblTempUsageDetail_20' ) end [2025-01-14 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:58:21] Production.INFO: ==30004== Releasing lock... [2025-01-14 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:58:21] Production.INFO: 30 MB #Memory Used# [2025-01-14 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 21:59:05 [end_date_ymd] => 2025-01-14 00:59:05 [RateCDR] => 1 ) [2025-01-14 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 21:59:05' and `end` < '2025-01-14 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 00:59:17] Production.INFO: count ==232 [2025-01-14 00:59:17] Production.ERROR: pbx CDR StartTime 2025-01-13 21:59:05 - End Time 2025-01-14 00:59:05 [2025-01-14 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242766', 'tblTempUsageDetail_20' ) start [2025-01-14 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242766', 'tblTempUsageDetail_20' ) end [2025-01-14 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242766', 'tblTempVendorCDR_20' ) start [2025-01-14 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242766', 'tblTempVendorCDR_20' ) end [2025-01-14 00:59:17] Production.INFO: ProcessCDR(1,14242766,1,1,2) [2025-01-14 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242766', 'tblTempUsageDetail_20' ) start [2025-01-14 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242766', 'tblTempUsageDetail_20' ) end [2025-01-14 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 00:59:21] Production.INFO: ==30102== Releasing lock... [2025-01-14 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 00:59:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:00:06 [end_date_ymd] => 2025-01-14 01:00:06 [RateCDR] => 1 ) [2025-01-14 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:00:06' and `end` < '2025-01-14 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:00:18] Production.INFO: count ==234 [2025-01-14 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:00:06 - End Time 2025-01-14 01:00:06 [2025-01-14 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242772', 'tblTempUsageDetail_20' ) start [2025-01-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242772', 'tblTempUsageDetail_20' ) end [2025-01-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242772', 'tblTempVendorCDR_20' ) start [2025-01-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242772', 'tblTempVendorCDR_20' ) end [2025-01-14 01:00:18] Production.INFO: ProcessCDR(1,14242772,1,1,2) [2025-01-14 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242772', 'tblTempUsageDetail_20' ) start [2025-01-14 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242772', 'tblTempUsageDetail_20' ) end [2025-01-14 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:00:22] Production.INFO: ==30205== Releasing lock... [2025-01-14 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:00:22] Production.INFO: 30 MB #Memory Used# [2025-01-14 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:01:05 [end_date_ymd] => 2025-01-14 01:01:05 [RateCDR] => 1 ) [2025-01-14 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:01:05' and `end` < '2025-01-14 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:01:18] Production.INFO: count ==233 [2025-01-14 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:01:05 - End Time 2025-01-14 01:01:05 [2025-01-14 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242777', 'tblTempUsageDetail_20' ) start [2025-01-14 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242777', 'tblTempUsageDetail_20' ) end [2025-01-14 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242777', 'tblTempVendorCDR_20' ) start [2025-01-14 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242777', 'tblTempVendorCDR_20' ) end [2025-01-14 01:01:18] Production.INFO: ProcessCDR(1,14242777,1,1,2) [2025-01-14 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242777', 'tblTempUsageDetail_20' ) start [2025-01-14 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242777', 'tblTempUsageDetail_20' ) end [2025-01-14 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:01:21] Production.INFO: ==30317== Releasing lock... [2025-01-14 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:02:05 [end_date_ymd] => 2025-01-14 01:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 22:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 01:02:19] Production.INFO: count ==232 [2025-01-14 01:02:19] Production.ERROR: pbx CDR StartTime 2025-01-13 22:02:05 - End Time 2025-01-14 01:02:05 [2025-01-14 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242782', 'tblTempUsageDetail_20' ) start [2025-01-14 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242782', 'tblTempUsageDetail_20' ) end [2025-01-14 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242782', 'tblTempVendorCDR_20' ) start [2025-01-14 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242782', 'tblTempVendorCDR_20' ) end [2025-01-14 01:02:19] Production.INFO: ProcessCDR(1,14242782,1,1,2) [2025-01-14 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242782', 'tblTempUsageDetail_20' ) start [2025-01-14 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242782', 'tblTempUsageDetail_20' ) end [2025-01-14 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:02:22] Production.INFO: ==30414== Releasing lock... [2025-01-14 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:03:05 [end_date_ymd] => 2025-01-14 01:03:05 [RateCDR] => 1 ) [2025-01-14 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:03:05' and `end` < '2025-01-14 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:03:18] Production.INFO: count ==231 [2025-01-14 01:03:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:03:05 - End Time 2025-01-14 01:03:05 [2025-01-14 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242787', 'tblTempUsageDetail_20' ) start [2025-01-14 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242787', 'tblTempUsageDetail_20' ) end [2025-01-14 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242787', 'tblTempVendorCDR_20' ) start [2025-01-14 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242787', 'tblTempVendorCDR_20' ) end [2025-01-14 01:03:18] Production.INFO: ProcessCDR(1,14242787,1,1,2) [2025-01-14 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242787', 'tblTempUsageDetail_20' ) start [2025-01-14 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242787', 'tblTempUsageDetail_20' ) end [2025-01-14 01:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:03:23] Production.INFO: ==30517== Releasing lock... [2025-01-14 01:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:03:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 01:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:04:04 [end_date_ymd] => 2025-01-14 01:04:04 [RateCDR] => 1 ) [2025-01-14 01:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:04:04' and `end` < '2025-01-14 01:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:04:18] Production.INFO: count ==230 [2025-01-14 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:04:04 - End Time 2025-01-14 01:04:04 [2025-01-14 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242790', 'tblTempUsageDetail_20' ) start [2025-01-14 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242790', 'tblTempUsageDetail_20' ) end [2025-01-14 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242790', 'tblTempVendorCDR_20' ) start [2025-01-14 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242790', 'tblTempVendorCDR_20' ) end [2025-01-14 01:04:18] Production.INFO: ProcessCDR(1,14242790,1,1,2) [2025-01-14 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242790', 'tblTempUsageDetail_20' ) start [2025-01-14 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242790', 'tblTempUsageDetail_20' ) end [2025-01-14 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:04:21] Production.INFO: ==30608== Releasing lock... [2025-01-14 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:05:05 [end_date_ymd] => 2025-01-14 01:05:05 [RateCDR] => 1 ) [2025-01-14 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:05:05' and `end` < '2025-01-14 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:05:20] Production.INFO: count ==229 [2025-01-14 01:05:20] Production.ERROR: pbx CDR StartTime 2025-01-13 22:05:05 - End Time 2025-01-14 01:05:05 [2025-01-14 01:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242797', 'tblTempUsageDetail_20' ) start [2025-01-14 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242797', 'tblTempUsageDetail_20' ) end [2025-01-14 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242797', 'tblTempVendorCDR_20' ) start [2025-01-14 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242797', 'tblTempVendorCDR_20' ) end [2025-01-14 01:05:20] Production.INFO: ProcessCDR(1,14242797,1,1,2) [2025-01-14 01:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242797', 'tblTempUsageDetail_20' ) start [2025-01-14 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242797', 'tblTempUsageDetail_20' ) end [2025-01-14 01:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:05:23] Production.INFO: ==30704== Releasing lock... [2025-01-14 01:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:05:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:06:05 [end_date_ymd] => 2025-01-14 01:06:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 22:06:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 01:06:17] Production.INFO: count ==227 [2025-01-14 01:06:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:06:05 - End Time 2025-01-14 01:06:05 [2025-01-14 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242802', 'tblTempUsageDetail_20' ) start [2025-01-14 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242802', 'tblTempUsageDetail_20' ) end [2025-01-14 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242802', 'tblTempVendorCDR_20' ) start [2025-01-14 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242802', 'tblTempVendorCDR_20' ) end [2025-01-14 01:06:17] Production.INFO: ProcessCDR(1,14242802,1,1,2) [2025-01-14 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242802', 'tblTempUsageDetail_20' ) start [2025-01-14 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242802', 'tblTempUsageDetail_20' ) end [2025-01-14 01:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:06:20] Production.INFO: ==30793== Releasing lock... [2025-01-14 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:06:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:07:05 [end_date_ymd] => 2025-01-14 01:07:05 [RateCDR] => 1 ) [2025-01-14 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:07:05' and `end` < '2025-01-14 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:07:18] Production.INFO: count ==226 [2025-01-14 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:07:05 - End Time 2025-01-14 01:07:05 [2025-01-14 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242807', 'tblTempUsageDetail_20' ) start [2025-01-14 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242807', 'tblTempUsageDetail_20' ) end [2025-01-14 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242807', 'tblTempVendorCDR_20' ) start [2025-01-14 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242807', 'tblTempVendorCDR_20' ) end [2025-01-14 01:07:18] Production.INFO: ProcessCDR(1,14242807,1,1,2) [2025-01-14 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242807', 'tblTempUsageDetail_20' ) start [2025-01-14 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242807', 'tblTempUsageDetail_20' ) end [2025-01-14 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:07:22] Production.INFO: ==30872== Releasing lock... [2025-01-14 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:07:22] Production.INFO: 30 MB #Memory Used# [2025-01-14 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:08:05 [end_date_ymd] => 2025-01-14 01:08:05 [RateCDR] => 1 ) [2025-01-14 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:08:05' and `end` < '2025-01-14 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:08:18] Production.INFO: count ==225 [2025-01-14 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:08:05 - End Time 2025-01-14 01:08:05 [2025-01-14 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242812', 'tblTempUsageDetail_20' ) start [2025-01-14 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242812', 'tblTempUsageDetail_20' ) end [2025-01-14 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242812', 'tblTempVendorCDR_20' ) start [2025-01-14 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242812', 'tblTempVendorCDR_20' ) end [2025-01-14 01:08:19] Production.INFO: ProcessCDR(1,14242812,1,1,2) [2025-01-14 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242812', 'tblTempUsageDetail_20' ) start [2025-01-14 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242812', 'tblTempUsageDetail_20' ) end [2025-01-14 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:08:22] Production.INFO: ==30949== Releasing lock... [2025-01-14 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:09:05 [end_date_ymd] => 2025-01-14 01:09:05 [RateCDR] => 1 ) [2025-01-14 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:09:05' and `end` < '2025-01-14 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:09:17] Production.INFO: count ==223 [2025-01-14 01:09:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:09:05 - End Time 2025-01-14 01:09:05 [2025-01-14 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242817', 'tblTempUsageDetail_20' ) start [2025-01-14 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242817', 'tblTempUsageDetail_20' ) end [2025-01-14 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242817', 'tblTempVendorCDR_20' ) start [2025-01-14 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242817', 'tblTempVendorCDR_20' ) end [2025-01-14 01:09:17] Production.INFO: ProcessCDR(1,14242817,1,1,2) [2025-01-14 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242817', 'tblTempUsageDetail_20' ) start [2025-01-14 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242817', 'tblTempUsageDetail_20' ) end [2025-01-14 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:09:21] Production.INFO: ==31030== Releasing lock... [2025-01-14 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:10:05 [end_date_ymd] => 2025-01-14 01:10:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 22:10:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 01:10:17] Production.INFO: count ==224 [2025-01-14 01:10:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:10:05 - End Time 2025-01-14 01:10:05 [2025-01-14 01:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242823', 'tblTempUsageDetail_20' ) start [2025-01-14 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242823', 'tblTempUsageDetail_20' ) end [2025-01-14 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242823', 'tblTempVendorCDR_20' ) start [2025-01-14 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242823', 'tblTempVendorCDR_20' ) end [2025-01-14 01:10:17] Production.INFO: ProcessCDR(1,14242823,1,1,2) [2025-01-14 01:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242823', 'tblTempUsageDetail_20' ) start [2025-01-14 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242823', 'tblTempUsageDetail_20' ) end [2025-01-14 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:10:21] Production.INFO: ==31148== Releasing lock... [2025-01-14 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:10:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-14 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:11:05 [end_date_ymd] => 2025-01-14 01:11:05 [RateCDR] => 1 ) [2025-01-14 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:11:05' and `end` < '2025-01-14 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:11:17] Production.INFO: count ==224 [2025-01-14 01:11:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:11:05 - End Time 2025-01-14 01:11:05 [2025-01-14 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242828', 'tblTempUsageDetail_20' ) start [2025-01-14 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242828', 'tblTempUsageDetail_20' ) end [2025-01-14 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242828', 'tblTempVendorCDR_20' ) start [2025-01-14 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242828', 'tblTempVendorCDR_20' ) end [2025-01-14 01:11:17] Production.INFO: ProcessCDR(1,14242828,1,1,2) [2025-01-14 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242828', 'tblTempUsageDetail_20' ) start [2025-01-14 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242828', 'tblTempUsageDetail_20' ) end [2025-01-14 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:11:21] Production.INFO: ==31231== Releasing lock... [2025-01-14 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:12:05 [end_date_ymd] => 2025-01-14 01:12:05 [RateCDR] => 1 ) [2025-01-14 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:12:05' and `end` < '2025-01-14 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:12:18] Production.INFO: count ==222 [2025-01-14 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:12:05 - End Time 2025-01-14 01:12:05 [2025-01-14 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242833', 'tblTempUsageDetail_20' ) start [2025-01-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242833', 'tblTempUsageDetail_20' ) end [2025-01-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242833', 'tblTempVendorCDR_20' ) start [2025-01-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242833', 'tblTempVendorCDR_20' ) end [2025-01-14 01:12:18] Production.INFO: ProcessCDR(1,14242833,1,1,2) [2025-01-14 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242833', 'tblTempUsageDetail_20' ) start [2025-01-14 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242833', 'tblTempUsageDetail_20' ) end [2025-01-14 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:12:21] Production.INFO: ==31314== Releasing lock... [2025-01-14 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:12:21] Production.INFO: 30 MB #Memory Used# [2025-01-14 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:13:05 [end_date_ymd] => 2025-01-14 01:13:05 [RateCDR] => 1 ) [2025-01-14 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:13:05' and `end` < '2025-01-14 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:13:17] Production.INFO: count ==220 [2025-01-14 01:13:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:13:05 - End Time 2025-01-14 01:13:05 [2025-01-14 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242838', 'tblTempUsageDetail_20' ) start [2025-01-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242838', 'tblTempUsageDetail_20' ) end [2025-01-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242838', 'tblTempVendorCDR_20' ) start [2025-01-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242838', 'tblTempVendorCDR_20' ) end [2025-01-14 01:13:17] Production.INFO: ProcessCDR(1,14242838,1,1,2) [2025-01-14 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242838', 'tblTempUsageDetail_20' ) start [2025-01-14 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242838', 'tblTempUsageDetail_20' ) end [2025-01-14 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:13:21] Production.INFO: ==31385== Releasing lock... [2025-01-14 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:14:05 [end_date_ymd] => 2025-01-14 01:14:05 [RateCDR] => 1 ) [2025-01-14 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:14:05' and `end` < '2025-01-14 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:14:19] Production.INFO: count ==219 [2025-01-14 01:14:19] Production.ERROR: pbx CDR StartTime 2025-01-13 22:14:05 - End Time 2025-01-14 01:14:05 [2025-01-14 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242843', 'tblTempUsageDetail_20' ) start [2025-01-14 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242843', 'tblTempUsageDetail_20' ) end [2025-01-14 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242843', 'tblTempVendorCDR_20' ) start [2025-01-14 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242843', 'tblTempVendorCDR_20' ) end [2025-01-14 01:14:19] Production.INFO: ProcessCDR(1,14242843,1,1,2) [2025-01-14 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242843', 'tblTempUsageDetail_20' ) start [2025-01-14 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242843', 'tblTempUsageDetail_20' ) end [2025-01-14 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:14:22] Production.INFO: ==31460== Releasing lock... [2025-01-14 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:14:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:15:05 [end_date_ymd] => 2025-01-14 01:15:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 22:15:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 01:15:17] Production.INFO: count ==216 [2025-01-14 01:15:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:15:05 - End Time 2025-01-14 01:15:05 [2025-01-14 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242848', 'tblTempUsageDetail_20' ) start [2025-01-14 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242848', 'tblTempUsageDetail_20' ) end [2025-01-14 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242848', 'tblTempVendorCDR_20' ) start [2025-01-14 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242848', 'tblTempVendorCDR_20' ) end [2025-01-14 01:15:17] Production.INFO: ProcessCDR(1,14242848,1,1,2) [2025-01-14 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242848', 'tblTempUsageDetail_20' ) start [2025-01-14 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242848', 'tblTempUsageDetail_20' ) end [2025-01-14 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:15:22] Production.INFO: ==31531== Releasing lock... [2025-01-14 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:15:22] Production.INFO: 30 MB #Memory Used# [2025-01-14 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:16:05 [end_date_ymd] => 2025-01-14 01:16:05 [RateCDR] => 1 ) [2025-01-14 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:16:05' and `end` < '2025-01-14 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:16:18] Production.INFO: count ==215 [2025-01-14 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:16:05 - End Time 2025-01-14 01:16:05 [2025-01-14 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242853', 'tblTempUsageDetail_20' ) start [2025-01-14 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242853', 'tblTempUsageDetail_20' ) end [2025-01-14 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242853', 'tblTempVendorCDR_20' ) start [2025-01-14 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242853', 'tblTempVendorCDR_20' ) end [2025-01-14 01:16:18] Production.INFO: ProcessCDR(1,14242853,1,1,2) [2025-01-14 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242853', 'tblTempUsageDetail_20' ) start [2025-01-14 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242853', 'tblTempUsageDetail_20' ) end [2025-01-14 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:16:21] Production.INFO: ==31603== Releasing lock... [2025-01-14 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:16:21] Production.INFO: 30 MB #Memory Used# [2025-01-14 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:17:05 [end_date_ymd] => 2025-01-14 01:17:05 [RateCDR] => 1 ) [2025-01-14 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:17:05' and `end` < '2025-01-14 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:17:17] Production.INFO: count ==214 [2025-01-14 01:17:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:17:05 - End Time 2025-01-14 01:17:05 [2025-01-14 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242858', 'tblTempUsageDetail_20' ) start [2025-01-14 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242858', 'tblTempUsageDetail_20' ) end [2025-01-14 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242858', 'tblTempVendorCDR_20' ) start [2025-01-14 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242858', 'tblTempVendorCDR_20' ) end [2025-01-14 01:17:17] Production.INFO: ProcessCDR(1,14242858,1,1,2) [2025-01-14 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242858', 'tblTempUsageDetail_20' ) start [2025-01-14 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242858', 'tblTempUsageDetail_20' ) end [2025-01-14 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:17:21] Production.INFO: ==31671== Releasing lock... [2025-01-14 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:18:06 [end_date_ymd] => 2025-01-14 01:18:06 [RateCDR] => 1 ) [2025-01-14 01:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:18:06' and `end` < '2025-01-14 01:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:18:18] Production.INFO: count ==215 [2025-01-14 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:18:06 - End Time 2025-01-14 01:18:06 [2025-01-14 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242863', 'tblTempUsageDetail_20' ) start [2025-01-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242863', 'tblTempUsageDetail_20' ) end [2025-01-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242863', 'tblTempVendorCDR_20' ) start [2025-01-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242863', 'tblTempVendorCDR_20' ) end [2025-01-14 01:18:18] Production.INFO: ProcessCDR(1,14242863,1,1,2) [2025-01-14 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242863', 'tblTempUsageDetail_20' ) start [2025-01-14 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242863', 'tblTempUsageDetail_20' ) end [2025-01-14 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:18:23] Production.INFO: ==31741== Releasing lock... [2025-01-14 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:18:23] Production.INFO: 30 MB #Memory Used# [2025-01-14 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:19:05 [end_date_ymd] => 2025-01-14 01:19:05 [RateCDR] => 1 ) [2025-01-14 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:19:05' and `end` < '2025-01-14 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:19:17] Production.INFO: count ==212 [2025-01-14 01:19:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:19:05 - End Time 2025-01-14 01:19:05 [2025-01-14 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242868', 'tblTempUsageDetail_20' ) start [2025-01-14 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242868', 'tblTempUsageDetail_20' ) end [2025-01-14 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242868', 'tblTempVendorCDR_20' ) start [2025-01-14 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242868', 'tblTempVendorCDR_20' ) end [2025-01-14 01:19:17] Production.INFO: ProcessCDR(1,14242868,1,1,2) [2025-01-14 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242868', 'tblTempUsageDetail_20' ) start [2025-01-14 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242868', 'tblTempUsageDetail_20' ) end [2025-01-14 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:19:20] Production.INFO: ==31813== Releasing lock... [2025-01-14 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:19:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:20:06 [end_date_ymd] => 2025-01-14 01:20:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 22:20:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 01:20:19] Production.INFO: count ==212 [2025-01-14 01:20:19] Production.ERROR: pbx CDR StartTime 2025-01-13 22:20:06 - End Time 2025-01-14 01:20:06 [2025-01-14 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242873', 'tblTempUsageDetail_20' ) start [2025-01-14 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242873', 'tblTempUsageDetail_20' ) end [2025-01-14 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242873', 'tblTempVendorCDR_20' ) start [2025-01-14 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242873', 'tblTempVendorCDR_20' ) end [2025-01-14 01:20:19] Production.INFO: ProcessCDR(1,14242873,1,1,2) [2025-01-14 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242873', 'tblTempUsageDetail_20' ) start [2025-01-14 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242873', 'tblTempUsageDetail_20' ) end [2025-01-14 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:20:22] Production.INFO: ==31887== Releasing lock... [2025-01-14 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:21:04 [end_date_ymd] => 2025-01-14 01:21:04 [RateCDR] => 1 ) [2025-01-14 01: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` >= '2025-01-13 22:21:04' and `end` < '2025-01-14 01: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 ,'') [2025-01-14 01:21:17] Production.INFO: count ==212 [2025-01-14 01:21:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:21:04 - End Time 2025-01-14 01:21:04 [2025-01-14 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242879', 'tblTempUsageDetail_20' ) start [2025-01-14 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242879', 'tblTempUsageDetail_20' ) end [2025-01-14 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242879', 'tblTempVendorCDR_20' ) start [2025-01-14 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242879', 'tblTempVendorCDR_20' ) end [2025-01-14 01:21:17] Production.INFO: ProcessCDR(1,14242879,1,1,2) [2025-01-14 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242879', 'tblTempUsageDetail_20' ) start [2025-01-14 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242879', 'tblTempUsageDetail_20' ) end [2025-01-14 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:21:21] Production.INFO: ==31960== Releasing lock... [2025-01-14 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:22:05 [end_date_ymd] => 2025-01-14 01:22:05 [RateCDR] => 1 ) [2025-01-14 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:22:05' and `end` < '2025-01-14 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:22:18] Production.INFO: count ==210 [2025-01-14 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:22:05 - End Time 2025-01-14 01:22:05 [2025-01-14 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242884', 'tblTempUsageDetail_20' ) start [2025-01-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242884', 'tblTempUsageDetail_20' ) end [2025-01-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242884', 'tblTempVendorCDR_20' ) start [2025-01-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242884', 'tblTempVendorCDR_20' ) end [2025-01-14 01:22:18] Production.INFO: ProcessCDR(1,14242884,1,1,2) [2025-01-14 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242884', 'tblTempUsageDetail_20' ) start [2025-01-14 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242884', 'tblTempUsageDetail_20' ) end [2025-01-14 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:22:21] Production.INFO: ==32033== Releasing lock... [2025-01-14 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:23:05 [end_date_ymd] => 2025-01-14 01:23:05 [RateCDR] => 1 ) [2025-01-14 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:23:05' and `end` < '2025-01-14 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:23:18] Production.INFO: count ==204 [2025-01-14 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:23:05 - End Time 2025-01-14 01:23:05 [2025-01-14 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242887', 'tblTempUsageDetail_20' ) start [2025-01-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242887', 'tblTempUsageDetail_20' ) end [2025-01-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242887', 'tblTempVendorCDR_20' ) start [2025-01-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242887', 'tblTempVendorCDR_20' ) end [2025-01-14 01:23:18] Production.INFO: ProcessCDR(1,14242887,1,1,2) [2025-01-14 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242887', 'tblTempUsageDetail_20' ) start [2025-01-14 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242887', 'tblTempUsageDetail_20' ) end [2025-01-14 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:23:21] Production.INFO: ==32109== Releasing lock... [2025-01-14 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:24:05 [end_date_ymd] => 2025-01-14 01:24:05 [RateCDR] => 1 ) [2025-01-14 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:24:05' and `end` < '2025-01-14 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:24:18] Production.INFO: count ==199 [2025-01-14 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:24:05 - End Time 2025-01-14 01:24:05 [2025-01-14 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242894', 'tblTempUsageDetail_20' ) start [2025-01-14 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242894', 'tblTempUsageDetail_20' ) end [2025-01-14 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242894', 'tblTempVendorCDR_20' ) start [2025-01-14 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242894', 'tblTempVendorCDR_20' ) end [2025-01-14 01:24:18] Production.INFO: ProcessCDR(1,14242894,1,1,2) [2025-01-14 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242894', 'tblTempUsageDetail_20' ) start [2025-01-14 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242894', 'tblTempUsageDetail_20' ) end [2025-01-14 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:24:21] Production.INFO: ==32184== Releasing lock... [2025-01-14 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:25:04 [end_date_ymd] => 2025-01-14 01:25:04 [RateCDR] => 1 ) [2025-01-14 01:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:25:04' and `end` < '2025-01-14 01:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:25:17] Production.INFO: count ==199 [2025-01-14 01:25:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:25:04 - End Time 2025-01-14 01:25:04 [2025-01-14 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242899', 'tblTempUsageDetail_20' ) start [2025-01-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242899', 'tblTempUsageDetail_20' ) end [2025-01-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242899', 'tblTempVendorCDR_20' ) start [2025-01-14 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242899', 'tblTempVendorCDR_20' ) end [2025-01-14 01:25:17] Production.INFO: ProcessCDR(1,14242899,1,1,2) [2025-01-14 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242899', 'tblTempUsageDetail_20' ) start [2025-01-14 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242899', 'tblTempUsageDetail_20' ) end [2025-01-14 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:25:20] Production.INFO: ==32294== Releasing lock... [2025-01-14 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:25:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:26:05 [end_date_ymd] => 2025-01-14 01:26:05 [RateCDR] => 1 ) [2025-01-14 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:26:05' and `end` < '2025-01-14 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:26:20] Production.INFO: count ==195 [2025-01-14 01:26:20] Production.ERROR: pbx CDR StartTime 2025-01-13 22:26:05 - End Time 2025-01-14 01:26:05 [2025-01-14 01:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242904', 'tblTempUsageDetail_20' ) start [2025-01-14 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242904', 'tblTempUsageDetail_20' ) end [2025-01-14 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242904', 'tblTempVendorCDR_20' ) start [2025-01-14 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242904', 'tblTempVendorCDR_20' ) end [2025-01-14 01:26:20] Production.INFO: ProcessCDR(1,14242904,1,1,2) [2025-01-14 01:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242904', 'tblTempUsageDetail_20' ) start [2025-01-14 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242904', 'tblTempUsageDetail_20' ) end [2025-01-14 01:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:26:23] Production.INFO: ==32371== Releasing lock... [2025-01-14 01:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:26:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:27:06 [end_date_ymd] => 2025-01-14 01:27:06 [RateCDR] => 1 ) [2025-01-14 01:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:27:06' and `end` < '2025-01-14 01:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:27:18] Production.INFO: count ==190 [2025-01-14 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:27:06 - End Time 2025-01-14 01:27:06 [2025-01-14 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242909', 'tblTempUsageDetail_20' ) start [2025-01-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242909', 'tblTempUsageDetail_20' ) end [2025-01-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242909', 'tblTempVendorCDR_20' ) start [2025-01-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242909', 'tblTempVendorCDR_20' ) end [2025-01-14 01:27:18] Production.INFO: ProcessCDR(1,14242909,1,1,2) [2025-01-14 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242909', 'tblTempUsageDetail_20' ) start [2025-01-14 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242909', 'tblTempUsageDetail_20' ) end [2025-01-14 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:27:22] Production.INFO: ==32444== Releasing lock... [2025-01-14 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:28:05 [end_date_ymd] => 2025-01-14 01:28:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 22:28:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 01:28:19] Production.INFO: count ==189 [2025-01-14 01:28:19] Production.ERROR: pbx CDR StartTime 2025-01-13 22:28:05 - End Time 2025-01-14 01:28:05 [2025-01-14 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242914', 'tblTempUsageDetail_20' ) start [2025-01-14 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242914', 'tblTempUsageDetail_20' ) end [2025-01-14 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242914', 'tblTempVendorCDR_20' ) start [2025-01-14 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242914', 'tblTempVendorCDR_20' ) end [2025-01-14 01:28:19] Production.INFO: ProcessCDR(1,14242914,1,1,2) [2025-01-14 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242914', 'tblTempUsageDetail_20' ) start [2025-01-14 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242914', 'tblTempUsageDetail_20' ) end [2025-01-14 01:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:28:23] Production.INFO: ==32515== Releasing lock... [2025-01-14 01:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:28:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:29:05 [end_date_ymd] => 2025-01-14 01:29:05 [RateCDR] => 1 ) [2025-01-14 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:29:05' and `end` < '2025-01-14 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:29:19] Production.INFO: count ==189 [2025-01-14 01:29:19] Production.ERROR: pbx CDR StartTime 2025-01-13 22:29:05 - End Time 2025-01-14 01:29:05 [2025-01-14 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242919', 'tblTempUsageDetail_20' ) start [2025-01-14 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242919', 'tblTempUsageDetail_20' ) end [2025-01-14 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242919', 'tblTempVendorCDR_20' ) start [2025-01-14 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242919', 'tblTempVendorCDR_20' ) end [2025-01-14 01:29:19] Production.INFO: ProcessCDR(1,14242919,1,1,2) [2025-01-14 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242919', 'tblTempUsageDetail_20' ) start [2025-01-14 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242919', 'tblTempUsageDetail_20' ) end [2025-01-14 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:29:22] Production.INFO: ==32587== Releasing lock... [2025-01-14 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:29:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:30:06 [end_date_ymd] => 2025-01-14 01:30:06 [RateCDR] => 1 ) [2025-01-14 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:30:06' and `end` < '2025-01-14 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:30:18] Production.INFO: count ==193 [2025-01-14 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:30:06 - End Time 2025-01-14 01:30:06 [2025-01-14 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242924', 'tblTempUsageDetail_20' ) start [2025-01-14 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242924', 'tblTempUsageDetail_20' ) end [2025-01-14 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242924', 'tblTempVendorCDR_20' ) start [2025-01-14 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242924', 'tblTempVendorCDR_20' ) end [2025-01-14 01:30:18] Production.INFO: ProcessCDR(1,14242924,1,1,2) [2025-01-14 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242924', 'tblTempUsageDetail_20' ) start [2025-01-14 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242924', 'tblTempUsageDetail_20' ) end [2025-01-14 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:30:21] Production.INFO: ==32664== Releasing lock... [2025-01-14 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:31:05 [end_date_ymd] => 2025-01-14 01:31:05 [RateCDR] => 1 ) [2025-01-14 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:31:05' and `end` < '2025-01-14 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:31:20] Production.INFO: count ==199 [2025-01-14 01:31:20] Production.ERROR: pbx CDR StartTime 2025-01-13 22:31:05 - End Time 2025-01-14 01:31:05 [2025-01-14 01:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242930', 'tblTempUsageDetail_20' ) start [2025-01-14 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242930', 'tblTempUsageDetail_20' ) end [2025-01-14 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242930', 'tblTempVendorCDR_20' ) start [2025-01-14 01:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242930', 'tblTempVendorCDR_20' ) end [2025-01-14 01:31:20] Production.INFO: ProcessCDR(1,14242930,1,1,2) [2025-01-14 01:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242930', 'tblTempUsageDetail_20' ) start [2025-01-14 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242930', 'tblTempUsageDetail_20' ) end [2025-01-14 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:31:23] Production.INFO: ==32740== Releasing lock... [2025-01-14 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:31:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:32:05 [end_date_ymd] => 2025-01-14 01:32:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 22:32:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 01:32:19] Production.INFO: count ==202 [2025-01-14 01:32:19] Production.ERROR: pbx CDR StartTime 2025-01-13 22:32:05 - End Time 2025-01-14 01:32:05 [2025-01-14 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242935', 'tblTempUsageDetail_20' ) start [2025-01-14 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242935', 'tblTempUsageDetail_20' ) end [2025-01-14 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242935', 'tblTempVendorCDR_20' ) start [2025-01-14 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242935', 'tblTempVendorCDR_20' ) end [2025-01-14 01:32:19] Production.INFO: ProcessCDR(1,14242935,1,1,2) [2025-01-14 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242935', 'tblTempUsageDetail_20' ) start [2025-01-14 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242935', 'tblTempUsageDetail_20' ) end [2025-01-14 01:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:32:23] Production.INFO: ==362== Releasing lock... [2025-01-14 01:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:32:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:33:05 [end_date_ymd] => 2025-01-14 01:33:05 [RateCDR] => 1 ) [2025-01-14 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:33:05' and `end` < '2025-01-14 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:33:18] Production.INFO: count ==202 [2025-01-14 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:33:05 - End Time 2025-01-14 01:33:05 [2025-01-14 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242940', 'tblTempUsageDetail_20' ) start [2025-01-14 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242940', 'tblTempUsageDetail_20' ) end [2025-01-14 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242940', 'tblTempVendorCDR_20' ) start [2025-01-14 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242940', 'tblTempVendorCDR_20' ) end [2025-01-14 01:33:18] Production.INFO: ProcessCDR(1,14242940,1,1,2) [2025-01-14 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242940', 'tblTempUsageDetail_20' ) start [2025-01-14 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242940', 'tblTempUsageDetail_20' ) end [2025-01-14 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:33:21] Production.INFO: ==435== Releasing lock... [2025-01-14 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:34:05 [end_date_ymd] => 2025-01-14 01:34:05 [RateCDR] => 1 ) [2025-01-14 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:34:05' and `end` < '2025-01-14 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:34:17] Production.INFO: count ==202 [2025-01-14 01:34:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:34:05 - End Time 2025-01-14 01:34:05 [2025-01-14 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242945', 'tblTempUsageDetail_20' ) start [2025-01-14 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242945', 'tblTempUsageDetail_20' ) end [2025-01-14 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242945', 'tblTempVendorCDR_20' ) start [2025-01-14 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242945', 'tblTempVendorCDR_20' ) end [2025-01-14 01:34:17] Production.INFO: ProcessCDR(1,14242945,1,1,2) [2025-01-14 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242945', 'tblTempUsageDetail_20' ) start [2025-01-14 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242945', 'tblTempUsageDetail_20' ) end [2025-01-14 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:34:21] Production.INFO: ==509== Releasing lock... [2025-01-14 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:35:05 [end_date_ymd] => 2025-01-14 01:35:05 [RateCDR] => 1 ) [2025-01-14 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:35:05' and `end` < '2025-01-14 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:35:18] Production.INFO: count ==199 [2025-01-14 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:35:05 - End Time 2025-01-14 01:35:05 [2025-01-14 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242950', 'tblTempUsageDetail_20' ) start [2025-01-14 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242950', 'tblTempUsageDetail_20' ) end [2025-01-14 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242950', 'tblTempVendorCDR_20' ) start [2025-01-14 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242950', 'tblTempVendorCDR_20' ) end [2025-01-14 01:35:18] Production.INFO: ProcessCDR(1,14242950,1,1,2) [2025-01-14 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242950', 'tblTempUsageDetail_20' ) start [2025-01-14 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242950', 'tblTempUsageDetail_20' ) end [2025-01-14 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:35:21] Production.INFO: ==584== Releasing lock... [2025-01-14 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:36:05 [end_date_ymd] => 2025-01-14 01:36:05 [RateCDR] => 1 ) [2025-01-14 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:36:05' and `end` < '2025-01-14 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:36:19] Production.INFO: count ==199 [2025-01-14 01:36:19] Production.ERROR: pbx CDR StartTime 2025-01-13 22:36:05 - End Time 2025-01-14 01:36:05 [2025-01-14 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242955', 'tblTempUsageDetail_20' ) start [2025-01-14 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242955', 'tblTempUsageDetail_20' ) end [2025-01-14 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242955', 'tblTempVendorCDR_20' ) start [2025-01-14 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242955', 'tblTempVendorCDR_20' ) end [2025-01-14 01:36:19] Production.INFO: ProcessCDR(1,14242955,1,1,2) [2025-01-14 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242955', 'tblTempUsageDetail_20' ) start [2025-01-14 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242955', 'tblTempUsageDetail_20' ) end [2025-01-14 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:36:22] Production.INFO: ==676== Releasing lock... [2025-01-14 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:37:05 [end_date_ymd] => 2025-01-14 01:37:05 [RateCDR] => 1 ) [2025-01-14 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:37:05' and `end` < '2025-01-14 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:37:18] Production.INFO: count ==193 [2025-01-14 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:37:05 - End Time 2025-01-14 01:37:05 [2025-01-14 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242960', 'tblTempUsageDetail_20' ) start [2025-01-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242960', 'tblTempUsageDetail_20' ) end [2025-01-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242960', 'tblTempVendorCDR_20' ) start [2025-01-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242960', 'tblTempVendorCDR_20' ) end [2025-01-14 01:37:18] Production.INFO: ProcessCDR(1,14242960,1,1,2) [2025-01-14 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242960', 'tblTempUsageDetail_20' ) start [2025-01-14 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242960', 'tblTempUsageDetail_20' ) end [2025-01-14 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:37:22] Production.INFO: ==764== Releasing lock... [2025-01-14 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:38:05 [end_date_ymd] => 2025-01-14 01:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 22:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 01:38:18] Production.INFO: count ==192 [2025-01-14 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:38:05 - End Time 2025-01-14 01:38:05 [2025-01-14 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242965', 'tblTempUsageDetail_20' ) start [2025-01-14 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242965', 'tblTempUsageDetail_20' ) end [2025-01-14 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242965', 'tblTempVendorCDR_20' ) start [2025-01-14 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242965', 'tblTempVendorCDR_20' ) end [2025-01-14 01:38:18] Production.INFO: ProcessCDR(1,14242965,1,1,2) [2025-01-14 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242965', 'tblTempUsageDetail_20' ) start [2025-01-14 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242965', 'tblTempUsageDetail_20' ) end [2025-01-14 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:38:21] Production.INFO: ==845== Releasing lock... [2025-01-14 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:38:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:39:05 [end_date_ymd] => 2025-01-14 01:39:05 [RateCDR] => 1 ) [2025-01-14 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:39:05' and `end` < '2025-01-14 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:39:17] Production.INFO: count ==192 [2025-01-14 01:39:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:39:05 - End Time 2025-01-14 01:39:05 [2025-01-14 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242970', 'tblTempUsageDetail_20' ) start [2025-01-14 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242970', 'tblTempUsageDetail_20' ) end [2025-01-14 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242970', 'tblTempVendorCDR_20' ) start [2025-01-14 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242970', 'tblTempVendorCDR_20' ) end [2025-01-14 01:39:17] Production.INFO: ProcessCDR(1,14242970,1,1,2) [2025-01-14 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242970', 'tblTempUsageDetail_20' ) start [2025-01-14 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242970', 'tblTempUsageDetail_20' ) end [2025-01-14 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:39:21] Production.INFO: ==920== Releasing lock... [2025-01-14 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:40:06 [end_date_ymd] => 2025-01-14 01:40:06 [RateCDR] => 1 ) [2025-01-14 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:40:06' and `end` < '2025-01-14 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:40:19] Production.INFO: count ==194 [2025-01-14 01:40:19] Production.ERROR: pbx CDR StartTime 2025-01-13 22:40:06 - End Time 2025-01-14 01:40:06 [2025-01-14 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242976', 'tblTempUsageDetail_20' ) start [2025-01-14 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242976', 'tblTempUsageDetail_20' ) end [2025-01-14 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242976', 'tblTempVendorCDR_20' ) start [2025-01-14 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242976', 'tblTempVendorCDR_20' ) end [2025-01-14 01:40:19] Production.INFO: ProcessCDR(1,14242976,1,1,2) [2025-01-14 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242976', 'tblTempUsageDetail_20' ) start [2025-01-14 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242976', 'tblTempUsageDetail_20' ) end [2025-01-14 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:40:22] Production.INFO: ==994== Releasing lock... [2025-01-14 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:41:05 [end_date_ymd] => 2025-01-14 01:41:05 [RateCDR] => 1 ) [2025-01-14 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:41:05' and `end` < '2025-01-14 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:41:17] Production.INFO: count ==194 [2025-01-14 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:41:05 - End Time 2025-01-14 01:41:05 [2025-01-14 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242981', 'tblTempUsageDetail_20' ) start [2025-01-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242981', 'tblTempUsageDetail_20' ) end [2025-01-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242981', 'tblTempVendorCDR_20' ) start [2025-01-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242981', 'tblTempVendorCDR_20' ) end [2025-01-14 01:41:18] Production.INFO: ProcessCDR(1,14242981,1,1,2) [2025-01-14 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242981', 'tblTempUsageDetail_20' ) start [2025-01-14 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242981', 'tblTempUsageDetail_20' ) end [2025-01-14 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:41:21] Production.INFO: ==1107== Releasing lock... [2025-01-14 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:42:05 [end_date_ymd] => 2025-01-14 01:42:05 [RateCDR] => 1 ) [2025-01-14 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:42:05' and `end` < '2025-01-14 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:42:18] Production.INFO: count ==194 [2025-01-14 01:42:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:42:05 - End Time 2025-01-14 01:42:05 [2025-01-14 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242986', 'tblTempUsageDetail_20' ) start [2025-01-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242986', 'tblTempUsageDetail_20' ) end [2025-01-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242986', 'tblTempVendorCDR_20' ) start [2025-01-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242986', 'tblTempVendorCDR_20' ) end [2025-01-14 01:42:18] Production.INFO: ProcessCDR(1,14242986,1,1,2) [2025-01-14 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242986', 'tblTempUsageDetail_20' ) start [2025-01-14 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242986', 'tblTempUsageDetail_20' ) end [2025-01-14 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:42:21] Production.INFO: ==1185== Releasing lock... [2025-01-14 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:43:05 [end_date_ymd] => 2025-01-14 01:43:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 22:43:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 01:43:18] Production.INFO: count ==194 [2025-01-14 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:43:05 - End Time 2025-01-14 01:43:05 [2025-01-14 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242991', 'tblTempUsageDetail_20' ) start [2025-01-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242991', 'tblTempUsageDetail_20' ) end [2025-01-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242991', 'tblTempVendorCDR_20' ) start [2025-01-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242991', 'tblTempVendorCDR_20' ) end [2025-01-14 01:43:18] Production.INFO: ProcessCDR(1,14242991,1,1,2) [2025-01-14 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242991', 'tblTempUsageDetail_20' ) start [2025-01-14 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242991', 'tblTempUsageDetail_20' ) end [2025-01-14 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:43:22] Production.INFO: ==1270== Releasing lock... [2025-01-14 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:44:05 [end_date_ymd] => 2025-01-14 01:44:05 [RateCDR] => 1 ) [2025-01-14 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:44:05' and `end` < '2025-01-14 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:44:18] Production.INFO: count ==194 [2025-01-14 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:44:05 - End Time 2025-01-14 01:44:05 [2025-01-14 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242996', 'tblTempUsageDetail_20' ) start [2025-01-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242996', 'tblTempUsageDetail_20' ) end [2025-01-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242996', 'tblTempVendorCDR_20' ) start [2025-01-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242996', 'tblTempVendorCDR_20' ) end [2025-01-14 01:44:18] Production.INFO: ProcessCDR(1,14242996,1,1,2) [2025-01-14 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242996', 'tblTempUsageDetail_20' ) start [2025-01-14 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242996', 'tblTempUsageDetail_20' ) end [2025-01-14 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:44:21] Production.INFO: ==1344== Releasing lock... [2025-01-14 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:45:06 [end_date_ymd] => 2025-01-14 01:45:06 [RateCDR] => 1 ) [2025-01-14 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:45:06' and `end` < '2025-01-14 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:45:18] Production.INFO: count ==191 [2025-01-14 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:45:06 - End Time 2025-01-14 01:45:06 [2025-01-14 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243001', 'tblTempUsageDetail_20' ) start [2025-01-14 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243001', 'tblTempUsageDetail_20' ) end [2025-01-14 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243001', 'tblTempVendorCDR_20' ) start [2025-01-14 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243001', 'tblTempVendorCDR_20' ) end [2025-01-14 01:45:18] Production.INFO: ProcessCDR(1,14243001,1,1,2) [2025-01-14 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243001', 'tblTempUsageDetail_20' ) start [2025-01-14 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243001', 'tblTempUsageDetail_20' ) end [2025-01-14 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:45:22] Production.INFO: ==1416== Releasing lock... [2025-01-14 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:45:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:46:05 [end_date_ymd] => 2025-01-14 01:46:05 [RateCDR] => 1 ) [2025-01-14 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:46:05' and `end` < '2025-01-14 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:46:18] Production.INFO: count ==191 [2025-01-14 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:46:05 - End Time 2025-01-14 01:46:05 [2025-01-14 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243006', 'tblTempUsageDetail_20' ) start [2025-01-14 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243006', 'tblTempUsageDetail_20' ) end [2025-01-14 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243006', 'tblTempVendorCDR_20' ) start [2025-01-14 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243006', 'tblTempVendorCDR_20' ) end [2025-01-14 01:46:18] Production.INFO: ProcessCDR(1,14243006,1,1,2) [2025-01-14 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243006', 'tblTempUsageDetail_20' ) start [2025-01-14 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243006', 'tblTempUsageDetail_20' ) end [2025-01-14 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:46:21] Production.INFO: ==1489== Releasing lock... [2025-01-14 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:47:05 [end_date_ymd] => 2025-01-14 01:47:05 [RateCDR] => 1 ) [2025-01-14 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:47:05' and `end` < '2025-01-14 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:47:17] Production.INFO: count ==190 [2025-01-14 01:47:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:47:05 - End Time 2025-01-14 01:47:05 [2025-01-14 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243011', 'tblTempUsageDetail_20' ) start [2025-01-14 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243011', 'tblTempUsageDetail_20' ) end [2025-01-14 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243011', 'tblTempVendorCDR_20' ) start [2025-01-14 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243011', 'tblTempVendorCDR_20' ) end [2025-01-14 01:47:17] Production.INFO: ProcessCDR(1,14243011,1,1,2) [2025-01-14 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243011', 'tblTempUsageDetail_20' ) start [2025-01-14 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243011', 'tblTempUsageDetail_20' ) end [2025-01-14 01:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:47:20] Production.INFO: ==1598== Releasing lock... [2025-01-14 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:47:20] Production.INFO: 29 MB #Memory Used# [2025-01-14 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:48:05 [end_date_ymd] => 2025-01-14 01:48:05 [RateCDR] => 1 ) [2025-01-14 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:48:05' and `end` < '2025-01-14 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:48:17] Production.INFO: count ==190 [2025-01-14 01:48:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:48:05 - End Time 2025-01-14 01:48:05 [2025-01-14 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243016', 'tblTempUsageDetail_20' ) start [2025-01-14 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243016', 'tblTempUsageDetail_20' ) end [2025-01-14 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243016', 'tblTempVendorCDR_20' ) start [2025-01-14 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243016', 'tblTempVendorCDR_20' ) end [2025-01-14 01:48:17] Production.INFO: ProcessCDR(1,14243016,1,1,2) [2025-01-14 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243016', 'tblTempUsageDetail_20' ) start [2025-01-14 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243016', 'tblTempUsageDetail_20' ) end [2025-01-14 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:48:21] Production.INFO: ==1672== Releasing lock... [2025-01-14 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:48:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:49:04 [end_date_ymd] => 2025-01-14 01:49:04 [RateCDR] => 1 ) [2025-01-14 01:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:49:04' and `end` < '2025-01-14 01:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:49:16] Production.INFO: count ==190 [2025-01-14 01:49:16] Production.ERROR: pbx CDR StartTime 2025-01-13 22:49:04 - End Time 2025-01-14 01:49:04 [2025-01-14 01:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243021', 'tblTempUsageDetail_20' ) start [2025-01-14 01:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243021', 'tblTempUsageDetail_20' ) end [2025-01-14 01:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243021', 'tblTempVendorCDR_20' ) start [2025-01-14 01:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243021', 'tblTempVendorCDR_20' ) end [2025-01-14 01:49:16] Production.INFO: ProcessCDR(1,14243021,1,1,2) [2025-01-14 01:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243021', 'tblTempUsageDetail_20' ) start [2025-01-14 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243021', 'tblTempUsageDetail_20' ) end [2025-01-14 01:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:49:20] Production.INFO: ==1743== Releasing lock... [2025-01-14 01:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:49:20] Production.INFO: 29 MB #Memory Used# [2025-01-14 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:50:06 [end_date_ymd] => 2025-01-14 01:50:06 [RateCDR] => 1 ) [2025-01-14 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:50:06' and `end` < '2025-01-14 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:50:18] Production.INFO: count ==198 [2025-01-14 01:50:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:50:06 - End Time 2025-01-14 01:50:06 [2025-01-14 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243027', 'tblTempUsageDetail_20' ) start [2025-01-14 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243027', 'tblTempUsageDetail_20' ) end [2025-01-14 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243027', 'tblTempVendorCDR_20' ) start [2025-01-14 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243027', 'tblTempVendorCDR_20' ) end [2025-01-14 01:50:18] Production.INFO: ProcessCDR(1,14243027,1,1,2) [2025-01-14 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243027', 'tblTempUsageDetail_20' ) start [2025-01-14 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243027', 'tblTempUsageDetail_20' ) end [2025-01-14 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:50:22] Production.INFO: ==1822== Releasing lock... [2025-01-14 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:51:06 [end_date_ymd] => 2025-01-14 01:51:06 [RateCDR] => 1 ) [2025-01-14 01:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:51:06' and `end` < '2025-01-14 01:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:51:18] Production.INFO: count ==203 [2025-01-14 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:51:06 - End Time 2025-01-14 01:51:06 [2025-01-14 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243032', 'tblTempUsageDetail_20' ) start [2025-01-14 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243032', 'tblTempUsageDetail_20' ) end [2025-01-14 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243032', 'tblTempVendorCDR_20' ) start [2025-01-14 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243032', 'tblTempVendorCDR_20' ) end [2025-01-14 01:51:18] Production.INFO: ProcessCDR(1,14243032,1,1,2) [2025-01-14 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243032', 'tblTempUsageDetail_20' ) start [2025-01-14 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243032', 'tblTempUsageDetail_20' ) end [2025-01-14 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:51:22] Production.INFO: ==1901== Releasing lock... [2025-01-14 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:52:05 [end_date_ymd] => 2025-01-14 01:52:05 [RateCDR] => 1 ) [2025-01-14 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:52:05' and `end` < '2025-01-14 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:52:20] Production.INFO: count ==203 [2025-01-14 01:52:20] Production.ERROR: pbx CDR StartTime 2025-01-13 22:52:05 - End Time 2025-01-14 01:52:05 [2025-01-14 01:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243037', 'tblTempUsageDetail_20' ) start [2025-01-14 01:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243037', 'tblTempUsageDetail_20' ) end [2025-01-14 01:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243037', 'tblTempVendorCDR_20' ) start [2025-01-14 01:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243037', 'tblTempVendorCDR_20' ) end [2025-01-14 01:52:20] Production.INFO: ProcessCDR(1,14243037,1,1,2) [2025-01-14 01:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243037', 'tblTempUsageDetail_20' ) start [2025-01-14 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243037', 'tblTempUsageDetail_20' ) end [2025-01-14 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:52:23] Production.INFO: ==1979== Releasing lock... [2025-01-14 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:52:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:53:05 [end_date_ymd] => 2025-01-14 01:53:05 [RateCDR] => 1 ) [2025-01-14 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:53:05' and `end` < '2025-01-14 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:53:19] Production.INFO: count ==202 [2025-01-14 01:53:19] Production.ERROR: pbx CDR StartTime 2025-01-13 22:53:05 - End Time 2025-01-14 01:53:05 [2025-01-14 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243042', 'tblTempUsageDetail_20' ) start [2025-01-14 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243042', 'tblTempUsageDetail_20' ) end [2025-01-14 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243042', 'tblTempVendorCDR_20' ) start [2025-01-14 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243042', 'tblTempVendorCDR_20' ) end [2025-01-14 01:53:19] Production.INFO: ProcessCDR(1,14243042,1,1,2) [2025-01-14 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243042', 'tblTempUsageDetail_20' ) start [2025-01-14 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243042', 'tblTempUsageDetail_20' ) end [2025-01-14 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:53:22] Production.INFO: ==2051== Releasing lock... [2025-01-14 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:54:05 [end_date_ymd] => 2025-01-14 01:54:05 [RateCDR] => 1 ) [2025-01-14 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:54:05' and `end` < '2025-01-14 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:54:18] Production.INFO: count ==202 [2025-01-14 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:54:05 - End Time 2025-01-14 01:54:05 [2025-01-14 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243047', 'tblTempUsageDetail_20' ) start [2025-01-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243047', 'tblTempUsageDetail_20' ) end [2025-01-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243047', 'tblTempVendorCDR_20' ) start [2025-01-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243047', 'tblTempVendorCDR_20' ) end [2025-01-14 01:54:18] Production.INFO: ProcessCDR(1,14243047,1,1,2) [2025-01-14 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243047', 'tblTempUsageDetail_20' ) start [2025-01-14 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243047', 'tblTempUsageDetail_20' ) end [2025-01-14 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:54:21] Production.INFO: ==2125== Releasing lock... [2025-01-14 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:55:06 [end_date_ymd] => 2025-01-14 01:55:06 [RateCDR] => 1 ) [2025-01-14 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:55:06' and `end` < '2025-01-14 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:55:18] Production.INFO: count ==202 [2025-01-14 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:55:06 - End Time 2025-01-14 01:55:06 [2025-01-14 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243052', 'tblTempUsageDetail_20' ) start [2025-01-14 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243052', 'tblTempUsageDetail_20' ) end [2025-01-14 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243052', 'tblTempVendorCDR_20' ) start [2025-01-14 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243052', 'tblTempVendorCDR_20' ) end [2025-01-14 01:55:18] Production.INFO: ProcessCDR(1,14243052,1,1,2) [2025-01-14 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243052', 'tblTempUsageDetail_20' ) start [2025-01-14 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243052', 'tblTempUsageDetail_20' ) end [2025-01-14 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:55:21] Production.INFO: ==2198== Releasing lock... [2025-01-14 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:56:05 [end_date_ymd] => 2025-01-14 01:56:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 22:56:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 01:56:18] Production.INFO: count ==202 [2025-01-14 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:56:05 - End Time 2025-01-14 01:56:05 [2025-01-14 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243057', 'tblTempUsageDetail_20' ) start [2025-01-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243057', 'tblTempUsageDetail_20' ) end [2025-01-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243057', 'tblTempVendorCDR_20' ) start [2025-01-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243057', 'tblTempVendorCDR_20' ) end [2025-01-14 01:56:18] Production.INFO: ProcessCDR(1,14243057,1,1,2) [2025-01-14 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243057', 'tblTempUsageDetail_20' ) start [2025-01-14 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243057', 'tblTempUsageDetail_20' ) end [2025-01-14 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:56:22] Production.INFO: ==2270== Releasing lock... [2025-01-14 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:57:05 [end_date_ymd] => 2025-01-14 01:57:05 [RateCDR] => 1 ) [2025-01-14 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:57:05' and `end` < '2025-01-14 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:57:18] Production.INFO: count ==202 [2025-01-14 01:57:18] Production.ERROR: pbx CDR StartTime 2025-01-13 22:57:05 - End Time 2025-01-14 01:57:05 [2025-01-14 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243062', 'tblTempUsageDetail_20' ) start [2025-01-14 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243062', 'tblTempUsageDetail_20' ) end [2025-01-14 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243062', 'tblTempVendorCDR_20' ) start [2025-01-14 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243062', 'tblTempVendorCDR_20' ) end [2025-01-14 01:57:18] Production.INFO: ProcessCDR(1,14243062,1,1,2) [2025-01-14 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243062', 'tblTempUsageDetail_20' ) start [2025-01-14 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243062', 'tblTempUsageDetail_20' ) end [2025-01-14 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:57:21] Production.INFO: ==2382== Releasing lock... [2025-01-14 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:58:05 [end_date_ymd] => 2025-01-14 01:58:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 22:58:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 01:58:17] Production.INFO: count ==202 [2025-01-14 01:58:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:58:05 - End Time 2025-01-14 01:58:05 [2025-01-14 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243067', 'tblTempUsageDetail_20' ) start [2025-01-14 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243067', 'tblTempUsageDetail_20' ) end [2025-01-14 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243067', 'tblTempVendorCDR_20' ) start [2025-01-14 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243067', 'tblTempVendorCDR_20' ) end [2025-01-14 01:58:17] Production.INFO: ProcessCDR(1,14243067,1,1,2) [2025-01-14 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243067', 'tblTempUsageDetail_20' ) start [2025-01-14 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243067', 'tblTempUsageDetail_20' ) end [2025-01-14 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:58:21] Production.INFO: ==2452== Releasing lock... [2025-01-14 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 22:59:05 [end_date_ymd] => 2025-01-14 01:59:05 [RateCDR] => 1 ) [2025-01-14 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 22:59:05' and `end` < '2025-01-14 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 01:59:17] Production.INFO: count ==202 [2025-01-14 01:59:17] Production.ERROR: pbx CDR StartTime 2025-01-13 22:59:05 - End Time 2025-01-14 01:59:05 [2025-01-14 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243072', 'tblTempUsageDetail_20' ) start [2025-01-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243072', 'tblTempUsageDetail_20' ) end [2025-01-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243072', 'tblTempVendorCDR_20' ) start [2025-01-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243072', 'tblTempVendorCDR_20' ) end [2025-01-14 01:59:17] Production.INFO: ProcessCDR(1,14243072,1,1,2) [2025-01-14 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243072', 'tblTempUsageDetail_20' ) start [2025-01-14 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243072', 'tblTempUsageDetail_20' ) end [2025-01-14 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 01:59:21] Production.INFO: ==2525== Releasing lock... [2025-01-14 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 01:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:00:05 [end_date_ymd] => 2025-01-14 02:00:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:00:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:00:19] Production.INFO: count ==212 [2025-01-14 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:00:05 - End Time 2025-01-14 02:00:05 [2025-01-14 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243077', 'tblTempUsageDetail_20' ) start [2025-01-14 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243077', 'tblTempUsageDetail_20' ) end [2025-01-14 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243077', 'tblTempVendorCDR_20' ) start [2025-01-14 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243077', 'tblTempVendorCDR_20' ) end [2025-01-14 02:00:19] Production.INFO: ProcessCDR(1,14243077,1,1,2) [2025-01-14 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243077', 'tblTempUsageDetail_20' ) start [2025-01-14 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243077', 'tblTempUsageDetail_20' ) end [2025-01-14 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:00:22] Production.INFO: ==2601== Releasing lock... [2025-01-14 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:01:05 [end_date_ymd] => 2025-01-14 02:01:05 [RateCDR] => 1 ) [2025-01-14 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:01:05' and `end` < '2025-01-14 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:01:17] Production.INFO: count ==212 [2025-01-14 02:01:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:01:05 - End Time 2025-01-14 02:01:05 [2025-01-14 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243083', 'tblTempUsageDetail_20' ) start [2025-01-14 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243083', 'tblTempUsageDetail_20' ) end [2025-01-14 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243083', 'tblTempVendorCDR_20' ) start [2025-01-14 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243083', 'tblTempVendorCDR_20' ) end [2025-01-14 02:01:17] Production.INFO: ProcessCDR(1,14243083,1,1,2) [2025-01-14 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243083', 'tblTempUsageDetail_20' ) start [2025-01-14 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243083', 'tblTempUsageDetail_20' ) end [2025-01-14 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:01:21] Production.INFO: ==2776== Releasing lock... [2025-01-14 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:02:05 [end_date_ymd] => 2025-01-14 02:02:05 [RateCDR] => 1 ) [2025-01-14 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:02:05' and `end` < '2025-01-14 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:02:18] Production.INFO: count ==212 [2025-01-14 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:02:05 - End Time 2025-01-14 02:02:05 [2025-01-14 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243088', 'tblTempUsageDetail_20' ) start [2025-01-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243088', 'tblTempUsageDetail_20' ) end [2025-01-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243088', 'tblTempVendorCDR_20' ) start [2025-01-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243088', 'tblTempVendorCDR_20' ) end [2025-01-14 02:02:18] Production.INFO: ProcessCDR(1,14243088,1,1,2) [2025-01-14 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243088', 'tblTempUsageDetail_20' ) start [2025-01-14 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243088', 'tblTempUsageDetail_20' ) end [2025-01-14 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:02:21] Production.INFO: ==2852== Releasing lock... [2025-01-14 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:03:05 [end_date_ymd] => 2025-01-14 02:03:05 [RateCDR] => 1 ) [2025-01-14 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:03:05' and `end` < '2025-01-14 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:03:19] Production.INFO: count ==212 [2025-01-14 02:03:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:03:05 - End Time 2025-01-14 02:03:05 [2025-01-14 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243093', 'tblTempUsageDetail_20' ) start [2025-01-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243093', 'tblTempUsageDetail_20' ) end [2025-01-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243093', 'tblTempVendorCDR_20' ) start [2025-01-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243093', 'tblTempVendorCDR_20' ) end [2025-01-14 02:03:19] Production.INFO: ProcessCDR(1,14243093,1,1,2) [2025-01-14 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243093', 'tblTempUsageDetail_20' ) start [2025-01-14 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243093', 'tblTempUsageDetail_20' ) end [2025-01-14 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:03:23] Production.INFO: ==2926== Releasing lock... [2025-01-14 02:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:03:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:04:05 [end_date_ymd] => 2025-01-14 02:04:05 [RateCDR] => 1 ) [2025-01-14 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:04:05' and `end` < '2025-01-14 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:04:18] Production.INFO: count ==211 [2025-01-14 02:04:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:04:05 - End Time 2025-01-14 02:04:05 [2025-01-14 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243098', 'tblTempUsageDetail_20' ) start [2025-01-14 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243098', 'tblTempUsageDetail_20' ) end [2025-01-14 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243098', 'tblTempVendorCDR_20' ) start [2025-01-14 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243098', 'tblTempVendorCDR_20' ) end [2025-01-14 02:04:18] Production.INFO: ProcessCDR(1,14243098,1,1,2) [2025-01-14 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243098', 'tblTempUsageDetail_20' ) start [2025-01-14 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243098', 'tblTempUsageDetail_20' ) end [2025-01-14 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:04:22] Production.INFO: ==2997== Releasing lock... [2025-01-14 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:05:05 [end_date_ymd] => 2025-01-14 02:05:05 [RateCDR] => 1 ) [2025-01-14 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:05:05' and `end` < '2025-01-14 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:05:18] Production.INFO: count ==210 [2025-01-14 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:05:05 - End Time 2025-01-14 02:05:05 [2025-01-14 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243103', 'tblTempUsageDetail_20' ) start [2025-01-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243103', 'tblTempUsageDetail_20' ) end [2025-01-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243103', 'tblTempVendorCDR_20' ) start [2025-01-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243103', 'tblTempVendorCDR_20' ) end [2025-01-14 02:05:18] Production.INFO: ProcessCDR(1,14243103,1,1,2) [2025-01-14 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243103', 'tblTempUsageDetail_20' ) start [2025-01-14 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243103', 'tblTempUsageDetail_20' ) end [2025-01-14 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:05:22] Production.INFO: ==3074== Releasing lock... [2025-01-14 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:06:05 [end_date_ymd] => 2025-01-14 02:06:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:06:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:06:17] Production.INFO: count ==209 [2025-01-14 02:06:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:06:05 - End Time 2025-01-14 02:06:05 [2025-01-14 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243108', 'tblTempUsageDetail_20' ) start [2025-01-14 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243108', 'tblTempUsageDetail_20' ) end [2025-01-14 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243108', 'tblTempVendorCDR_20' ) start [2025-01-14 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243108', 'tblTempVendorCDR_20' ) end [2025-01-14 02:06:17] Production.INFO: ProcessCDR(1,14243108,1,1,2) [2025-01-14 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243108', 'tblTempUsageDetail_20' ) start [2025-01-14 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243108', 'tblTempUsageDetail_20' ) end [2025-01-14 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:06:21] Production.INFO: ==3144== Releasing lock... [2025-01-14 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:07:05 [end_date_ymd] => 2025-01-14 02:07:05 [RateCDR] => 1 ) [2025-01-14 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:07:05' and `end` < '2025-01-14 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:07:17] Production.INFO: count ==206 [2025-01-14 02:07:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:07:05 - End Time 2025-01-14 02:07:05 [2025-01-14 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243112', 'tblTempUsageDetail_20' ) start [2025-01-14 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243112', 'tblTempUsageDetail_20' ) end [2025-01-14 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243112', 'tblTempVendorCDR_20' ) start [2025-01-14 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243112', 'tblTempVendorCDR_20' ) end [2025-01-14 02:07:17] Production.INFO: ProcessCDR(1,14243112,1,1,2) [2025-01-14 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243112', 'tblTempUsageDetail_20' ) start [2025-01-14 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243112', 'tblTempUsageDetail_20' ) end [2025-01-14 02:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:07:20] Production.INFO: ==3216== Releasing lock... [2025-01-14 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:07:20] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:08:05 [end_date_ymd] => 2025-01-14 02:08:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:08:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:08:17] Production.INFO: count ==206 [2025-01-14 02:08:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:08:05 - End Time 2025-01-14 02:08:05 [2025-01-14 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243118', 'tblTempUsageDetail_20' ) start [2025-01-14 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243118', 'tblTempUsageDetail_20' ) end [2025-01-14 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243118', 'tblTempVendorCDR_20' ) start [2025-01-14 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243118', 'tblTempVendorCDR_20' ) end [2025-01-14 02:08:17] Production.INFO: ProcessCDR(1,14243118,1,1,2) [2025-01-14 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243118', 'tblTempUsageDetail_20' ) start [2025-01-14 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243118', 'tblTempUsageDetail_20' ) end [2025-01-14 02:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:08:20] Production.INFO: ==3288== Releasing lock... [2025-01-14 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:08:20] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:09:05 [end_date_ymd] => 2025-01-14 02:09:05 [RateCDR] => 1 ) [2025-01-14 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:09:05' and `end` < '2025-01-14 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:09:17] Production.INFO: count ==206 [2025-01-14 02:09:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:09:05 - End Time 2025-01-14 02:09:05 [2025-01-14 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243123', 'tblTempUsageDetail_20' ) start [2025-01-14 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243123', 'tblTempUsageDetail_20' ) end [2025-01-14 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243123', 'tblTempVendorCDR_20' ) start [2025-01-14 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243123', 'tblTempVendorCDR_20' ) end [2025-01-14 02:09:17] Production.INFO: ProcessCDR(1,14243123,1,1,2) [2025-01-14 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243123', 'tblTempUsageDetail_20' ) start [2025-01-14 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243123', 'tblTempUsageDetail_20' ) end [2025-01-14 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:09:21] Production.INFO: ==3362== Releasing lock... [2025-01-14 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:09:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:10:05 [end_date_ymd] => 2025-01-14 02:10:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:10:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:10:19] Production.INFO: count ==209 [2025-01-14 02:10:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:10:05 - End Time 2025-01-14 02:10:05 [2025-01-14 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243128', 'tblTempUsageDetail_20' ) start [2025-01-14 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243128', 'tblTempUsageDetail_20' ) end [2025-01-14 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243128', 'tblTempVendorCDR_20' ) start [2025-01-14 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243128', 'tblTempVendorCDR_20' ) end [2025-01-14 02:10:19] Production.INFO: ProcessCDR(1,14243128,1,1,2) [2025-01-14 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243128', 'tblTempUsageDetail_20' ) start [2025-01-14 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243128', 'tblTempUsageDetail_20' ) end [2025-01-14 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:10:23] Production.INFO: ==3435== Releasing lock... [2025-01-14 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:10:23] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:11:05 [end_date_ymd] => 2025-01-14 02:11:05 [RateCDR] => 1 ) [2025-01-14 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:11:05' and `end` < '2025-01-14 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:11:17] Production.INFO: count ==219 [2025-01-14 02:11:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:11:05 - End Time 2025-01-14 02:11:05 [2025-01-14 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243134', 'tblTempUsageDetail_20' ) start [2025-01-14 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243134', 'tblTempUsageDetail_20' ) end [2025-01-14 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243134', 'tblTempVendorCDR_20' ) start [2025-01-14 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243134', 'tblTempVendorCDR_20' ) end [2025-01-14 02:11:17] Production.INFO: ProcessCDR(1,14243134,1,1,2) [2025-01-14 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243134', 'tblTempUsageDetail_20' ) start [2025-01-14 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243134', 'tblTempUsageDetail_20' ) end [2025-01-14 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:11:21] Production.INFO: ==3513== Releasing lock... [2025-01-14 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:11:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:12:05 [end_date_ymd] => 2025-01-14 02:12:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:12:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:12:17] Production.INFO: count ==219 [2025-01-14 02:12:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:12:05 - End Time 2025-01-14 02:12:05 [2025-01-14 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243139', 'tblTempUsageDetail_20' ) start [2025-01-14 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243139', 'tblTempUsageDetail_20' ) end [2025-01-14 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243139', 'tblTempVendorCDR_20' ) start [2025-01-14 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243139', 'tblTempVendorCDR_20' ) end [2025-01-14 02:12:17] Production.INFO: ProcessCDR(1,14243139,1,1,2) [2025-01-14 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243139', 'tblTempUsageDetail_20' ) start [2025-01-14 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243139', 'tblTempUsageDetail_20' ) end [2025-01-14 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:12:21] Production.INFO: ==3626== Releasing lock... [2025-01-14 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:12:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:13:05 [end_date_ymd] => 2025-01-14 02:13:05 [RateCDR] => 1 ) [2025-01-14 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:13:05' and `end` < '2025-01-14 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:13:18] Production.INFO: count ==221 [2025-01-14 02:13:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:13:05 - End Time 2025-01-14 02:13:05 [2025-01-14 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243144', 'tblTempUsageDetail_20' ) start [2025-01-14 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243144', 'tblTempUsageDetail_20' ) end [2025-01-14 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243144', 'tblTempVendorCDR_20' ) start [2025-01-14 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243144', 'tblTempVendorCDR_20' ) end [2025-01-14 02:13:19] Production.INFO: ProcessCDR(1,14243144,1,1,2) [2025-01-14 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243144', 'tblTempUsageDetail_20' ) start [2025-01-14 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243144', 'tblTempUsageDetail_20' ) end [2025-01-14 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:13:22] Production.INFO: ==3701== Releasing lock... [2025-01-14 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:14:05 [end_date_ymd] => 2025-01-14 02:14:05 [RateCDR] => 1 ) [2025-01-14 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:14:05' and `end` < '2025-01-14 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:14:18] Production.INFO: count ==221 [2025-01-14 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:14:05 - End Time 2025-01-14 02:14:05 [2025-01-14 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243149', 'tblTempUsageDetail_20' ) start [2025-01-14 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243149', 'tblTempUsageDetail_20' ) end [2025-01-14 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243149', 'tblTempVendorCDR_20' ) start [2025-01-14 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243149', 'tblTempVendorCDR_20' ) end [2025-01-14 02:14:18] Production.INFO: ProcessCDR(1,14243149,1,1,2) [2025-01-14 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243149', 'tblTempUsageDetail_20' ) start [2025-01-14 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243149', 'tblTempUsageDetail_20' ) end [2025-01-14 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:14:21] Production.INFO: ==3775== Releasing lock... [2025-01-14 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:15:05 [end_date_ymd] => 2025-01-14 02:15:05 [RateCDR] => 1 ) [2025-01-14 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:15:05' and `end` < '2025-01-14 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:15:18] Production.INFO: count ==220 [2025-01-14 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:15:05 - End Time 2025-01-14 02:15:05 [2025-01-14 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243154', 'tblTempUsageDetail_20' ) start [2025-01-14 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243154', 'tblTempUsageDetail_20' ) end [2025-01-14 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243154', 'tblTempVendorCDR_20' ) start [2025-01-14 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243154', 'tblTempVendorCDR_20' ) end [2025-01-14 02:15:18] Production.INFO: ProcessCDR(1,14243154,1,1,2) [2025-01-14 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243154', 'tblTempUsageDetail_20' ) start [2025-01-14 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243154', 'tblTempUsageDetail_20' ) end [2025-01-14 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:15:21] Production.INFO: ==3848== Releasing lock... [2025-01-14 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:15:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:16:04 [end_date_ymd] => 2025-01-14 02:16:04 [RateCDR] => 1 ) [2025-01-14 02: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` >= '2025-01-13 23:16:04' and `end` < '2025-01-14 02: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 ,'') [2025-01-14 02:16:18] Production.INFO: count ==220 [2025-01-14 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:16:04 - End Time 2025-01-14 02:16:04 [2025-01-14 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243159', 'tblTempUsageDetail_20' ) start [2025-01-14 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243159', 'tblTempUsageDetail_20' ) end [2025-01-14 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243159', 'tblTempVendorCDR_20' ) start [2025-01-14 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243159', 'tblTempVendorCDR_20' ) end [2025-01-14 02:16:18] Production.INFO: ProcessCDR(1,14243159,1,1,2) [2025-01-14 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243159', 'tblTempUsageDetail_20' ) start [2025-01-14 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243159', 'tblTempUsageDetail_20' ) end [2025-01-14 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:16:22] Production.INFO: ==3919== Releasing lock... [2025-01-14 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:16:22] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:17:06 [end_date_ymd] => 2025-01-14 02:17:06 [RateCDR] => 1 ) [2025-01-14 02:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:17:06' and `end` < '2025-01-14 02:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:17:19] Production.INFO: count ==220 [2025-01-14 02:17:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:17:06 - End Time 2025-01-14 02:17:06 [2025-01-14 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243164', 'tblTempUsageDetail_20' ) start [2025-01-14 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243164', 'tblTempUsageDetail_20' ) end [2025-01-14 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243164', 'tblTempVendorCDR_20' ) start [2025-01-14 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243164', 'tblTempVendorCDR_20' ) end [2025-01-14 02:17:19] Production.INFO: ProcessCDR(1,14243164,1,1,2) [2025-01-14 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243164', 'tblTempUsageDetail_20' ) start [2025-01-14 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243164', 'tblTempUsageDetail_20' ) end [2025-01-14 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:17:22] Production.INFO: ==3992== Releasing lock... [2025-01-14 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:17:22] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:18:05 [end_date_ymd] => 2025-01-14 02:18:05 [RateCDR] => 1 ) [2025-01-14 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:18:05' and `end` < '2025-01-14 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:18:17] Production.INFO: count ==217 [2025-01-14 02:18:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:18:05 - End Time 2025-01-14 02:18:05 [2025-01-14 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243169', 'tblTempUsageDetail_20' ) start [2025-01-14 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243169', 'tblTempUsageDetail_20' ) end [2025-01-14 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243169', 'tblTempVendorCDR_20' ) start [2025-01-14 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243169', 'tblTempVendorCDR_20' ) end [2025-01-14 02:18:17] Production.INFO: ProcessCDR(1,14243169,1,1,2) [2025-01-14 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243169', 'tblTempUsageDetail_20' ) start [2025-01-14 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243169', 'tblTempUsageDetail_20' ) end [2025-01-14 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:18:20] Production.INFO: ==4067== Releasing lock... [2025-01-14 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:18:20] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:19:05 [end_date_ymd] => 2025-01-14 02:19:05 [RateCDR] => 1 ) [2025-01-14 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:19:05' and `end` < '2025-01-14 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:19:20] Production.INFO: count ==213 [2025-01-14 02:19:20] Production.ERROR: pbx CDR StartTime 2025-01-13 23:19:05 - End Time 2025-01-14 02:19:05 [2025-01-14 02:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243174', 'tblTempUsageDetail_20' ) start [2025-01-14 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243174', 'tblTempUsageDetail_20' ) end [2025-01-14 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243174', 'tblTempVendorCDR_20' ) start [2025-01-14 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243174', 'tblTempVendorCDR_20' ) end [2025-01-14 02:19:20] Production.INFO: ProcessCDR(1,14243174,1,1,2) [2025-01-14 02:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243174', 'tblTempUsageDetail_20' ) start [2025-01-14 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243174', 'tblTempUsageDetail_20' ) end [2025-01-14 02:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:19:23] Production.INFO: ==4143== Releasing lock... [2025-01-14 02:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:19:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:20:06 [end_date_ymd] => 2025-01-14 02:20:06 [RateCDR] => 1 ) [2025-01-14 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:20:06' and `end` < '2025-01-14 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:20:19] Production.INFO: count ==218 [2025-01-14 02:20:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:20:06 - End Time 2025-01-14 02:20:06 [2025-01-14 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243180', 'tblTempUsageDetail_20' ) start [2025-01-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243180', 'tblTempUsageDetail_20' ) end [2025-01-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243180', 'tblTempVendorCDR_20' ) start [2025-01-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243180', 'tblTempVendorCDR_20' ) end [2025-01-14 02:20:19] Production.INFO: ProcessCDR(1,14243180,1,1,2) [2025-01-14 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243180', 'tblTempUsageDetail_20' ) start [2025-01-14 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243180', 'tblTempUsageDetail_20' ) end [2025-01-14 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:20:23] Production.INFO: ==4218== Releasing lock... [2025-01-14 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:20:23] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:21:05 [end_date_ymd] => 2025-01-14 02:21:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:21:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:21:18] Production.INFO: count ==217 [2025-01-14 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:21:05 - End Time 2025-01-14 02:21:05 [2025-01-14 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243185', 'tblTempUsageDetail_20' ) start [2025-01-14 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243185', 'tblTempUsageDetail_20' ) end [2025-01-14 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243185', 'tblTempVendorCDR_20' ) start [2025-01-14 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243185', 'tblTempVendorCDR_20' ) end [2025-01-14 02:21:18] Production.INFO: ProcessCDR(1,14243185,1,1,2) [2025-01-14 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243185', 'tblTempUsageDetail_20' ) start [2025-01-14 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243185', 'tblTempUsageDetail_20' ) end [2025-01-14 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:21:21] Production.INFO: ==4294== Releasing lock... [2025-01-14 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:21:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:22:05 [end_date_ymd] => 2025-01-14 02:22:05 [RateCDR] => 1 ) [2025-01-14 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:22:05' and `end` < '2025-01-14 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:22:19] Production.INFO: count ==216 [2025-01-14 02:22:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:22:05 - End Time 2025-01-14 02:22:05 [2025-01-14 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243190', 'tblTempUsageDetail_20' ) start [2025-01-14 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243190', 'tblTempUsageDetail_20' ) end [2025-01-14 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243190', 'tblTempVendorCDR_20' ) start [2025-01-14 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243190', 'tblTempVendorCDR_20' ) end [2025-01-14 02:22:19] Production.INFO: ProcessCDR(1,14243190,1,1,2) [2025-01-14 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243190', 'tblTempUsageDetail_20' ) start [2025-01-14 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243190', 'tblTempUsageDetail_20' ) end [2025-01-14 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:22:22] Production.INFO: ==4365== Releasing lock... [2025-01-14 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:22:22] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:23:05 [end_date_ymd] => 2025-01-14 02:23:05 [RateCDR] => 1 ) [2025-01-14 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:23:05' and `end` < '2025-01-14 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:23:18] Production.INFO: count ==217 [2025-01-14 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:23:05 - End Time 2025-01-14 02:23:05 [2025-01-14 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243195', 'tblTempUsageDetail_20' ) start [2025-01-14 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243195', 'tblTempUsageDetail_20' ) end [2025-01-14 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243195', 'tblTempVendorCDR_20' ) start [2025-01-14 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243195', 'tblTempVendorCDR_20' ) end [2025-01-14 02:23:18] Production.INFO: ProcessCDR(1,14243195,1,1,2) [2025-01-14 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243195', 'tblTempUsageDetail_20' ) start [2025-01-14 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243195', 'tblTempUsageDetail_20' ) end [2025-01-14 02:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:23:23] Production.INFO: ==4436== Releasing lock... [2025-01-14 02:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:23:23] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:24:05 [end_date_ymd] => 2025-01-14 02:24:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:24:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:24:17] Production.INFO: count ==217 [2025-01-14 02:24:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:24:05 - End Time 2025-01-14 02:24:05 [2025-01-14 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243200', 'tblTempUsageDetail_20' ) start [2025-01-14 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243200', 'tblTempUsageDetail_20' ) end [2025-01-14 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243200', 'tblTempVendorCDR_20' ) start [2025-01-14 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243200', 'tblTempVendorCDR_20' ) end [2025-01-14 02:24:17] Production.INFO: ProcessCDR(1,14243200,1,1,2) [2025-01-14 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243200', 'tblTempUsageDetail_20' ) start [2025-01-14 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243200', 'tblTempUsageDetail_20' ) end [2025-01-14 02:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:24:21] Production.INFO: ==4515== Releasing lock... [2025-01-14 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:24:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:25:06 [end_date_ymd] => 2025-01-14 02:25:06 [RateCDR] => 1 ) [2025-01-14 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:25:06' and `end` < '2025-01-14 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:25:18] Production.INFO: count ==217 [2025-01-14 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:25:06 - End Time 2025-01-14 02:25:06 [2025-01-14 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243205', 'tblTempUsageDetail_20' ) start [2025-01-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243205', 'tblTempUsageDetail_20' ) end [2025-01-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243205', 'tblTempVendorCDR_20' ) start [2025-01-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243205', 'tblTempVendorCDR_20' ) end [2025-01-14 02:25:18] Production.INFO: ProcessCDR(1,14243205,1,1,2) [2025-01-14 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243205', 'tblTempUsageDetail_20' ) start [2025-01-14 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243205', 'tblTempUsageDetail_20' ) end [2025-01-14 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:25:21] Production.INFO: ==4603== Releasing lock... [2025-01-14 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:26:05 [end_date_ymd] => 2025-01-14 02:26:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:26:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:26:18] Production.INFO: count ==216 [2025-01-14 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:26:05 - End Time 2025-01-14 02:26:05 [2025-01-14 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243210', 'tblTempUsageDetail_20' ) start [2025-01-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243210', 'tblTempUsageDetail_20' ) end [2025-01-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243210', 'tblTempVendorCDR_20' ) start [2025-01-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243210', 'tblTempVendorCDR_20' ) end [2025-01-14 02:26:18] Production.INFO: ProcessCDR(1,14243210,1,1,2) [2025-01-14 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243210', 'tblTempUsageDetail_20' ) start [2025-01-14 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243210', 'tblTempUsageDetail_20' ) end [2025-01-14 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:26:21] Production.INFO: ==4688== Releasing lock... [2025-01-14 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:26:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:27:05 [end_date_ymd] => 2025-01-14 02:27:05 [RateCDR] => 1 ) [2025-01-14 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:27:05' and `end` < '2025-01-14 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:27:18] Production.INFO: count ==216 [2025-01-14 02:27:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:27:05 - End Time 2025-01-14 02:27:05 [2025-01-14 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243215', 'tblTempUsageDetail_20' ) start [2025-01-14 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243215', 'tblTempUsageDetail_20' ) end [2025-01-14 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243215', 'tblTempVendorCDR_20' ) start [2025-01-14 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243215', 'tblTempVendorCDR_20' ) end [2025-01-14 02:27:18] Production.INFO: ProcessCDR(1,14243215,1,1,2) [2025-01-14 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243215', 'tblTempUsageDetail_20' ) start [2025-01-14 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243215', 'tblTempUsageDetail_20' ) end [2025-01-14 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:27:21] Production.INFO: ==4760== Releasing lock... [2025-01-14 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:27:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:28:05 [end_date_ymd] => 2025-01-14 02:28:05 [RateCDR] => 1 ) [2025-01-14 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:28:05' and `end` < '2025-01-14 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:28:19] Production.INFO: count ==216 [2025-01-14 02:28:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:28:05 - End Time 2025-01-14 02:28:05 [2025-01-14 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243220', 'tblTempUsageDetail_20' ) start [2025-01-14 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243220', 'tblTempUsageDetail_20' ) end [2025-01-14 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243220', 'tblTempVendorCDR_20' ) start [2025-01-14 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243220', 'tblTempVendorCDR_20' ) end [2025-01-14 02:28:19] Production.INFO: ProcessCDR(1,14243220,1,1,2) [2025-01-14 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243220', 'tblTempUsageDetail_20' ) start [2025-01-14 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243220', 'tblTempUsageDetail_20' ) end [2025-01-14 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:28:22] Production.INFO: ==4881== Releasing lock... [2025-01-14 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:28:22] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:29:05 [end_date_ymd] => 2025-01-14 02:29:05 [RateCDR] => 1 ) [2025-01-14 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:29:05' and `end` < '2025-01-14 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:29:19] Production.INFO: count ==215 [2025-01-14 02:29:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:29:05 - End Time 2025-01-14 02:29:05 [2025-01-14 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243225', 'tblTempUsageDetail_20' ) start [2025-01-14 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243225', 'tblTempUsageDetail_20' ) end [2025-01-14 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243225', 'tblTempVendorCDR_20' ) start [2025-01-14 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243225', 'tblTempVendorCDR_20' ) end [2025-01-14 02:29:19] Production.INFO: ProcessCDR(1,14243225,1,1,2) [2025-01-14 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243225', 'tblTempUsageDetail_20' ) start [2025-01-14 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243225', 'tblTempUsageDetail_20' ) end [2025-01-14 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:29:22] Production.INFO: ==4958== Releasing lock... [2025-01-14 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:29:22] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:30:06 [end_date_ymd] => 2025-01-14 02:30:06 [RateCDR] => 1 ) [2025-01-14 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:30:06' and `end` < '2025-01-14 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:30:18] Production.INFO: count ==223 [2025-01-14 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:30:06 - End Time 2025-01-14 02:30:06 [2025-01-14 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243230', 'tblTempUsageDetail_20' ) start [2025-01-14 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243230', 'tblTempUsageDetail_20' ) end [2025-01-14 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243230', 'tblTempVendorCDR_20' ) start [2025-01-14 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243230', 'tblTempVendorCDR_20' ) end [2025-01-14 02:30:18] Production.INFO: ProcessCDR(1,14243230,1,1,2) [2025-01-14 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243230', 'tblTempUsageDetail_20' ) start [2025-01-14 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243230', 'tblTempUsageDetail_20' ) end [2025-01-14 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:30:23] Production.INFO: ==5036== Releasing lock... [2025-01-14 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:30:23] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:31:05 [end_date_ymd] => 2025-01-14 02:31:05 [RateCDR] => 1 ) [2025-01-14 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:31:05' and `end` < '2025-01-14 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:31:18] Production.INFO: count ==232 [2025-01-14 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:31:05 - End Time 2025-01-14 02:31:05 [2025-01-14 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243236', 'tblTempUsageDetail_20' ) start [2025-01-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243236', 'tblTempUsageDetail_20' ) end [2025-01-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243236', 'tblTempVendorCDR_20' ) start [2025-01-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243236', 'tblTempVendorCDR_20' ) end [2025-01-14 02:31:18] Production.INFO: ProcessCDR(1,14243236,1,1,2) [2025-01-14 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243236', 'tblTempUsageDetail_20' ) start [2025-01-14 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243236', 'tblTempUsageDetail_20' ) end [2025-01-14 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:31:22] Production.INFO: ==5122== Releasing lock... [2025-01-14 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:31:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:32:05 [end_date_ymd] => 2025-01-14 02:32:05 [RateCDR] => 1 ) [2025-01-14 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:32:05' and `end` < '2025-01-14 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:32:19] Production.INFO: count ==232 [2025-01-14 02:32:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:32:05 - End Time 2025-01-14 02:32:05 [2025-01-14 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243241', 'tblTempUsageDetail_20' ) start [2025-01-14 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243241', 'tblTempUsageDetail_20' ) end [2025-01-14 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243241', 'tblTempVendorCDR_20' ) start [2025-01-14 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243241', 'tblTempVendorCDR_20' ) end [2025-01-14 02:32:19] Production.INFO: ProcessCDR(1,14243241,1,1,2) [2025-01-14 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243241', 'tblTempUsageDetail_20' ) start [2025-01-14 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243241', 'tblTempUsageDetail_20' ) end [2025-01-14 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:32:22] Production.INFO: ==5203== Releasing lock... [2025-01-14 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:33:05 [end_date_ymd] => 2025-01-14 02:33:05 [RateCDR] => 1 ) [2025-01-14 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:33:05' and `end` < '2025-01-14 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:33:18] Production.INFO: count ==232 [2025-01-14 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:33:05 - End Time 2025-01-14 02:33:05 [2025-01-14 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243246', 'tblTempUsageDetail_20' ) start [2025-01-14 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243246', 'tblTempUsageDetail_20' ) end [2025-01-14 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243246', 'tblTempVendorCDR_20' ) start [2025-01-14 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243246', 'tblTempVendorCDR_20' ) end [2025-01-14 02:33:18] Production.INFO: ProcessCDR(1,14243246,1,1,2) [2025-01-14 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243246', 'tblTempUsageDetail_20' ) start [2025-01-14 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243246', 'tblTempUsageDetail_20' ) end [2025-01-14 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:33:21] Production.INFO: ==5286== Releasing lock... [2025-01-14 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:34:05 [end_date_ymd] => 2025-01-14 02:34:05 [RateCDR] => 1 ) [2025-01-14 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:34:05' and `end` < '2025-01-14 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:34:19] Production.INFO: count ==229 [2025-01-14 02:34:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:34:05 - End Time 2025-01-14 02:34:05 [2025-01-14 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243251', 'tblTempUsageDetail_20' ) start [2025-01-14 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243251', 'tblTempUsageDetail_20' ) end [2025-01-14 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243251', 'tblTempVendorCDR_20' ) start [2025-01-14 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243251', 'tblTempVendorCDR_20' ) end [2025-01-14 02:34:19] Production.INFO: ProcessCDR(1,14243251,1,1,2) [2025-01-14 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243251', 'tblTempUsageDetail_20' ) start [2025-01-14 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243251', 'tblTempUsageDetail_20' ) end [2025-01-14 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:34:22] Production.INFO: ==5367== Releasing lock... [2025-01-14 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:34:22] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:35:05 [end_date_ymd] => 2025-01-14 02:35:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:35:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:35:17] Production.INFO: count ==229 [2025-01-14 02:35:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:35:05 - End Time 2025-01-14 02:35:05 [2025-01-14 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243256', 'tblTempUsageDetail_20' ) start [2025-01-14 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243256', 'tblTempUsageDetail_20' ) end [2025-01-14 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243256', 'tblTempVendorCDR_20' ) start [2025-01-14 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243256', 'tblTempVendorCDR_20' ) end [2025-01-14 02:35:17] Production.INFO: ProcessCDR(1,14243256,1,1,2) [2025-01-14 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243256', 'tblTempUsageDetail_20' ) start [2025-01-14 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243256', 'tblTempUsageDetail_20' ) end [2025-01-14 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:35:20] Production.INFO: ==5445== Releasing lock... [2025-01-14 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:35:20] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:36:06 [end_date_ymd] => 2025-01-14 02:36:06 [RateCDR] => 1 ) [2025-01-14 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:36:06' and `end` < '2025-01-14 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:36:18] Production.INFO: count ==229 [2025-01-14 02:36:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:36:06 - End Time 2025-01-14 02:36:06 [2025-01-14 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243259', 'tblTempUsageDetail_20' ) start [2025-01-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243259', 'tblTempUsageDetail_20' ) end [2025-01-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243259', 'tblTempVendorCDR_20' ) start [2025-01-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243259', 'tblTempVendorCDR_20' ) end [2025-01-14 02:36:18] Production.INFO: ProcessCDR(1,14243259,1,1,2) [2025-01-14 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243259', 'tblTempUsageDetail_20' ) start [2025-01-14 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243259', 'tblTempUsageDetail_20' ) end [2025-01-14 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:36:22] Production.INFO: ==5524== Releasing lock... [2025-01-14 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:36:22] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:37:05 [end_date_ymd] => 2025-01-14 02:37:05 [RateCDR] => 1 ) [2025-01-14 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:37:05' and `end` < '2025-01-14 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:37:18] Production.INFO: count ==229 [2025-01-14 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:37:05 - End Time 2025-01-14 02:37:05 [2025-01-14 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243266', 'tblTempUsageDetail_20' ) start [2025-01-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243266', 'tblTempUsageDetail_20' ) end [2025-01-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243266', 'tblTempVendorCDR_20' ) start [2025-01-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243266', 'tblTempVendorCDR_20' ) end [2025-01-14 02:37:18] Production.INFO: ProcessCDR(1,14243266,1,1,2) [2025-01-14 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243266', 'tblTempUsageDetail_20' ) start [2025-01-14 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243266', 'tblTempUsageDetail_20' ) end [2025-01-14 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:37:21] Production.INFO: ==5609== Releasing lock... [2025-01-14 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:37:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:38:06 [end_date_ymd] => 2025-01-14 02:38:06 [RateCDR] => 1 ) [2025-01-14 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:38:06' and `end` < '2025-01-14 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:38:19] Production.INFO: count ==229 [2025-01-14 02:38:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:38:06 - End Time 2025-01-14 02:38:06 [2025-01-14 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243271', 'tblTempUsageDetail_20' ) start [2025-01-14 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243271', 'tblTempUsageDetail_20' ) end [2025-01-14 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243271', 'tblTempVendorCDR_20' ) start [2025-01-14 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243271', 'tblTempVendorCDR_20' ) end [2025-01-14 02:38:19] Production.INFO: ProcessCDR(1,14243271,1,1,2) [2025-01-14 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243271', 'tblTempUsageDetail_20' ) start [2025-01-14 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243271', 'tblTempUsageDetail_20' ) end [2025-01-14 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:38:22] Production.INFO: ==5690== Releasing lock... [2025-01-14 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:38:22] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:39:05 [end_date_ymd] => 2025-01-14 02:39:05 [RateCDR] => 1 ) [2025-01-14 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:39:05' and `end` < '2025-01-14 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:39:17] Production.INFO: count ==229 [2025-01-14 02:39:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:39:05 - End Time 2025-01-14 02:39:05 [2025-01-14 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243276', 'tblTempUsageDetail_20' ) start [2025-01-14 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243276', 'tblTempUsageDetail_20' ) end [2025-01-14 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243276', 'tblTempVendorCDR_20' ) start [2025-01-14 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243276', 'tblTempVendorCDR_20' ) end [2025-01-14 02:39:17] Production.INFO: ProcessCDR(1,14243276,1,1,2) [2025-01-14 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243276', 'tblTempUsageDetail_20' ) start [2025-01-14 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243276', 'tblTempUsageDetail_20' ) end [2025-01-14 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:39:21] Production.INFO: ==5766== Releasing lock... [2025-01-14 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:39:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:40:06 [end_date_ymd] => 2025-01-14 02:40:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:40:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:40:19] Production.INFO: count ==235 [2025-01-14 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:40:06 - End Time 2025-01-14 02:40:06 [2025-01-14 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243281', 'tblTempUsageDetail_20' ) start [2025-01-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243281', 'tblTempUsageDetail_20' ) end [2025-01-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243281', 'tblTempVendorCDR_20' ) start [2025-01-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243281', 'tblTempVendorCDR_20' ) end [2025-01-14 02:40:19] Production.INFO: ProcessCDR(1,14243281,1,1,2) [2025-01-14 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243281', 'tblTempUsageDetail_20' ) start [2025-01-14 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243281', 'tblTempUsageDetail_20' ) end [2025-01-14 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:40:22] Production.INFO: ==5848== Releasing lock... [2025-01-14 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:41:05 [end_date_ymd] => 2025-01-14 02:41:05 [RateCDR] => 1 ) [2025-01-14 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:41:05' and `end` < '2025-01-14 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:41:17] Production.INFO: count ==236 [2025-01-14 02:41:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:41:05 - End Time 2025-01-14 02:41:05 [2025-01-14 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243287', 'tblTempUsageDetail_20' ) start [2025-01-14 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243287', 'tblTempUsageDetail_20' ) end [2025-01-14 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243287', 'tblTempVendorCDR_20' ) start [2025-01-14 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243287', 'tblTempVendorCDR_20' ) end [2025-01-14 02:41:17] Production.INFO: ProcessCDR(1,14243287,1,1,2) [2025-01-14 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243287', 'tblTempUsageDetail_20' ) start [2025-01-14 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243287', 'tblTempUsageDetail_20' ) end [2025-01-14 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:41:21] Production.INFO: ==5923== Releasing lock... [2025-01-14 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:42:05 [end_date_ymd] => 2025-01-14 02:42:05 [RateCDR] => 1 ) [2025-01-14 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:42:05' and `end` < '2025-01-14 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:42:18] Production.INFO: count ==236 [2025-01-14 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:42:05 - End Time 2025-01-14 02:42:05 [2025-01-14 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243292', 'tblTempUsageDetail_20' ) start [2025-01-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243292', 'tblTempUsageDetail_20' ) end [2025-01-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243292', 'tblTempVendorCDR_20' ) start [2025-01-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243292', 'tblTempVendorCDR_20' ) end [2025-01-14 02:42:18] Production.INFO: ProcessCDR(1,14243292,1,1,2) [2025-01-14 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243292', 'tblTempUsageDetail_20' ) start [2025-01-14 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243292', 'tblTempUsageDetail_20' ) end [2025-01-14 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:42:21] Production.INFO: ==6004== Releasing lock... [2025-01-14 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:43:06 [end_date_ymd] => 2025-01-14 02:43:06 [RateCDR] => 1 ) [2025-01-14 02:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:43:06' and `end` < '2025-01-14 02:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:43:18] Production.INFO: count ==236 [2025-01-14 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:43:06 - End Time 2025-01-14 02:43:06 [2025-01-14 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243297', 'tblTempUsageDetail_20' ) start [2025-01-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243297', 'tblTempUsageDetail_20' ) end [2025-01-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243297', 'tblTempVendorCDR_20' ) start [2025-01-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243297', 'tblTempVendorCDR_20' ) end [2025-01-14 02:43:18] Production.INFO: ProcessCDR(1,14243297,1,1,2) [2025-01-14 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243297', 'tblTempUsageDetail_20' ) start [2025-01-14 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243297', 'tblTempUsageDetail_20' ) end [2025-01-14 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:43:22] Production.INFO: ==6126== Releasing lock... [2025-01-14 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:44:06 [end_date_ymd] => 2025-01-14 02:44:06 [RateCDR] => 1 ) [2025-01-14 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:44:06' and `end` < '2025-01-14 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:44:19] Production.INFO: count ==235 [2025-01-14 02:44:19] Production.ERROR: pbx CDR StartTime 2025-01-13 23:44:06 - End Time 2025-01-14 02:44:06 [2025-01-14 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243302', 'tblTempUsageDetail_20' ) start [2025-01-14 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243302', 'tblTempUsageDetail_20' ) end [2025-01-14 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243302', 'tblTempVendorCDR_20' ) start [2025-01-14 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243302', 'tblTempVendorCDR_20' ) end [2025-01-14 02:44:19] Production.INFO: ProcessCDR(1,14243302,1,1,2) [2025-01-14 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243302', 'tblTempUsageDetail_20' ) start [2025-01-14 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243302', 'tblTempUsageDetail_20' ) end [2025-01-14 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:44:22] Production.INFO: ==6201== Releasing lock... [2025-01-14 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:44:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:45:05 [end_date_ymd] => 2025-01-14 02:45:05 [RateCDR] => 1 ) [2025-01-14 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:45:05' and `end` < '2025-01-14 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:45:18] Production.INFO: count ==235 [2025-01-14 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:45:05 - End Time 2025-01-14 02:45:05 [2025-01-14 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243307', 'tblTempUsageDetail_20' ) start [2025-01-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243307', 'tblTempUsageDetail_20' ) end [2025-01-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243307', 'tblTempVendorCDR_20' ) start [2025-01-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243307', 'tblTempVendorCDR_20' ) end [2025-01-14 02:45:18] Production.INFO: ProcessCDR(1,14243307,1,1,2) [2025-01-14 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243307', 'tblTempUsageDetail_20' ) start [2025-01-14 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243307', 'tblTempUsageDetail_20' ) end [2025-01-14 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:45:21] Production.INFO: ==6283== Releasing lock... [2025-01-14 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:46:05 [end_date_ymd] => 2025-01-14 02:46:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:46:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:46:18] Production.INFO: count ==235 [2025-01-14 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:46:05 - End Time 2025-01-14 02:46:05 [2025-01-14 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243312', 'tblTempUsageDetail_20' ) start [2025-01-14 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243312', 'tblTempUsageDetail_20' ) end [2025-01-14 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243312', 'tblTempVendorCDR_20' ) start [2025-01-14 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243312', 'tblTempVendorCDR_20' ) end [2025-01-14 02:46:18] Production.INFO: ProcessCDR(1,14243312,1,1,2) [2025-01-14 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243312', 'tblTempUsageDetail_20' ) start [2025-01-14 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243312', 'tblTempUsageDetail_20' ) end [2025-01-14 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:46:21] Production.INFO: ==6364== Releasing lock... [2025-01-14 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:47:05 [end_date_ymd] => 2025-01-14 02:47:05 [RateCDR] => 1 ) [2025-01-14 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:47:05' and `end` < '2025-01-14 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:47:18] Production.INFO: count ==234 [2025-01-14 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:47:05 - End Time 2025-01-14 02:47:05 [2025-01-14 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243317', 'tblTempUsageDetail_20' ) start [2025-01-14 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243317', 'tblTempUsageDetail_20' ) end [2025-01-14 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243317', 'tblTempVendorCDR_20' ) start [2025-01-14 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243317', 'tblTempVendorCDR_20' ) end [2025-01-14 02:47:18] Production.INFO: ProcessCDR(1,14243317,1,1,2) [2025-01-14 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243317', 'tblTempUsageDetail_20' ) start [2025-01-14 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243317', 'tblTempUsageDetail_20' ) end [2025-01-14 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:47:21] Production.INFO: ==6445== Releasing lock... [2025-01-14 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:48:05 [end_date_ymd] => 2025-01-14 02:48:05 [RateCDR] => 1 ) [2025-01-14 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:48:05' and `end` < '2025-01-14 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:48:17] Production.INFO: count ==236 [2025-01-14 02:48:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:48:05 - End Time 2025-01-14 02:48:05 [2025-01-14 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243322', 'tblTempUsageDetail_20' ) start [2025-01-14 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243322', 'tblTempUsageDetail_20' ) end [2025-01-14 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243322', 'tblTempVendorCDR_20' ) start [2025-01-14 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243322', 'tblTempVendorCDR_20' ) end [2025-01-14 02:48:17] Production.INFO: ProcessCDR(1,14243322,1,1,2) [2025-01-14 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243322', 'tblTempUsageDetail_20' ) start [2025-01-14 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243322', 'tblTempUsageDetail_20' ) end [2025-01-14 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:48:21] Production.INFO: ==6522== Releasing lock... [2025-01-14 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:49:05 [end_date_ymd] => 2025-01-14 02:49:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:49:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:49:18] Production.INFO: count ==236 [2025-01-14 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:49:05 - End Time 2025-01-14 02:49:05 [2025-01-14 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243327', 'tblTempUsageDetail_20' ) start [2025-01-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243327', 'tblTempUsageDetail_20' ) end [2025-01-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243327', 'tblTempVendorCDR_20' ) start [2025-01-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243327', 'tblTempVendorCDR_20' ) end [2025-01-14 02:49:18] Production.INFO: ProcessCDR(1,14243327,1,1,2) [2025-01-14 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243327', 'tblTempUsageDetail_20' ) start [2025-01-14 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243327', 'tblTempUsageDetail_20' ) end [2025-01-14 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:49:21] Production.INFO: ==6596== Releasing lock... [2025-01-14 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:50:06 [end_date_ymd] => 2025-01-14 02:50:06 [RateCDR] => 1 ) [2025-01-14 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:50:06' and `end` < '2025-01-14 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:50:18] Production.INFO: count ==238 [2025-01-14 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:50:06 - End Time 2025-01-14 02:50:06 [2025-01-14 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243333', 'tblTempUsageDetail_20' ) start [2025-01-14 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243333', 'tblTempUsageDetail_20' ) end [2025-01-14 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243333', 'tblTempVendorCDR_20' ) start [2025-01-14 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243333', 'tblTempVendorCDR_20' ) end [2025-01-14 02:50:18] Production.INFO: ProcessCDR(1,14243333,1,1,2) [2025-01-14 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243333', 'tblTempUsageDetail_20' ) start [2025-01-14 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243333', 'tblTempUsageDetail_20' ) end [2025-01-14 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:50:22] Production.INFO: ==6681== Releasing lock... [2025-01-14 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:51:05 [end_date_ymd] => 2025-01-14 02:51:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:51:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:51:18] Production.INFO: count ==237 [2025-01-14 02:51:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:51:05 - End Time 2025-01-14 02:51:05 [2025-01-14 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243338', 'tblTempUsageDetail_20' ) start [2025-01-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243338', 'tblTempUsageDetail_20' ) end [2025-01-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243338', 'tblTempVendorCDR_20' ) start [2025-01-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243338', 'tblTempVendorCDR_20' ) end [2025-01-14 02:51:18] Production.INFO: ProcessCDR(1,14243338,1,1,2) [2025-01-14 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243338', 'tblTempUsageDetail_20' ) start [2025-01-14 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243338', 'tblTempUsageDetail_20' ) end [2025-01-14 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:51:22] Production.INFO: ==6762== Releasing lock... [2025-01-14 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:52:05 [end_date_ymd] => 2025-01-14 02:52:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:52:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:52:17] Production.INFO: count ==236 [2025-01-14 02:52:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:52:05 - End Time 2025-01-14 02:52:05 [2025-01-14 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243343', 'tblTempUsageDetail_20' ) start [2025-01-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243343', 'tblTempUsageDetail_20' ) end [2025-01-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243343', 'tblTempVendorCDR_20' ) start [2025-01-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243343', 'tblTempVendorCDR_20' ) end [2025-01-14 02:52:18] Production.INFO: ProcessCDR(1,14243343,1,1,2) [2025-01-14 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243343', 'tblTempUsageDetail_20' ) start [2025-01-14 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243343', 'tblTempUsageDetail_20' ) end [2025-01-14 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:52:21] Production.INFO: ==6844== Releasing lock... [2025-01-14 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:53:05 [end_date_ymd] => 2025-01-14 02:53:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:53:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:53:18] Production.INFO: count ==235 [2025-01-14 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:53:05 - End Time 2025-01-14 02:53:05 [2025-01-14 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243348', 'tblTempUsageDetail_20' ) start [2025-01-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243348', 'tblTempUsageDetail_20' ) end [2025-01-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243348', 'tblTempVendorCDR_20' ) start [2025-01-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243348', 'tblTempVendorCDR_20' ) end [2025-01-14 02:53:18] Production.INFO: ProcessCDR(1,14243348,1,1,2) [2025-01-14 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243348', 'tblTempUsageDetail_20' ) start [2025-01-14 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243348', 'tblTempUsageDetail_20' ) end [2025-01-14 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:53:22] Production.INFO: ==6916== Releasing lock... [2025-01-14 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:54:05 [end_date_ymd] => 2025-01-14 02:54:05 [RateCDR] => 1 ) [2025-01-14 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:54:05' and `end` < '2025-01-14 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:54:17] Production.INFO: count ==235 [2025-01-14 02:54:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:54:05 - End Time 2025-01-14 02:54:05 [2025-01-14 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243353', 'tblTempUsageDetail_20' ) start [2025-01-14 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243353', 'tblTempUsageDetail_20' ) end [2025-01-14 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243353', 'tblTempVendorCDR_20' ) start [2025-01-14 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243353', 'tblTempVendorCDR_20' ) end [2025-01-14 02:54:17] Production.INFO: ProcessCDR(1,14243353,1,1,2) [2025-01-14 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243353', 'tblTempUsageDetail_20' ) start [2025-01-14 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243353', 'tblTempUsageDetail_20' ) end [2025-01-14 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:54:20] Production.INFO: ==7000== Releasing lock... [2025-01-14 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:54:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:55:05 [end_date_ymd] => 2025-01-14 02:55:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:55:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:55:17] Production.INFO: count ==233 [2025-01-14 02:55:17] Production.ERROR: pbx CDR StartTime 2025-01-13 23:55:05 - End Time 2025-01-14 02:55:05 [2025-01-14 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243358', 'tblTempUsageDetail_20' ) start [2025-01-14 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243358', 'tblTempUsageDetail_20' ) end [2025-01-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243358', 'tblTempVendorCDR_20' ) start [2025-01-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243358', 'tblTempVendorCDR_20' ) end [2025-01-14 02:55:18] Production.INFO: ProcessCDR(1,14243358,1,1,2) [2025-01-14 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243358', 'tblTempUsageDetail_20' ) start [2025-01-14 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243358', 'tblTempUsageDetail_20' ) end [2025-01-14 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:55:21] Production.INFO: ==7074== Releasing lock... [2025-01-14 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:56:05 [end_date_ymd] => 2025-01-14 02:56:05 [RateCDR] => 1 ) [2025-01-14 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:56:05' and `end` < '2025-01-14 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:56:18] Production.INFO: count ==232 [2025-01-14 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:56:05 - End Time 2025-01-14 02:56:05 [2025-01-14 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243363', 'tblTempUsageDetail_20' ) start [2025-01-14 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243363', 'tblTempUsageDetail_20' ) end [2025-01-14 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243363', 'tblTempVendorCDR_20' ) start [2025-01-14 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243363', 'tblTempVendorCDR_20' ) end [2025-01-14 02:56:18] Production.INFO: ProcessCDR(1,14243363,1,1,2) [2025-01-14 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243363', 'tblTempUsageDetail_20' ) start [2025-01-14 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243363', 'tblTempUsageDetail_20' ) end [2025-01-14 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:56:22] Production.INFO: ==7159== Releasing lock... [2025-01-14 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:56:22] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:57:05 [end_date_ymd] => 2025-01-14 02:57:05 [RateCDR] => 1 ) [2025-01-14 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:57:05' and `end` < '2025-01-14 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:57:18] Production.INFO: count ==232 [2025-01-14 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:57:05 - End Time 2025-01-14 02:57:05 [2025-01-14 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243368', 'tblTempUsageDetail_20' ) start [2025-01-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243368', 'tblTempUsageDetail_20' ) end [2025-01-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243368', 'tblTempVendorCDR_20' ) start [2025-01-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243368', 'tblTempVendorCDR_20' ) end [2025-01-14 02:57:18] Production.INFO: ProcessCDR(1,14243368,1,1,2) [2025-01-14 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243368', 'tblTempUsageDetail_20' ) start [2025-01-14 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243368', 'tblTempUsageDetail_20' ) end [2025-01-14 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:57:21] Production.INFO: ==7234== Releasing lock... [2025-01-14 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:57:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:58:05 [end_date_ymd] => 2025-01-14 02:58:05 [RateCDR] => 1 ) [2025-01-14 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 23:58:05' and `end` < '2025-01-14 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 02:58:18] Production.INFO: count ==232 [2025-01-14 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:58:05 - End Time 2025-01-14 02:58:05 [2025-01-14 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243373', 'tblTempUsageDetail_20' ) start [2025-01-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243373', 'tblTempUsageDetail_20' ) end [2025-01-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243373', 'tblTempVendorCDR_20' ) start [2025-01-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243373', 'tblTempVendorCDR_20' ) end [2025-01-14 02:58:18] Production.INFO: ProcessCDR(1,14243373,1,1,2) [2025-01-14 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243373', 'tblTempUsageDetail_20' ) start [2025-01-14 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243373', 'tblTempUsageDetail_20' ) end [2025-01-14 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:58:21] Production.INFO: ==7314== Releasing lock... [2025-01-14 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:58:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 23:59:04 [end_date_ymd] => 2025-01-14 02:59:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-13 23:59:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 02:59:18] Production.INFO: count ==232 [2025-01-14 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-13 23:59:04 - End Time 2025-01-14 02:59:04 [2025-01-14 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243378', 'tblTempUsageDetail_20' ) start [2025-01-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243378', 'tblTempUsageDetail_20' ) end [2025-01-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243378', 'tblTempVendorCDR_20' ) start [2025-01-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243378', 'tblTempVendorCDR_20' ) end [2025-01-14 02:59:18] Production.INFO: ProcessCDR(1,14243378,1,1,2) [2025-01-14 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243378', 'tblTempUsageDetail_20' ) start [2025-01-14 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243378', 'tblTempUsageDetail_20' ) end [2025-01-14 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 02:59:21] Production.INFO: ==7433== Releasing lock... [2025-01-14 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 02:59:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:00:06 [end_date_ymd] => 2025-01-14 03:00:06 [RateCDR] => 1 ) [2025-01-14 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:00:06' and `end` < '2025-01-14 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:00:19] Production.INFO: count ==233 [2025-01-14 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:00:06 - End Time 2025-01-14 03:00:06 [2025-01-14 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243384', 'tblTempUsageDetail_20' ) start [2025-01-14 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243384', 'tblTempUsageDetail_20' ) end [2025-01-14 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243384', 'tblTempVendorCDR_20' ) start [2025-01-14 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243384', 'tblTempVendorCDR_20' ) end [2025-01-14 03:00:19] Production.INFO: ProcessCDR(1,14243384,1,1,2) [2025-01-14 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243384', 'tblTempUsageDetail_20' ) start [2025-01-14 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243384', 'tblTempUsageDetail_20' ) end [2025-01-14 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:00:23] Production.INFO: ==7517== Releasing lock... [2025-01-14 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:01:05 [end_date_ymd] => 2025-01-14 03:01:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:01:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:01:17] Production.INFO: count ==232 [2025-01-14 03:01:17] Production.ERROR: pbx CDR StartTime 2025-01-14 00:01:05 - End Time 2025-01-14 03:01:05 [2025-01-14 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243389', 'tblTempUsageDetail_20' ) start [2025-01-14 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243389', 'tblTempUsageDetail_20' ) end [2025-01-14 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243389', 'tblTempVendorCDR_20' ) start [2025-01-14 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243389', 'tblTempVendorCDR_20' ) end [2025-01-14 03:01:17] Production.INFO: ProcessCDR(1,14243389,1,1,2) [2025-01-14 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243389', 'tblTempUsageDetail_20' ) start [2025-01-14 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243389', 'tblTempUsageDetail_20' ) end [2025-01-14 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:01:21] Production.INFO: ==7608== Releasing lock... [2025-01-14 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:01:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:02:05 [end_date_ymd] => 2025-01-14 03:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:02:17] Production.INFO: count ==232 [2025-01-14 03:02:17] Production.ERROR: pbx CDR StartTime 2025-01-14 00:02:05 - End Time 2025-01-14 03:02:05 [2025-01-14 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243394', 'tblTempUsageDetail_20' ) start [2025-01-14 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243394', 'tblTempUsageDetail_20' ) end [2025-01-14 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243394', 'tblTempVendorCDR_20' ) start [2025-01-14 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243394', 'tblTempVendorCDR_20' ) end [2025-01-14 03:02:17] Production.INFO: ProcessCDR(1,14243394,1,1,2) [2025-01-14 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243394', 'tblTempUsageDetail_20' ) start [2025-01-14 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243394', 'tblTempUsageDetail_20' ) end [2025-01-14 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:02:21] Production.INFO: ==7770== Releasing lock... [2025-01-14 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:02:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:03:05 [end_date_ymd] => 2025-01-14 03:03:05 [RateCDR] => 1 ) [2025-01-14 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:03:05' and `end` < '2025-01-14 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:03:18] Production.INFO: count ==232 [2025-01-14 03:03:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:03:05 - End Time 2025-01-14 03:03:05 [2025-01-14 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243399', 'tblTempUsageDetail_20' ) start [2025-01-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243399', 'tblTempUsageDetail_20' ) end [2025-01-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243399', 'tblTempVendorCDR_20' ) start [2025-01-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243399', 'tblTempVendorCDR_20' ) end [2025-01-14 03:03:18] Production.INFO: ProcessCDR(1,14243399,1,1,2) [2025-01-14 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243399', 'tblTempUsageDetail_20' ) start [2025-01-14 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243399', 'tblTempUsageDetail_20' ) end [2025-01-14 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:03:21] Production.INFO: ==7844== Releasing lock... [2025-01-14 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:04:05 [end_date_ymd] => 2025-01-14 03:04:05 [RateCDR] => 1 ) [2025-01-14 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:04:05' and `end` < '2025-01-14 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:04:18] Production.INFO: count ==232 [2025-01-14 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:04:05 - End Time 2025-01-14 03:04:05 [2025-01-14 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243404', 'tblTempUsageDetail_20' ) start [2025-01-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243404', 'tblTempUsageDetail_20' ) end [2025-01-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243404', 'tblTempVendorCDR_20' ) start [2025-01-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243404', 'tblTempVendorCDR_20' ) end [2025-01-14 03:04:18] Production.INFO: ProcessCDR(1,14243404,1,1,2) [2025-01-14 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243404', 'tblTempUsageDetail_20' ) start [2025-01-14 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243404', 'tblTempUsageDetail_20' ) end [2025-01-14 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:04:21] Production.INFO: ==7923== Releasing lock... [2025-01-14 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:05:04 [end_date_ymd] => 2025-01-14 03:05:04 [RateCDR] => 1 ) [2025-01-14 03:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:05:04' and `end` < '2025-01-14 03:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:05:18] Production.INFO: count ==232 [2025-01-14 03:05:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:05:04 - End Time 2025-01-14 03:05:04 [2025-01-14 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243409', 'tblTempUsageDetail_20' ) start [2025-01-14 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243409', 'tblTempUsageDetail_20' ) end [2025-01-14 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243409', 'tblTempVendorCDR_20' ) start [2025-01-14 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243409', 'tblTempVendorCDR_20' ) end [2025-01-14 03:05:18] Production.INFO: ProcessCDR(1,14243409,1,1,2) [2025-01-14 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243409', 'tblTempUsageDetail_20' ) start [2025-01-14 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243409', 'tblTempUsageDetail_20' ) end [2025-01-14 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:05:21] Production.INFO: ==7992== Releasing lock... [2025-01-14 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:06:05 [end_date_ymd] => 2025-01-14 03:06:05 [RateCDR] => 1 ) [2025-01-14 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:06:05' and `end` < '2025-01-14 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:06:17] Production.INFO: count ==232 [2025-01-14 03:06:17] Production.ERROR: pbx CDR StartTime 2025-01-14 00:06:05 - End Time 2025-01-14 03:06:05 [2025-01-14 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243414', 'tblTempUsageDetail_20' ) start [2025-01-14 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243414', 'tblTempUsageDetail_20' ) end [2025-01-14 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243414', 'tblTempVendorCDR_20' ) start [2025-01-14 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243414', 'tblTempVendorCDR_20' ) end [2025-01-14 03:06:17] Production.INFO: ProcessCDR(1,14243414,1,1,2) [2025-01-14 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243414', 'tblTempUsageDetail_20' ) start [2025-01-14 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243414', 'tblTempUsageDetail_20' ) end [2025-01-14 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:06:21] Production.INFO: ==8144== Releasing lock... [2025-01-14 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:06:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:07:05 [end_date_ymd] => 2025-01-14 03:07:05 [RateCDR] => 1 ) [2025-01-14 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:07:05' and `end` < '2025-01-14 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:07:18] Production.INFO: count ==231 [2025-01-14 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:07:05 - End Time 2025-01-14 03:07:05 [2025-01-14 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243419', 'tblTempUsageDetail_20' ) start [2025-01-14 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243419', 'tblTempUsageDetail_20' ) end [2025-01-14 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243419', 'tblTempVendorCDR_20' ) start [2025-01-14 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243419', 'tblTempVendorCDR_20' ) end [2025-01-14 03:07:18] Production.INFO: ProcessCDR(1,14243419,1,1,2) [2025-01-14 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243419', 'tblTempUsageDetail_20' ) start [2025-01-14 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243419', 'tblTempUsageDetail_20' ) end [2025-01-14 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:07:22] Production.INFO: ==8216== Releasing lock... [2025-01-14 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:07:22] Production.INFO: 29 MB #Memory Used# [2025-01-14 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:08:05 [end_date_ymd] => 2025-01-14 03:08:05 [RateCDR] => 1 ) [2025-01-14 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:08:05' and `end` < '2025-01-14 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:08:18] Production.INFO: count ==231 [2025-01-14 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:08:05 - End Time 2025-01-14 03:08:05 [2025-01-14 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243424', 'tblTempUsageDetail_20' ) start [2025-01-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243424', 'tblTempUsageDetail_20' ) end [2025-01-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243424', 'tblTempVendorCDR_20' ) start [2025-01-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243424', 'tblTempVendorCDR_20' ) end [2025-01-14 03:08:18] Production.INFO: ProcessCDR(1,14243424,1,1,2) [2025-01-14 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243424', 'tblTempUsageDetail_20' ) start [2025-01-14 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243424', 'tblTempUsageDetail_20' ) end [2025-01-14 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:08:22] Production.INFO: ==8286== Releasing lock... [2025-01-14 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:08:22] Production.INFO: 29 MB #Memory Used# [2025-01-14 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:09:05 [end_date_ymd] => 2025-01-14 03:09:05 [RateCDR] => 1 ) [2025-01-14 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:09:05' and `end` < '2025-01-14 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:09:18] Production.INFO: count ==231 [2025-01-14 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:09:05 - End Time 2025-01-14 03:09:05 [2025-01-14 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243429', 'tblTempUsageDetail_20' ) start [2025-01-14 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243429', 'tblTempUsageDetail_20' ) end [2025-01-14 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243429', 'tblTempVendorCDR_20' ) start [2025-01-14 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243429', 'tblTempVendorCDR_20' ) end [2025-01-14 03:09:18] Production.INFO: ProcessCDR(1,14243429,1,1,2) [2025-01-14 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243429', 'tblTempUsageDetail_20' ) start [2025-01-14 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243429', 'tblTempUsageDetail_20' ) end [2025-01-14 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:09:21] Production.INFO: ==8437== Releasing lock... [2025-01-14 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:09:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:10:06 [end_date_ymd] => 2025-01-14 03:10:06 [RateCDR] => 1 ) [2025-01-14 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:10:06' and `end` < '2025-01-14 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:10:20] Production.INFO: count ==227 [2025-01-14 03:10:21] Production.ERROR: pbx CDR StartTime 2025-01-14 00:10:06 - End Time 2025-01-14 03:10:06 [2025-01-14 03:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243434', 'tblTempUsageDetail_20' ) start [2025-01-14 03:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243434', 'tblTempUsageDetail_20' ) end [2025-01-14 03:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243434', 'tblTempVendorCDR_20' ) start [2025-01-14 03:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243434', 'tblTempVendorCDR_20' ) end [2025-01-14 03:10:21] Production.INFO: ProcessCDR(1,14243434,1,1,2) [2025-01-14 03:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243434', 'tblTempUsageDetail_20' ) start [2025-01-14 03:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243434', 'tblTempUsageDetail_20' ) end [2025-01-14 03:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:10:24] Production.INFO: ==8508== Releasing lock... [2025-01-14 03:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:10:24] Production.INFO: 29 MB #Memory Used# [2025-01-14 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:11:05 [end_date_ymd] => 2025-01-14 03:11:05 [RateCDR] => 1 ) [2025-01-14 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:11:05' and `end` < '2025-01-14 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:11:19] Production.INFO: count ==200 [2025-01-14 03:11:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:11:05 - End Time 2025-01-14 03:11:05 [2025-01-14 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243440', 'tblTempUsageDetail_20' ) start [2025-01-14 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243440', 'tblTempUsageDetail_20' ) end [2025-01-14 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243440', 'tblTempVendorCDR_20' ) start [2025-01-14 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243440', 'tblTempVendorCDR_20' ) end [2025-01-14 03:11:19] Production.INFO: ProcessCDR(1,14243440,1,1,2) [2025-01-14 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243440', 'tblTempUsageDetail_20' ) start [2025-01-14 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243440', 'tblTempUsageDetail_20' ) end [2025-01-14 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:11:22] Production.INFO: ==8582== Releasing lock... [2025-01-14 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:12:05 [end_date_ymd] => 2025-01-14 03:12:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:12:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:12:18] Production.INFO: count ==200 [2025-01-14 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:12:05 - End Time 2025-01-14 03:12:05 [2025-01-14 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243445', 'tblTempUsageDetail_20' ) start [2025-01-14 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243445', 'tblTempUsageDetail_20' ) end [2025-01-14 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243445', 'tblTempVendorCDR_20' ) start [2025-01-14 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243445', 'tblTempVendorCDR_20' ) end [2025-01-14 03:12:18] Production.INFO: ProcessCDR(1,14243445,1,1,2) [2025-01-14 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243445', 'tblTempUsageDetail_20' ) start [2025-01-14 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243445', 'tblTempUsageDetail_20' ) end [2025-01-14 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:12:22] Production.INFO: ==8654== Releasing lock... [2025-01-14 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:13:06 [end_date_ymd] => 2025-01-14 03:13:06 [RateCDR] => 1 ) [2025-01-14 03:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:13:06' and `end` < '2025-01-14 03:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:13:19] Production.INFO: count ==199 [2025-01-14 03:13:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:13:06 - End Time 2025-01-14 03:13:06 [2025-01-14 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243450', 'tblTempUsageDetail_20' ) start [2025-01-14 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243450', 'tblTempUsageDetail_20' ) end [2025-01-14 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243450', 'tblTempVendorCDR_20' ) start [2025-01-14 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243450', 'tblTempVendorCDR_20' ) end [2025-01-14 03:13:19] Production.INFO: ProcessCDR(1,14243450,1,1,2) [2025-01-14 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243450', 'tblTempUsageDetail_20' ) start [2025-01-14 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243450', 'tblTempUsageDetail_20' ) end [2025-01-14 03:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:13:23] Production.INFO: ==8810== Releasing lock... [2025-01-14 03:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:13:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:14:05 [end_date_ymd] => 2025-01-14 03:14:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:14:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:14:17] Production.INFO: count ==199 [2025-01-14 03:14:17] Production.ERROR: pbx CDR StartTime 2025-01-14 00:14:05 - End Time 2025-01-14 03:14:05 [2025-01-14 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243455', 'tblTempUsageDetail_20' ) start [2025-01-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243455', 'tblTempUsageDetail_20' ) end [2025-01-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243455', 'tblTempVendorCDR_20' ) start [2025-01-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243455', 'tblTempVendorCDR_20' ) end [2025-01-14 03:14:17] Production.INFO: ProcessCDR(1,14243455,1,1,2) [2025-01-14 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243455', 'tblTempUsageDetail_20' ) start [2025-01-14 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243455', 'tblTempUsageDetail_20' ) end [2025-01-14 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:14:21] Production.INFO: ==8882== Releasing lock... [2025-01-14 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:15:05 [end_date_ymd] => 2025-01-14 03:15:05 [RateCDR] => 1 ) [2025-01-14 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:15:05' and `end` < '2025-01-14 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:15:18] Production.INFO: count ==198 [2025-01-14 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:15:05 - End Time 2025-01-14 03:15:05 [2025-01-14 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243460', 'tblTempUsageDetail_20' ) start [2025-01-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243460', 'tblTempUsageDetail_20' ) end [2025-01-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243460', 'tblTempVendorCDR_20' ) start [2025-01-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243460', 'tblTempVendorCDR_20' ) end [2025-01-14 03:15:18] Production.INFO: ProcessCDR(1,14243460,1,1,2) [2025-01-14 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243460', 'tblTempUsageDetail_20' ) start [2025-01-14 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243460', 'tblTempUsageDetail_20' ) end [2025-01-14 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:15:22] Production.INFO: ==8997== Releasing lock... [2025-01-14 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:15:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:16:04 [end_date_ymd] => 2025-01-14 03:16:04 [RateCDR] => 1 ) [2025-01-14 03:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:16:04' and `end` < '2025-01-14 03:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:16:19] Production.INFO: count ==198 [2025-01-14 03:16:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:16:04 - End Time 2025-01-14 03:16:04 [2025-01-14 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243465', 'tblTempUsageDetail_20' ) start [2025-01-14 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243465', 'tblTempUsageDetail_20' ) end [2025-01-14 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243465', 'tblTempVendorCDR_20' ) start [2025-01-14 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243465', 'tblTempVendorCDR_20' ) end [2025-01-14 03:16:19] Production.INFO: ProcessCDR(1,14243465,1,1,2) [2025-01-14 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243465', 'tblTempUsageDetail_20' ) start [2025-01-14 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243465', 'tblTempUsageDetail_20' ) end [2025-01-14 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:16:22] Production.INFO: ==9072== Releasing lock... [2025-01-14 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:17:05 [end_date_ymd] => 2025-01-14 03:17:05 [RateCDR] => 1 ) [2025-01-14 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:17:05' and `end` < '2025-01-14 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:17:19] Production.INFO: count ==198 [2025-01-14 03:17:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:17:05 - End Time 2025-01-14 03:17:05 [2025-01-14 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243470', 'tblTempUsageDetail_20' ) start [2025-01-14 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243470', 'tblTempUsageDetail_20' ) end [2025-01-14 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243470', 'tblTempVendorCDR_20' ) start [2025-01-14 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243470', 'tblTempVendorCDR_20' ) end [2025-01-14 03:17:19] Production.INFO: ProcessCDR(1,14243470,1,1,2) [2025-01-14 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243470', 'tblTempUsageDetail_20' ) start [2025-01-14 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243470', 'tblTempUsageDetail_20' ) end [2025-01-14 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:17:22] Production.INFO: ==9224== Releasing lock... [2025-01-14 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:17:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:18:06 [end_date_ymd] => 2025-01-14 03:18:06 [RateCDR] => 1 ) [2025-01-14 03:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:18:06' and `end` < '2025-01-14 03:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:18:19] Production.INFO: count ==197 [2025-01-14 03:18:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:18:06 - End Time 2025-01-14 03:18:06 [2025-01-14 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243475', 'tblTempUsageDetail_20' ) start [2025-01-14 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243475', 'tblTempUsageDetail_20' ) end [2025-01-14 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243475', 'tblTempVendorCDR_20' ) start [2025-01-14 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243475', 'tblTempVendorCDR_20' ) end [2025-01-14 03:18:19] Production.INFO: ProcessCDR(1,14243475,1,1,2) [2025-01-14 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243475', 'tblTempUsageDetail_20' ) start [2025-01-14 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243475', 'tblTempUsageDetail_20' ) end [2025-01-14 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:18:22] Production.INFO: ==9293== Releasing lock... [2025-01-14 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:19:04 [end_date_ymd] => 2025-01-14 03:19:04 [RateCDR] => 1 ) [2025-01-14 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:19:04' and `end` < '2025-01-14 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:19:18] Production.INFO: count ==196 [2025-01-14 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:19:04 - End Time 2025-01-14 03:19:04 [2025-01-14 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243480', 'tblTempUsageDetail_20' ) start [2025-01-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243480', 'tblTempUsageDetail_20' ) end [2025-01-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243480', 'tblTempVendorCDR_20' ) start [2025-01-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243480', 'tblTempVendorCDR_20' ) end [2025-01-14 03:19:18] Production.INFO: ProcessCDR(1,14243480,1,1,2) [2025-01-14 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243480', 'tblTempUsageDetail_20' ) start [2025-01-14 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243480', 'tblTempUsageDetail_20' ) end [2025-01-14 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:19:21] Production.INFO: ==9362== Releasing lock... [2025-01-14 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:20:05 [end_date_ymd] => 2025-01-14 03:20:05 [RateCDR] => 1 ) [2025-01-14 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:20:05' and `end` < '2025-01-14 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:20:19] Production.INFO: count ==198 [2025-01-14 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:20:05 - End Time 2025-01-14 03:20:05 [2025-01-14 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243485', 'tblTempUsageDetail_20' ) start [2025-01-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243485', 'tblTempUsageDetail_20' ) end [2025-01-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243485', 'tblTempVendorCDR_20' ) start [2025-01-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243485', 'tblTempVendorCDR_20' ) end [2025-01-14 03:20:19] Production.INFO: ProcessCDR(1,14243485,1,1,2) [2025-01-14 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243485', 'tblTempUsageDetail_20' ) start [2025-01-14 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243485', 'tblTempUsageDetail_20' ) end [2025-01-14 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:20:22] Production.INFO: ==9435== Releasing lock... [2025-01-14 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:21:05 [end_date_ymd] => 2025-01-14 03:21:05 [RateCDR] => 1 ) [2025-01-14 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:21:05' and `end` < '2025-01-14 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:21:17] Production.INFO: count ==200 [2025-01-14 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-14 00:21:05 - End Time 2025-01-14 03:21:05 [2025-01-14 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243491', 'tblTempUsageDetail_20' ) start [2025-01-14 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243491', 'tblTempUsageDetail_20' ) end [2025-01-14 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243491', 'tblTempVendorCDR_20' ) start [2025-01-14 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243491', 'tblTempVendorCDR_20' ) end [2025-01-14 03:21:17] Production.INFO: ProcessCDR(1,14243491,1,1,2) [2025-01-14 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243491', 'tblTempUsageDetail_20' ) start [2025-01-14 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243491', 'tblTempUsageDetail_20' ) end [2025-01-14 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:21:21] Production.INFO: ==9507== Releasing lock... [2025-01-14 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:22:05 [end_date_ymd] => 2025-01-14 03:22:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:22:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:22:20] Production.INFO: count ==200 [2025-01-14 03:22:20] Production.ERROR: pbx CDR StartTime 2025-01-14 00:22:05 - End Time 2025-01-14 03:22:05 [2025-01-14 03:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243496', 'tblTempUsageDetail_20' ) start [2025-01-14 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243496', 'tblTempUsageDetail_20' ) end [2025-01-14 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243496', 'tblTempVendorCDR_20' ) start [2025-01-14 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243496', 'tblTempVendorCDR_20' ) end [2025-01-14 03:22:20] Production.INFO: ProcessCDR(1,14243496,1,1,2) [2025-01-14 03:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243496', 'tblTempUsageDetail_20' ) start [2025-01-14 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243496', 'tblTempUsageDetail_20' ) end [2025-01-14 03:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:22:23] Production.INFO: ==9578== Releasing lock... [2025-01-14 03:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:22:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:23:05 [end_date_ymd] => 2025-01-14 03:23:05 [RateCDR] => 1 ) [2025-01-14 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:23:05' and `end` < '2025-01-14 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:23:18] Production.INFO: count ==200 [2025-01-14 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:23:05 - End Time 2025-01-14 03:23:05 [2025-01-14 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243501', 'tblTempUsageDetail_20' ) start [2025-01-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243501', 'tblTempUsageDetail_20' ) end [2025-01-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243501', 'tblTempVendorCDR_20' ) start [2025-01-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243501', 'tblTempVendorCDR_20' ) end [2025-01-14 03:23:18] Production.INFO: ProcessCDR(1,14243501,1,1,2) [2025-01-14 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243501', 'tblTempUsageDetail_20' ) start [2025-01-14 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243501', 'tblTempUsageDetail_20' ) end [2025-01-14 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:23:21] Production.INFO: ==9647== Releasing lock... [2025-01-14 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:24:05 [end_date_ymd] => 2025-01-14 03:24:05 [RateCDR] => 1 ) [2025-01-14 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:24:05' and `end` < '2025-01-14 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:24:18] Production.INFO: count ==200 [2025-01-14 03:24:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:24:05 - End Time 2025-01-14 03:24:05 [2025-01-14 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243506', 'tblTempUsageDetail_20' ) start [2025-01-14 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243506', 'tblTempUsageDetail_20' ) end [2025-01-14 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243506', 'tblTempVendorCDR_20' ) start [2025-01-14 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243506', 'tblTempVendorCDR_20' ) end [2025-01-14 03:24:18] Production.INFO: ProcessCDR(1,14243506,1,1,2) [2025-01-14 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243506', 'tblTempUsageDetail_20' ) start [2025-01-14 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243506', 'tblTempUsageDetail_20' ) end [2025-01-14 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:24:21] Production.INFO: ==9718== Releasing lock... [2025-01-14 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:25:05 [end_date_ymd] => 2025-01-14 03:25:05 [RateCDR] => 1 ) [2025-01-14 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:25:05' and `end` < '2025-01-14 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:25:17] Production.INFO: count ==200 [2025-01-14 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:25:05 - End Time 2025-01-14 03:25:05 [2025-01-14 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243511', 'tblTempUsageDetail_20' ) start [2025-01-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243511', 'tblTempUsageDetail_20' ) end [2025-01-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243511', 'tblTempVendorCDR_20' ) start [2025-01-14 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243511', 'tblTempVendorCDR_20' ) end [2025-01-14 03:25:18] Production.INFO: ProcessCDR(1,14243511,1,1,2) [2025-01-14 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243511', 'tblTempUsageDetail_20' ) start [2025-01-14 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243511', 'tblTempUsageDetail_20' ) end [2025-01-14 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:25:21] Production.INFO: ==9789== Releasing lock... [2025-01-14 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:26:05 [end_date_ymd] => 2025-01-14 03:26:05 [RateCDR] => 1 ) [2025-01-14 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:26:05' and `end` < '2025-01-14 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:26:19] Production.INFO: count ==197 [2025-01-14 03:26:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:26:05 - End Time 2025-01-14 03:26:05 [2025-01-14 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243516', 'tblTempUsageDetail_20' ) start [2025-01-14 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243516', 'tblTempUsageDetail_20' ) end [2025-01-14 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243516', 'tblTempVendorCDR_20' ) start [2025-01-14 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243516', 'tblTempVendorCDR_20' ) end [2025-01-14 03:26:19] Production.INFO: ProcessCDR(1,14243516,1,1,2) [2025-01-14 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243516', 'tblTempUsageDetail_20' ) start [2025-01-14 03:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243516', 'tblTempUsageDetail_20' ) end [2025-01-14 03:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:26:23] Production.INFO: ==9865== Releasing lock... [2025-01-14 03:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:26:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:27:05 [end_date_ymd] => 2025-01-14 03:27:05 [RateCDR] => 1 ) [2025-01-14 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:27:05' and `end` < '2025-01-14 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:27:17] Production.INFO: count ==197 [2025-01-14 03:27:17] Production.ERROR: pbx CDR StartTime 2025-01-14 00:27:05 - End Time 2025-01-14 03:27:05 [2025-01-14 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243521', 'tblTempUsageDetail_20' ) start [2025-01-14 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243521', 'tblTempUsageDetail_20' ) end [2025-01-14 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243521', 'tblTempVendorCDR_20' ) start [2025-01-14 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243521', 'tblTempVendorCDR_20' ) end [2025-01-14 03:27:17] Production.INFO: ProcessCDR(1,14243521,1,1,2) [2025-01-14 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243521', 'tblTempUsageDetail_20' ) start [2025-01-14 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243521', 'tblTempUsageDetail_20' ) end [2025-01-14 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:27:20] Production.INFO: ==9940== Releasing lock... [2025-01-14 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:27:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:28:05 [end_date_ymd] => 2025-01-14 03:28:05 [RateCDR] => 1 ) [2025-01-14 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:28:05' and `end` < '2025-01-14 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:28:18] Production.INFO: count ==197 [2025-01-14 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:28:05 - End Time 2025-01-14 03:28:05 [2025-01-14 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243526', 'tblTempUsageDetail_20' ) start [2025-01-14 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243526', 'tblTempUsageDetail_20' ) end [2025-01-14 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243526', 'tblTempVendorCDR_20' ) start [2025-01-14 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243526', 'tblTempVendorCDR_20' ) end [2025-01-14 03:28:18] Production.INFO: ProcessCDR(1,14243526,1,1,2) [2025-01-14 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243526', 'tblTempUsageDetail_20' ) start [2025-01-14 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243526', 'tblTempUsageDetail_20' ) end [2025-01-14 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:28:22] Production.INFO: ==10011== Releasing lock... [2025-01-14 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:29:05 [end_date_ymd] => 2025-01-14 03:29:05 [RateCDR] => 1 ) [2025-01-14 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:29:05' and `end` < '2025-01-14 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:29:19] Production.INFO: count ==197 [2025-01-14 03:29:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:29:05 - End Time 2025-01-14 03:29:05 [2025-01-14 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243531', 'tblTempUsageDetail_20' ) start [2025-01-14 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243531', 'tblTempUsageDetail_20' ) end [2025-01-14 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243531', 'tblTempVendorCDR_20' ) start [2025-01-14 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243531', 'tblTempVendorCDR_20' ) end [2025-01-14 03:29:19] Production.INFO: ProcessCDR(1,14243531,1,1,2) [2025-01-14 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243531', 'tblTempUsageDetail_20' ) start [2025-01-14 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243531', 'tblTempUsageDetail_20' ) end [2025-01-14 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:29:22] Production.INFO: ==10082== Releasing lock... [2025-01-14 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:30:07 [end_date_ymd] => 2025-01-14 03:30:07 [RateCDR] => 1 ) [2025-01-14 03:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:30:07' and `end` < '2025-01-14 03:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:30:19] Production.INFO: count ==187 [2025-01-14 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:30:07 - End Time 2025-01-14 03:30:07 [2025-01-14 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243537', 'tblTempUsageDetail_20' ) start [2025-01-14 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243537', 'tblTempUsageDetail_20' ) end [2025-01-14 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243537', 'tblTempVendorCDR_20' ) start [2025-01-14 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243537', 'tblTempVendorCDR_20' ) end [2025-01-14 03:30:19] Production.INFO: ProcessCDR(1,14243537,1,1,2) [2025-01-14 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243537', 'tblTempUsageDetail_20' ) start [2025-01-14 03:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243537', 'tblTempUsageDetail_20' ) end [2025-01-14 03:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:30:24] Production.INFO: ==10155== Releasing lock... [2025-01-14 03:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:30:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:31:05 [end_date_ymd] => 2025-01-14 03:31:05 [RateCDR] => 1 ) [2025-01-14 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:31:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:31:18] Production.INFO: count ==178 [2025-01-14 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:31:05 - End Time 2025-01-14 03:31:05 [2025-01-14 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243542', 'tblTempUsageDetail_20' ) start [2025-01-14 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243542', 'tblTempUsageDetail_20' ) end [2025-01-14 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243542', 'tblTempVendorCDR_20' ) start [2025-01-14 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243542', 'tblTempVendorCDR_20' ) end [2025-01-14 03:31:18] Production.INFO: ProcessCDR(1,14243542,1,1,2) [2025-01-14 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243542', 'tblTempUsageDetail_20' ) start [2025-01-14 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243542', 'tblTempUsageDetail_20' ) end [2025-01-14 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:31:22] Production.INFO: ==10226== Releasing lock... [2025-01-14 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:32:05 [end_date_ymd] => 2025-01-14 03:32:05 [RateCDR] => 1 ) [2025-01-14 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:32:05' and `end` < '2025-01-14 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:32:17] Production.INFO: count ==178 [2025-01-14 03:32:17] Production.ERROR: pbx CDR StartTime 2025-01-14 00:32:05 - End Time 2025-01-14 03:32:05 [2025-01-14 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243547', 'tblTempUsageDetail_20' ) start [2025-01-14 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243547', 'tblTempUsageDetail_20' ) end [2025-01-14 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243547', 'tblTempVendorCDR_20' ) start [2025-01-14 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243547', 'tblTempVendorCDR_20' ) end [2025-01-14 03:32:17] Production.INFO: ProcessCDR(1,14243547,1,1,2) [2025-01-14 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243547', 'tblTempUsageDetail_20' ) start [2025-01-14 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243547', 'tblTempUsageDetail_20' ) end [2025-01-14 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:32:21] Production.INFO: ==10335== Releasing lock... [2025-01-14 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:33:05 [end_date_ymd] => 2025-01-14 03:33:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:33:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:33:18] Production.INFO: count ==178 [2025-01-14 03:33:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:33:05 - End Time 2025-01-14 03:33:05 [2025-01-14 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243552', 'tblTempUsageDetail_20' ) start [2025-01-14 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243552', 'tblTempUsageDetail_20' ) end [2025-01-14 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243552', 'tblTempVendorCDR_20' ) start [2025-01-14 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243552', 'tblTempVendorCDR_20' ) end [2025-01-14 03:33:18] Production.INFO: ProcessCDR(1,14243552,1,1,2) [2025-01-14 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243552', 'tblTempUsageDetail_20' ) start [2025-01-14 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243552', 'tblTempUsageDetail_20' ) end [2025-01-14 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:33:22] Production.INFO: ==10405== Releasing lock... [2025-01-14 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:34:05 [end_date_ymd] => 2025-01-14 03:34:05 [RateCDR] => 1 ) [2025-01-14 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:34:05' and `end` < '2025-01-14 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:34:18] Production.INFO: count ==178 [2025-01-14 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:34:05 - End Time 2025-01-14 03:34:05 [2025-01-14 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243557', 'tblTempUsageDetail_20' ) start [2025-01-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243557', 'tblTempUsageDetail_20' ) end [2025-01-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243557', 'tblTempVendorCDR_20' ) start [2025-01-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243557', 'tblTempVendorCDR_20' ) end [2025-01-14 03:34:18] Production.INFO: ProcessCDR(1,14243557,1,1,2) [2025-01-14 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243557', 'tblTempUsageDetail_20' ) start [2025-01-14 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243557', 'tblTempUsageDetail_20' ) end [2025-01-14 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:34:21] Production.INFO: ==10475== Releasing lock... [2025-01-14 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:35:06 [end_date_ymd] => 2025-01-14 03:35:06 [RateCDR] => 1 ) [2025-01-14 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:35:06' and `end` < '2025-01-14 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:35:19] Production.INFO: count ==178 [2025-01-14 03:35:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:35:06 - End Time 2025-01-14 03:35:06 [2025-01-14 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243562', 'tblTempUsageDetail_20' ) start [2025-01-14 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243562', 'tblTempUsageDetail_20' ) end [2025-01-14 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243562', 'tblTempVendorCDR_20' ) start [2025-01-14 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243562', 'tblTempVendorCDR_20' ) end [2025-01-14 03:35:19] Production.INFO: ProcessCDR(1,14243562,1,1,2) [2025-01-14 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243562', 'tblTempUsageDetail_20' ) start [2025-01-14 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243562', 'tblTempUsageDetail_20' ) end [2025-01-14 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:35:22] Production.INFO: ==10545== Releasing lock... [2025-01-14 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:35:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:36:05 [end_date_ymd] => 2025-01-14 03:36:05 [RateCDR] => 1 ) [2025-01-14 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:36:05' and `end` < '2025-01-14 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:36:18] Production.INFO: count ==175 [2025-01-14 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:36:05 - End Time 2025-01-14 03:36:05 [2025-01-14 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243567', 'tblTempUsageDetail_20' ) start [2025-01-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243567', 'tblTempUsageDetail_20' ) end [2025-01-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243567', 'tblTempVendorCDR_20' ) start [2025-01-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243567', 'tblTempVendorCDR_20' ) end [2025-01-14 03:36:18] Production.INFO: ProcessCDR(1,14243567,1,1,2) [2025-01-14 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243567', 'tblTempUsageDetail_20' ) start [2025-01-14 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243567', 'tblTempUsageDetail_20' ) end [2025-01-14 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:36:21] Production.INFO: ==10614== Releasing lock... [2025-01-14 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:37:05 [end_date_ymd] => 2025-01-14 03:37:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:37:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:37:19] Production.INFO: count ==175 [2025-01-14 03:37:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:37:05 - End Time 2025-01-14 03:37:05 [2025-01-14 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243572', 'tblTempUsageDetail_20' ) start [2025-01-14 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243572', 'tblTempUsageDetail_20' ) end [2025-01-14 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243572', 'tblTempVendorCDR_20' ) start [2025-01-14 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243572', 'tblTempVendorCDR_20' ) end [2025-01-14 03:37:19] Production.INFO: ProcessCDR(1,14243572,1,1,2) [2025-01-14 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243572', 'tblTempUsageDetail_20' ) start [2025-01-14 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243572', 'tblTempUsageDetail_20' ) end [2025-01-14 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:37:23] Production.INFO: ==10688== Releasing lock... [2025-01-14 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:37:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:38:05 [end_date_ymd] => 2025-01-14 03:38:05 [RateCDR] => 1 ) [2025-01-14 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:38:05' and `end` < '2025-01-14 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:38:18] Production.INFO: count ==175 [2025-01-14 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:38:05 - End Time 2025-01-14 03:38:05 [2025-01-14 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243577', 'tblTempUsageDetail_20' ) start [2025-01-14 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243577', 'tblTempUsageDetail_20' ) end [2025-01-14 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243577', 'tblTempVendorCDR_20' ) start [2025-01-14 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243577', 'tblTempVendorCDR_20' ) end [2025-01-14 03:38:18] Production.INFO: ProcessCDR(1,14243577,1,1,2) [2025-01-14 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243577', 'tblTempUsageDetail_20' ) start [2025-01-14 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243577', 'tblTempUsageDetail_20' ) end [2025-01-14 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:38:21] Production.INFO: ==10759== Releasing lock... [2025-01-14 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:39:05 [end_date_ymd] => 2025-01-14 03:39:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:39:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:39:19] Production.INFO: count ==175 [2025-01-14 03:39:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:39:05 - End Time 2025-01-14 03:39:05 [2025-01-14 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243582', 'tblTempUsageDetail_20' ) start [2025-01-14 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243582', 'tblTempUsageDetail_20' ) end [2025-01-14 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243582', 'tblTempVendorCDR_20' ) start [2025-01-14 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243582', 'tblTempVendorCDR_20' ) end [2025-01-14 03:39:19] Production.INFO: ProcessCDR(1,14243582,1,1,2) [2025-01-14 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243582', 'tblTempUsageDetail_20' ) start [2025-01-14 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243582', 'tblTempUsageDetail_20' ) end [2025-01-14 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:39:22] Production.INFO: ==10833== Releasing lock... [2025-01-14 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:40:06 [end_date_ymd] => 2025-01-14 03:40:06 [RateCDR] => 1 ) [2025-01-14 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:40:06' and `end` < '2025-01-14 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:40:20] Production.INFO: count ==168 [2025-01-14 03:40:20] Production.ERROR: pbx CDR StartTime 2025-01-14 00:40:06 - End Time 2025-01-14 03:40:06 [2025-01-14 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243588', 'tblTempUsageDetail_20' ) start [2025-01-14 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243588', 'tblTempUsageDetail_20' ) end [2025-01-14 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243588', 'tblTempVendorCDR_20' ) start [2025-01-14 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243588', 'tblTempVendorCDR_20' ) end [2025-01-14 03:40:20] Production.INFO: ProcessCDR(1,14243588,1,1,2) [2025-01-14 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243588', 'tblTempUsageDetail_20' ) start [2025-01-14 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243588', 'tblTempUsageDetail_20' ) end [2025-01-14 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:40:23] Production.INFO: ==10911== Releasing lock... [2025-01-14 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:41:05 [end_date_ymd] => 2025-01-14 03:41:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:41:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:41:17] Production.INFO: count ==157 [2025-01-14 03:41:17] Production.ERROR: pbx CDR StartTime 2025-01-14 00:41:05 - End Time 2025-01-14 03:41:05 [2025-01-14 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243593', 'tblTempUsageDetail_20' ) start [2025-01-14 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243593', 'tblTempUsageDetail_20' ) end [2025-01-14 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243593', 'tblTempVendorCDR_20' ) start [2025-01-14 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243593', 'tblTempVendorCDR_20' ) end [2025-01-14 03:41:17] Production.INFO: ProcessCDR(1,14243593,1,1,2) [2025-01-14 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243593', 'tblTempUsageDetail_20' ) start [2025-01-14 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243593', 'tblTempUsageDetail_20' ) end [2025-01-14 03:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:41:21] Production.INFO: ==10985== Releasing lock... [2025-01-14 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:42:05 [end_date_ymd] => 2025-01-14 03:42:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:42:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:42:19] Production.INFO: count ==157 [2025-01-14 03:42:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:42:05 - End Time 2025-01-14 03:42:05 [2025-01-14 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243598', 'tblTempUsageDetail_20' ) start [2025-01-14 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243598', 'tblTempUsageDetail_20' ) end [2025-01-14 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243598', 'tblTempVendorCDR_20' ) start [2025-01-14 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243598', 'tblTempVendorCDR_20' ) end [2025-01-14 03:42:19] Production.INFO: ProcessCDR(1,14243598,1,1,2) [2025-01-14 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243598', 'tblTempUsageDetail_20' ) start [2025-01-14 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243598', 'tblTempUsageDetail_20' ) end [2025-01-14 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:42:22] Production.INFO: ==11060== Releasing lock... [2025-01-14 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:43:05 [end_date_ymd] => 2025-01-14 03:43:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:43:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:43:18] Production.INFO: count ==157 [2025-01-14 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:43:05 - End Time 2025-01-14 03:43:05 [2025-01-14 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243603', 'tblTempUsageDetail_20' ) start [2025-01-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243603', 'tblTempUsageDetail_20' ) end [2025-01-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243603', 'tblTempVendorCDR_20' ) start [2025-01-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243603', 'tblTempVendorCDR_20' ) end [2025-01-14 03:43:18] Production.INFO: ProcessCDR(1,14243603,1,1,2) [2025-01-14 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243603', 'tblTempUsageDetail_20' ) start [2025-01-14 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243603', 'tblTempUsageDetail_20' ) end [2025-01-14 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:43:21] Production.INFO: ==11142== Releasing lock... [2025-01-14 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:44:05 [end_date_ymd] => 2025-01-14 03:44:05 [RateCDR] => 1 ) [2025-01-14 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:44:05' and `end` < '2025-01-14 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:44:19] Production.INFO: count ==157 [2025-01-14 03:44:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:44:05 - End Time 2025-01-14 03:44:05 [2025-01-14 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243608', 'tblTempUsageDetail_20' ) start [2025-01-14 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243608', 'tblTempUsageDetail_20' ) end [2025-01-14 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243608', 'tblTempVendorCDR_20' ) start [2025-01-14 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243608', 'tblTempVendorCDR_20' ) end [2025-01-14 03:44:19] Production.INFO: ProcessCDR(1,14243608,1,1,2) [2025-01-14 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243608', 'tblTempUsageDetail_20' ) start [2025-01-14 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243608', 'tblTempUsageDetail_20' ) end [2025-01-14 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:44:22] Production.INFO: ==11222== Releasing lock... [2025-01-14 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:45:05 [end_date_ymd] => 2025-01-14 03:45:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:45:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:45:17] Production.INFO: count ==157 [2025-01-14 03:45:17] Production.ERROR: pbx CDR StartTime 2025-01-14 00:45:05 - End Time 2025-01-14 03:45:05 [2025-01-14 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243613', 'tblTempUsageDetail_20' ) start [2025-01-14 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243613', 'tblTempUsageDetail_20' ) end [2025-01-14 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243613', 'tblTempVendorCDR_20' ) start [2025-01-14 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243613', 'tblTempVendorCDR_20' ) end [2025-01-14 03:45:17] Production.INFO: ProcessCDR(1,14243613,1,1,2) [2025-01-14 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243613', 'tblTempUsageDetail_20' ) start [2025-01-14 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243613', 'tblTempUsageDetail_20' ) end [2025-01-14 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:45:21] Production.INFO: ==11302== Releasing lock... [2025-01-14 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:46:05 [end_date_ymd] => 2025-01-14 03:46:05 [RateCDR] => 1 ) [2025-01-14 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:46:05' and `end` < '2025-01-14 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:46:18] Production.INFO: count ==157 [2025-01-14 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:46:05 - End Time 2025-01-14 03:46:05 [2025-01-14 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243618', 'tblTempUsageDetail_20' ) start [2025-01-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243618', 'tblTempUsageDetail_20' ) end [2025-01-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243618', 'tblTempVendorCDR_20' ) start [2025-01-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243618', 'tblTempVendorCDR_20' ) end [2025-01-14 03:46:18] Production.INFO: ProcessCDR(1,14243618,1,1,2) [2025-01-14 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243618', 'tblTempUsageDetail_20' ) start [2025-01-14 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243618', 'tblTempUsageDetail_20' ) end [2025-01-14 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:46:22] Production.INFO: ==11387== Releasing lock... [2025-01-14 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:46:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:47:06 [end_date_ymd] => 2025-01-14 03:47:06 [RateCDR] => 1 ) [2025-01-14 03:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:47:06' and `end` < '2025-01-14 03:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:47:18] Production.INFO: count ==157 [2025-01-14 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:47:06 - End Time 2025-01-14 03:47:06 [2025-01-14 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243623', 'tblTempUsageDetail_20' ) start [2025-01-14 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243623', 'tblTempUsageDetail_20' ) end [2025-01-14 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243623', 'tblTempVendorCDR_20' ) start [2025-01-14 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243623', 'tblTempVendorCDR_20' ) end [2025-01-14 03:47:18] Production.INFO: ProcessCDR(1,14243623,1,1,2) [2025-01-14 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243623', 'tblTempUsageDetail_20' ) start [2025-01-14 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243623', 'tblTempUsageDetail_20' ) end [2025-01-14 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:47:22] Production.INFO: ==11510== Releasing lock... [2025-01-14 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:48:06 [end_date_ymd] => 2025-01-14 03:48:06 [RateCDR] => 1 ) [2025-01-14 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:48:06' and `end` < '2025-01-14 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:48:18] Production.INFO: count ==157 [2025-01-14 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:48:06 - End Time 2025-01-14 03:48:06 [2025-01-14 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243628', 'tblTempUsageDetail_20' ) start [2025-01-14 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243628', 'tblTempUsageDetail_20' ) end [2025-01-14 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243628', 'tblTempVendorCDR_20' ) start [2025-01-14 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243628', 'tblTempVendorCDR_20' ) end [2025-01-14 03:48:18] Production.INFO: ProcessCDR(1,14243628,1,1,2) [2025-01-14 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243628', 'tblTempUsageDetail_20' ) start [2025-01-14 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243628', 'tblTempUsageDetail_20' ) end [2025-01-14 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:48:22] Production.INFO: ==11631== Releasing lock... [2025-01-14 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:49:06 [end_date_ymd] => 2025-01-14 03:49:06 [RateCDR] => 1 ) [2025-01-14 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:49:06' and `end` < '2025-01-14 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:49:19] Production.INFO: count ==157 [2025-01-14 03:49:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:49:06 - End Time 2025-01-14 03:49:06 [2025-01-14 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243633', 'tblTempUsageDetail_20' ) start [2025-01-14 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243633', 'tblTempUsageDetail_20' ) end [2025-01-14 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243633', 'tblTempVendorCDR_20' ) start [2025-01-14 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243633', 'tblTempVendorCDR_20' ) end [2025-01-14 03:49:19] Production.INFO: ProcessCDR(1,14243633,1,1,2) [2025-01-14 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243633', 'tblTempUsageDetail_20' ) start [2025-01-14 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243633', 'tblTempUsageDetail_20' ) end [2025-01-14 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:49:23] Production.INFO: ==11716== Releasing lock... [2025-01-14 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:49:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:50:06 [end_date_ymd] => 2025-01-14 03:50:06 [RateCDR] => 1 ) [2025-01-14 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:50:06' and `end` < '2025-01-14 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:50:19] Production.INFO: count ==151 [2025-01-14 03:50:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:50:06 - End Time 2025-01-14 03:50:06 [2025-01-14 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243639', 'tblTempUsageDetail_20' ) start [2025-01-14 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243639', 'tblTempUsageDetail_20' ) end [2025-01-14 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243639', 'tblTempVendorCDR_20' ) start [2025-01-14 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243639', 'tblTempVendorCDR_20' ) end [2025-01-14 03:50:19] Production.INFO: ProcessCDR(1,14243639,1,1,2) [2025-01-14 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243639', 'tblTempUsageDetail_20' ) start [2025-01-14 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243639', 'tblTempUsageDetail_20' ) end [2025-01-14 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:50:23] Production.INFO: ==11799== Releasing lock... [2025-01-14 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:51:06 [end_date_ymd] => 2025-01-14 03:51:06 [RateCDR] => 1 ) [2025-01-14 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:51:06' and `end` < '2025-01-14 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:51:18] Production.INFO: count ==151 [2025-01-14 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:51:06 - End Time 2025-01-14 03:51:06 [2025-01-14 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243644', 'tblTempUsageDetail_20' ) start [2025-01-14 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243644', 'tblTempUsageDetail_20' ) end [2025-01-14 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243644', 'tblTempVendorCDR_20' ) start [2025-01-14 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243644', 'tblTempVendorCDR_20' ) end [2025-01-14 03:51:18] Production.INFO: ProcessCDR(1,14243644,1,1,2) [2025-01-14 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243644', 'tblTempUsageDetail_20' ) start [2025-01-14 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243644', 'tblTempUsageDetail_20' ) end [2025-01-14 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:51:21] Production.INFO: ==11885== Releasing lock... [2025-01-14 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:52:05 [end_date_ymd] => 2025-01-14 03:52:05 [RateCDR] => 1 ) [2025-01-14 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:52:05' and `end` < '2025-01-14 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:52:18] Production.INFO: count ==151 [2025-01-14 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:52:05 - End Time 2025-01-14 03:52:05 [2025-01-14 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243649', 'tblTempUsageDetail_20' ) start [2025-01-14 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243649', 'tblTempUsageDetail_20' ) end [2025-01-14 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243649', 'tblTempVendorCDR_20' ) start [2025-01-14 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243649', 'tblTempVendorCDR_20' ) end [2025-01-14 03:52:18] Production.INFO: ProcessCDR(1,14243649,1,1,2) [2025-01-14 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243649', 'tblTempUsageDetail_20' ) start [2025-01-14 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243649', 'tblTempUsageDetail_20' ) end [2025-01-14 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:52:22] Production.INFO: ==11965== Releasing lock... [2025-01-14 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:53:06 [end_date_ymd] => 2025-01-14 03:53:06 [RateCDR] => 1 ) [2025-01-14 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:53:06' and `end` < '2025-01-14 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:53:18] Production.INFO: count ==151 [2025-01-14 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:53:06 - End Time 2025-01-14 03:53:06 [2025-01-14 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243654', 'tblTempUsageDetail_20' ) start [2025-01-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243654', 'tblTempUsageDetail_20' ) end [2025-01-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243654', 'tblTempVendorCDR_20' ) start [2025-01-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243654', 'tblTempVendorCDR_20' ) end [2025-01-14 03:53:18] Production.INFO: ProcessCDR(1,14243654,1,1,2) [2025-01-14 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243654', 'tblTempUsageDetail_20' ) start [2025-01-14 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243654', 'tblTempUsageDetail_20' ) end [2025-01-14 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:53:21] Production.INFO: ==12049== Releasing lock... [2025-01-14 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:54:05 [end_date_ymd] => 2025-01-14 03:54:05 [RateCDR] => 1 ) [2025-01-14 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:54:05' and `end` < '2025-01-14 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:54:19] Production.INFO: count ==151 [2025-01-14 03:54:19] Production.ERROR: pbx CDR StartTime 2025-01-14 00:54:05 - End Time 2025-01-14 03:54:05 [2025-01-14 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243659', 'tblTempUsageDetail_20' ) start [2025-01-14 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243659', 'tblTempUsageDetail_20' ) end [2025-01-14 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243659', 'tblTempVendorCDR_20' ) start [2025-01-14 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243659', 'tblTempVendorCDR_20' ) end [2025-01-14 03:54:19] Production.INFO: ProcessCDR(1,14243659,1,1,2) [2025-01-14 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243659', 'tblTempUsageDetail_20' ) start [2025-01-14 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243659', 'tblTempUsageDetail_20' ) end [2025-01-14 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:54:22] Production.INFO: ==12137== Releasing lock... [2025-01-14 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:55:06 [end_date_ymd] => 2025-01-14 03:55:06 [RateCDR] => 1 ) [2025-01-14 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:55:06' and `end` < '2025-01-14 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:55:18] Production.INFO: count ==151 [2025-01-14 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:55:06 - End Time 2025-01-14 03:55:06 [2025-01-14 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243664', 'tblTempUsageDetail_20' ) start [2025-01-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243664', 'tblTempUsageDetail_20' ) end [2025-01-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243664', 'tblTempVendorCDR_20' ) start [2025-01-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243664', 'tblTempVendorCDR_20' ) end [2025-01-14 03:55:18] Production.INFO: ProcessCDR(1,14243664,1,1,2) [2025-01-14 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243664', 'tblTempUsageDetail_20' ) start [2025-01-14 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243664', 'tblTempUsageDetail_20' ) end [2025-01-14 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:55:22] Production.INFO: ==12230== Releasing lock... [2025-01-14 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:56:05 [end_date_ymd] => 2025-01-14 03:56:05 [RateCDR] => 1 ) [2025-01-14 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:56:05' and `end` < '2025-01-14 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:56:18] Production.INFO: count ==151 [2025-01-14 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:56:05 - End Time 2025-01-14 03:56:05 [2025-01-14 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243669', 'tblTempUsageDetail_20' ) start [2025-01-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243669', 'tblTempUsageDetail_20' ) end [2025-01-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243669', 'tblTempVendorCDR_20' ) start [2025-01-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243669', 'tblTempVendorCDR_20' ) end [2025-01-14 03:56:18] Production.INFO: ProcessCDR(1,14243669,1,1,2) [2025-01-14 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243669', 'tblTempUsageDetail_20' ) start [2025-01-14 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243669', 'tblTempUsageDetail_20' ) end [2025-01-14 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:56:22] Production.INFO: ==12310== Releasing lock... [2025-01-14 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:57:06 [end_date_ymd] => 2025-01-14 03:57:06 [RateCDR] => 1 ) [2025-01-14 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:57:06' and `end` < '2025-01-14 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:57:18] Production.INFO: count ==151 [2025-01-14 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:57:06 - End Time 2025-01-14 03:57:06 [2025-01-14 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243674', 'tblTempUsageDetail_20' ) start [2025-01-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243674', 'tblTempUsageDetail_20' ) end [2025-01-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243674', 'tblTempVendorCDR_20' ) start [2025-01-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243674', 'tblTempVendorCDR_20' ) end [2025-01-14 03:57:18] Production.INFO: ProcessCDR(1,14243674,1,1,2) [2025-01-14 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243674', 'tblTempUsageDetail_20' ) start [2025-01-14 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243674', 'tblTempUsageDetail_20' ) end [2025-01-14 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:57:22] Production.INFO: ==12395== Releasing lock... [2025-01-14 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:57:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:58:05 [end_date_ymd] => 2025-01-14 03:58:05 [RateCDR] => 1 ) [2025-01-14 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 00:58:05' and `end` < '2025-01-14 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 03:58:18] Production.INFO: count ==147 [2025-01-14 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-14 00:58:05 - End Time 2025-01-14 03:58:05 [2025-01-14 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243679', 'tblTempUsageDetail_20' ) start [2025-01-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243679', 'tblTempUsageDetail_20' ) end [2025-01-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243679', 'tblTempVendorCDR_20' ) start [2025-01-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243679', 'tblTempVendorCDR_20' ) end [2025-01-14 03:58:18] Production.INFO: ProcessCDR(1,14243679,1,1,2) [2025-01-14 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243679', 'tblTempUsageDetail_20' ) start [2025-01-14 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243679', 'tblTempUsageDetail_20' ) end [2025-01-14 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:58:21] Production.INFO: ==12472== Releasing lock... [2025-01-14 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 00:59:05 [end_date_ymd] => 2025-01-14 03:59:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 00:59:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 03:59:17] Production.INFO: count ==147 [2025-01-14 03:59:17] Production.ERROR: pbx CDR StartTime 2025-01-14 00:59:05 - End Time 2025-01-14 03:59:05 [2025-01-14 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243684', 'tblTempUsageDetail_20' ) start [2025-01-14 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243684', 'tblTempUsageDetail_20' ) end [2025-01-14 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243684', 'tblTempVendorCDR_20' ) start [2025-01-14 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243684', 'tblTempVendorCDR_20' ) end [2025-01-14 03:59:18] Production.INFO: ProcessCDR(1,14243684,1,1,2) [2025-01-14 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243684', 'tblTempUsageDetail_20' ) start [2025-01-14 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243684', 'tblTempUsageDetail_20' ) end [2025-01-14 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 03:59:21] Production.INFO: ==12550== Releasing lock... [2025-01-14 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 03:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:00:06 [end_date_ymd] => 2025-01-14 04:00:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:00:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:00:18] Production.INFO: count ==149 [2025-01-14 04:00:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:00:06 - End Time 2025-01-14 04:00:06 [2025-01-14 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243690', 'tblTempUsageDetail_20' ) start [2025-01-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243690', 'tblTempUsageDetail_20' ) end [2025-01-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243690', 'tblTempVendorCDR_20' ) start [2025-01-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243690', 'tblTempVendorCDR_20' ) end [2025-01-14 04:00:19] Production.INFO: ProcessCDR(1,14243690,1,1,2) [2025-01-14 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243690', 'tblTempUsageDetail_20' ) start [2025-01-14 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243690', 'tblTempUsageDetail_20' ) end [2025-01-14 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:00:22] Production.INFO: ==12630== Releasing lock... [2025-01-14 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:01:04 [end_date_ymd] => 2025-01-14 04:01:04 [RateCDR] => 1 ) [2025-01-14 04:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:01:04' and `end` < '2025-01-14 04:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:01:18] Production.INFO: count ==149 [2025-01-14 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:01:04 - End Time 2025-01-14 04:01:04 [2025-01-14 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243696', 'tblTempUsageDetail_20' ) start [2025-01-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243696', 'tblTempUsageDetail_20' ) end [2025-01-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243696', 'tblTempVendorCDR_20' ) start [2025-01-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243696', 'tblTempVendorCDR_20' ) end [2025-01-14 04:01:18] Production.INFO: ProcessCDR(1,14243696,1,1,2) [2025-01-14 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243696', 'tblTempUsageDetail_20' ) start [2025-01-14 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243696', 'tblTempUsageDetail_20' ) end [2025-01-14 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:01:21] Production.INFO: ==12716== Releasing lock... [2025-01-14 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:02:05 [end_date_ymd] => 2025-01-14 04:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:02:17] Production.INFO: count ==149 [2025-01-14 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:02:05 - End Time 2025-01-14 04:02:05 [2025-01-14 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243701', 'tblTempUsageDetail_20' ) start [2025-01-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243701', 'tblTempUsageDetail_20' ) end [2025-01-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243701', 'tblTempVendorCDR_20' ) start [2025-01-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243701', 'tblTempVendorCDR_20' ) end [2025-01-14 04:02:18] Production.INFO: ProcessCDR(1,14243701,1,1,2) [2025-01-14 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243701', 'tblTempUsageDetail_20' ) start [2025-01-14 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243701', 'tblTempUsageDetail_20' ) end [2025-01-14 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:02:21] Production.INFO: ==12795== Releasing lock... [2025-01-14 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:03:05 [end_date_ymd] => 2025-01-14 04:03:05 [RateCDR] => 1 ) [2025-01-14 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:03:05' and `end` < '2025-01-14 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:03:18] Production.INFO: count ==148 [2025-01-14 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:03:05 - End Time 2025-01-14 04:03:05 [2025-01-14 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243706', 'tblTempUsageDetail_20' ) start [2025-01-14 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243706', 'tblTempUsageDetail_20' ) end [2025-01-14 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243706', 'tblTempVendorCDR_20' ) start [2025-01-14 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243706', 'tblTempVendorCDR_20' ) end [2025-01-14 04:03:18] Production.INFO: ProcessCDR(1,14243706,1,1,2) [2025-01-14 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243706', 'tblTempUsageDetail_20' ) start [2025-01-14 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243706', 'tblTempUsageDetail_20' ) end [2025-01-14 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:03:21] Production.INFO: ==12906== Releasing lock... [2025-01-14 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:04:05 [end_date_ymd] => 2025-01-14 04:04:05 [RateCDR] => 1 ) [2025-01-14 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:04:05' and `end` < '2025-01-14 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:04:18] Production.INFO: count ==148 [2025-01-14 04:04:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:04:05 - End Time 2025-01-14 04:04:05 [2025-01-14 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243711', 'tblTempUsageDetail_20' ) start [2025-01-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243711', 'tblTempUsageDetail_20' ) end [2025-01-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243711', 'tblTempVendorCDR_20' ) start [2025-01-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243711', 'tblTempVendorCDR_20' ) end [2025-01-14 04:04:18] Production.INFO: ProcessCDR(1,14243711,1,1,2) [2025-01-14 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243711', 'tblTempUsageDetail_20' ) start [2025-01-14 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243711', 'tblTempUsageDetail_20' ) end [2025-01-14 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:04:22] Production.INFO: ==12980== Releasing lock... [2025-01-14 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:05:04 [end_date_ymd] => 2025-01-14 04:05:04 [RateCDR] => 1 ) [2025-01-14 04:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:05:04' and `end` < '2025-01-14 04:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:05:17] Production.INFO: count ==148 [2025-01-14 04:05:17] Production.ERROR: pbx CDR StartTime 2025-01-14 01:05:04 - End Time 2025-01-14 04:05:04 [2025-01-14 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243712', 'tblTempUsageDetail_20' ) start [2025-01-14 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243712', 'tblTempUsageDetail_20' ) end [2025-01-14 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243712', 'tblTempVendorCDR_20' ) start [2025-01-14 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243712', 'tblTempVendorCDR_20' ) end [2025-01-14 04:05:17] Production.INFO: ProcessCDR(1,14243712,1,1,2) [2025-01-14 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243712', 'tblTempUsageDetail_20' ) start [2025-01-14 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243712', 'tblTempUsageDetail_20' ) end [2025-01-14 04:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:05:20] Production.INFO: ==13058== Releasing lock... [2025-01-14 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:05:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:06:05 [end_date_ymd] => 2025-01-14 04:06:05 [RateCDR] => 1 ) [2025-01-14 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:06:05' and `end` < '2025-01-14 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:06:17] Production.INFO: count ==148 [2025-01-14 04:06:17] Production.ERROR: pbx CDR StartTime 2025-01-14 01:06:05 - End Time 2025-01-14 04:06:05 [2025-01-14 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243721', 'tblTempUsageDetail_20' ) start [2025-01-14 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243721', 'tblTempUsageDetail_20' ) end [2025-01-14 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243721', 'tblTempVendorCDR_20' ) start [2025-01-14 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243721', 'tblTempVendorCDR_20' ) end [2025-01-14 04:06:17] Production.INFO: ProcessCDR(1,14243721,1,1,2) [2025-01-14 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243721', 'tblTempUsageDetail_20' ) start [2025-01-14 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243721', 'tblTempUsageDetail_20' ) end [2025-01-14 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:06:21] Production.INFO: ==13132== Releasing lock... [2025-01-14 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:07:05 [end_date_ymd] => 2025-01-14 04:07:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:07:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:07:18] Production.INFO: count ==147 [2025-01-14 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:07:05 - End Time 2025-01-14 04:07:05 [2025-01-14 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243726', 'tblTempUsageDetail_20' ) start [2025-01-14 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243726', 'tblTempUsageDetail_20' ) end [2025-01-14 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243726', 'tblTempVendorCDR_20' ) start [2025-01-14 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243726', 'tblTempVendorCDR_20' ) end [2025-01-14 04:07:18] Production.INFO: ProcessCDR(1,14243726,1,1,2) [2025-01-14 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243726', 'tblTempUsageDetail_20' ) start [2025-01-14 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243726', 'tblTempUsageDetail_20' ) end [2025-01-14 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:07:21] Production.INFO: ==13217== Releasing lock... [2025-01-14 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:08:05 [end_date_ymd] => 2025-01-14 04:08:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:08:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:08:18] Production.INFO: count ==147 [2025-01-14 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:08:05 - End Time 2025-01-14 04:08:05 [2025-01-14 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243731', 'tblTempUsageDetail_20' ) start [2025-01-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243731', 'tblTempUsageDetail_20' ) end [2025-01-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243731', 'tblTempVendorCDR_20' ) start [2025-01-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243731', 'tblTempVendorCDR_20' ) end [2025-01-14 04:08:18] Production.INFO: ProcessCDR(1,14243731,1,1,2) [2025-01-14 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243731', 'tblTempUsageDetail_20' ) start [2025-01-14 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243731', 'tblTempUsageDetail_20' ) end [2025-01-14 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:08:21] Production.INFO: ==13293== Releasing lock... [2025-01-14 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:09:05 [end_date_ymd] => 2025-01-14 04:09:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:09:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:09:19] Production.INFO: count ==147 [2025-01-14 04:09:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:09:05 - End Time 2025-01-14 04:09:05 [2025-01-14 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243736', 'tblTempUsageDetail_20' ) start [2025-01-14 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243736', 'tblTempUsageDetail_20' ) end [2025-01-14 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243736', 'tblTempVendorCDR_20' ) start [2025-01-14 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243736', 'tblTempVendorCDR_20' ) end [2025-01-14 04:09:19] Production.INFO: ProcessCDR(1,14243736,1,1,2) [2025-01-14 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243736', 'tblTempUsageDetail_20' ) start [2025-01-14 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243736', 'tblTempUsageDetail_20' ) end [2025-01-14 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:09:22] Production.INFO: ==13367== Releasing lock... [2025-01-14 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:09:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:10:05 [end_date_ymd] => 2025-01-14 04:10:05 [RateCDR] => 1 ) [2025-01-14 04:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:10:05' and `end` < '2025-01-14 04:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:10:18] Production.INFO: count ==143 [2025-01-14 04:10:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:10:05 - End Time 2025-01-14 04:10:05 [2025-01-14 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243742', 'tblTempUsageDetail_20' ) start [2025-01-14 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243742', 'tblTempUsageDetail_20' ) end [2025-01-14 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243742', 'tblTempVendorCDR_20' ) start [2025-01-14 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243742', 'tblTempVendorCDR_20' ) end [2025-01-14 04:10:18] Production.INFO: ProcessCDR(1,14243742,1,1,2) [2025-01-14 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243742', 'tblTempUsageDetail_20' ) start [2025-01-14 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243742', 'tblTempUsageDetail_20' ) end [2025-01-14 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:10:21] Production.INFO: ==13442== Releasing lock... [2025-01-14 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:11:06 [end_date_ymd] => 2025-01-14 04:11:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:11:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:11:18] Production.INFO: count ==141 [2025-01-14 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:11:06 - End Time 2025-01-14 04:11:06 [2025-01-14 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243747', 'tblTempUsageDetail_20' ) start [2025-01-14 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243747', 'tblTempUsageDetail_20' ) end [2025-01-14 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243747', 'tblTempVendorCDR_20' ) start [2025-01-14 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243747', 'tblTempVendorCDR_20' ) end [2025-01-14 04:11:18] Production.INFO: ProcessCDR(1,14243747,1,1,2) [2025-01-14 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243747', 'tblTempUsageDetail_20' ) start [2025-01-14 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243747', 'tblTempUsageDetail_20' ) end [2025-01-14 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:11:22] Production.INFO: ==13521== Releasing lock... [2025-01-14 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:11:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:12:05 [end_date_ymd] => 2025-01-14 04:12:05 [RateCDR] => 1 ) [2025-01-14 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:12:05' and `end` < '2025-01-14 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:12:18] Production.INFO: count ==141 [2025-01-14 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:12:05 - End Time 2025-01-14 04:12:05 [2025-01-14 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243752', 'tblTempUsageDetail_20' ) start [2025-01-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243752', 'tblTempUsageDetail_20' ) end [2025-01-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243752', 'tblTempVendorCDR_20' ) start [2025-01-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243752', 'tblTempVendorCDR_20' ) end [2025-01-14 04:12:18] Production.INFO: ProcessCDR(1,14243752,1,1,2) [2025-01-14 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243752', 'tblTempUsageDetail_20' ) start [2025-01-14 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243752', 'tblTempUsageDetail_20' ) end [2025-01-14 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:12:21] Production.INFO: ==13595== Releasing lock... [2025-01-14 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:13:06 [end_date_ymd] => 2025-01-14 04:13:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:13:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:13:19] Production.INFO: count ==141 [2025-01-14 04:13:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:13:06 - End Time 2025-01-14 04:13:06 [2025-01-14 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243757', 'tblTempUsageDetail_20' ) start [2025-01-14 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243757', 'tblTempUsageDetail_20' ) end [2025-01-14 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243757', 'tblTempVendorCDR_20' ) start [2025-01-14 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243757', 'tblTempVendorCDR_20' ) end [2025-01-14 04:13:19] Production.INFO: ProcessCDR(1,14243757,1,1,2) [2025-01-14 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243757', 'tblTempUsageDetail_20' ) start [2025-01-14 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243757', 'tblTempUsageDetail_20' ) end [2025-01-14 04:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:13:23] Production.INFO: ==13665== Releasing lock... [2025-01-14 04:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:13:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:14:04 [end_date_ymd] => 2025-01-14 04:14:04 [RateCDR] => 1 ) [2025-01-14 04: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` >= '2025-01-14 01:14:04' and `end` < '2025-01-14 04: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 ,'') [2025-01-14 04:14:17] Production.INFO: count ==140 [2025-01-14 04:14:17] Production.ERROR: pbx CDR StartTime 2025-01-14 01:14:04 - End Time 2025-01-14 04:14:04 [2025-01-14 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243762', 'tblTempUsageDetail_20' ) start [2025-01-14 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243762', 'tblTempUsageDetail_20' ) end [2025-01-14 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243762', 'tblTempVendorCDR_20' ) start [2025-01-14 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243762', 'tblTempVendorCDR_20' ) end [2025-01-14 04:14:17] Production.INFO: ProcessCDR(1,14243762,1,1,2) [2025-01-14 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243762', 'tblTempUsageDetail_20' ) start [2025-01-14 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243762', 'tblTempUsageDetail_20' ) end [2025-01-14 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:14:20] Production.INFO: ==13737== Releasing lock... [2025-01-14 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:14:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:15:05 [end_date_ymd] => 2025-01-14 04:15:05 [RateCDR] => 1 ) [2025-01-14 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:15:05' and `end` < '2025-01-14 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:15:17] Production.INFO: count ==139 [2025-01-14 04:15:17] Production.ERROR: pbx CDR StartTime 2025-01-14 01:15:05 - End Time 2025-01-14 04:15:05 [2025-01-14 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243767', 'tblTempUsageDetail_20' ) start [2025-01-14 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243767', 'tblTempUsageDetail_20' ) end [2025-01-14 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243767', 'tblTempVendorCDR_20' ) start [2025-01-14 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243767', 'tblTempVendorCDR_20' ) end [2025-01-14 04:15:17] Production.INFO: ProcessCDR(1,14243767,1,1,2) [2025-01-14 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243767', 'tblTempUsageDetail_20' ) start [2025-01-14 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243767', 'tblTempUsageDetail_20' ) end [2025-01-14 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:15:21] Production.INFO: ==13813== Releasing lock... [2025-01-14 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:16:05 [end_date_ymd] => 2025-01-14 04:16:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:16:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:16:18] Production.INFO: count ==139 [2025-01-14 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:16:05 - End Time 2025-01-14 04:16:05 [2025-01-14 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243772', 'tblTempUsageDetail_20' ) start [2025-01-14 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243772', 'tblTempUsageDetail_20' ) end [2025-01-14 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243772', 'tblTempVendorCDR_20' ) start [2025-01-14 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243772', 'tblTempVendorCDR_20' ) end [2025-01-14 04:16:18] Production.INFO: ProcessCDR(1,14243772,1,1,2) [2025-01-14 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243772', 'tblTempUsageDetail_20' ) start [2025-01-14 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243772', 'tblTempUsageDetail_20' ) end [2025-01-14 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:16:22] Production.INFO: ==13887== Releasing lock... [2025-01-14 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:16:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:17:05 [end_date_ymd] => 2025-01-14 04:17:05 [RateCDR] => 1 ) [2025-01-14 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:17:05' and `end` < '2025-01-14 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:17:18] Production.INFO: count ==139 [2025-01-14 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:17:05 - End Time 2025-01-14 04:17:05 [2025-01-14 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243777', 'tblTempUsageDetail_20' ) start [2025-01-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243777', 'tblTempUsageDetail_20' ) end [2025-01-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243777', 'tblTempVendorCDR_20' ) start [2025-01-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243777', 'tblTempVendorCDR_20' ) end [2025-01-14 04:17:18] Production.INFO: ProcessCDR(1,14243777,1,1,2) [2025-01-14 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243777', 'tblTempUsageDetail_20' ) start [2025-01-14 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243777', 'tblTempUsageDetail_20' ) end [2025-01-14 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:17:22] Production.INFO: ==13961== Releasing lock... [2025-01-14 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:17:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:18:06 [end_date_ymd] => 2025-01-14 04:18:06 [RateCDR] => 1 ) [2025-01-14 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:18:06' and `end` < '2025-01-14 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:18:20] Production.INFO: count ==138 [2025-01-14 04:18:20] Production.ERROR: pbx CDR StartTime 2025-01-14 01:18:06 - End Time 2025-01-14 04:18:06 [2025-01-14 04:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243782', 'tblTempUsageDetail_20' ) start [2025-01-14 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243782', 'tblTempUsageDetail_20' ) end [2025-01-14 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243782', 'tblTempVendorCDR_20' ) start [2025-01-14 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243782', 'tblTempVendorCDR_20' ) end [2025-01-14 04:18:20] Production.INFO: ProcessCDR(1,14243782,1,1,2) [2025-01-14 04:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243782', 'tblTempUsageDetail_20' ) start [2025-01-14 04:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243782', 'tblTempUsageDetail_20' ) end [2025-01-14 04:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:18:24] Production.INFO: ==14046== Releasing lock... [2025-01-14 04:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:18:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:19:05 [end_date_ymd] => 2025-01-14 04:19:05 [RateCDR] => 1 ) [2025-01-14 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:19:05' and `end` < '2025-01-14 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:19:18] Production.INFO: count ==138 [2025-01-14 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:19:05 - End Time 2025-01-14 04:19:05 [2025-01-14 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243787', 'tblTempUsageDetail_20' ) start [2025-01-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243787', 'tblTempUsageDetail_20' ) end [2025-01-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243787', 'tblTempVendorCDR_20' ) start [2025-01-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243787', 'tblTempVendorCDR_20' ) end [2025-01-14 04:19:18] Production.INFO: ProcessCDR(1,14243787,1,1,2) [2025-01-14 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243787', 'tblTempUsageDetail_20' ) start [2025-01-14 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243787', 'tblTempUsageDetail_20' ) end [2025-01-14 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:19:21] Production.INFO: ==14158== Releasing lock... [2025-01-14 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:20:06 [end_date_ymd] => 2025-01-14 04:20:06 [RateCDR] => 1 ) [2025-01-14 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:20:06' and `end` < '2025-01-14 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:20:18] Production.INFO: count ==138 [2025-01-14 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:20:06 - End Time 2025-01-14 04:20:06 [2025-01-14 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243792', 'tblTempUsageDetail_20' ) start [2025-01-14 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243792', 'tblTempUsageDetail_20' ) end [2025-01-14 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243792', 'tblTempVendorCDR_20' ) start [2025-01-14 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243792', 'tblTempVendorCDR_20' ) end [2025-01-14 04:20:19] Production.INFO: ProcessCDR(1,14243792,1,1,2) [2025-01-14 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243792', 'tblTempUsageDetail_20' ) start [2025-01-14 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243792', 'tblTempUsageDetail_20' ) end [2025-01-14 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:20:22] Production.INFO: ==14259== Releasing lock... [2025-01-14 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:21:05 [end_date_ymd] => 2025-01-14 04:21:05 [RateCDR] => 1 ) [2025-01-14 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:21:05' and `end` < '2025-01-14 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:21:18] Production.INFO: count ==138 [2025-01-14 04:21:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:21:05 - End Time 2025-01-14 04:21:05 [2025-01-14 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243798', 'tblTempUsageDetail_20' ) start [2025-01-14 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243798', 'tblTempUsageDetail_20' ) end [2025-01-14 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243798', 'tblTempVendorCDR_20' ) start [2025-01-14 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243798', 'tblTempVendorCDR_20' ) end [2025-01-14 04:21:19] Production.INFO: ProcessCDR(1,14243798,1,1,2) [2025-01-14 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243798', 'tblTempUsageDetail_20' ) start [2025-01-14 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243798', 'tblTempUsageDetail_20' ) end [2025-01-14 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:21:22] Production.INFO: ==14341== Releasing lock... [2025-01-14 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:21:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:22:06 [end_date_ymd] => 2025-01-14 04:22:06 [RateCDR] => 1 ) [2025-01-14 04:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:22:06' and `end` < '2025-01-14 04:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:22:19] Production.INFO: count ==138 [2025-01-14 04:22:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:22:06 - End Time 2025-01-14 04:22:06 [2025-01-14 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243803', 'tblTempUsageDetail_20' ) start [2025-01-14 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243803', 'tblTempUsageDetail_20' ) end [2025-01-14 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243803', 'tblTempVendorCDR_20' ) start [2025-01-14 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243803', 'tblTempVendorCDR_20' ) end [2025-01-14 04:22:19] Production.INFO: ProcessCDR(1,14243803,1,1,2) [2025-01-14 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243803', 'tblTempUsageDetail_20' ) start [2025-01-14 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243803', 'tblTempUsageDetail_20' ) end [2025-01-14 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:22:22] Production.INFO: ==14412== Releasing lock... [2025-01-14 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:23:04 [end_date_ymd] => 2025-01-14 04:23:04 [RateCDR] => 1 ) [2025-01-14 04: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` >= '2025-01-14 01:23:04' and `end` < '2025-01-14 04: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 ,'') [2025-01-14 04:23:17] Production.INFO: count ==138 [2025-01-14 04:23:17] Production.ERROR: pbx CDR StartTime 2025-01-14 01:23:04 - End Time 2025-01-14 04:23:04 [2025-01-14 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243808', 'tblTempUsageDetail_20' ) start [2025-01-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243808', 'tblTempUsageDetail_20' ) end [2025-01-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243808', 'tblTempVendorCDR_20' ) start [2025-01-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243808', 'tblTempVendorCDR_20' ) end [2025-01-14 04:23:17] Production.INFO: ProcessCDR(1,14243808,1,1,2) [2025-01-14 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243808', 'tblTempUsageDetail_20' ) start [2025-01-14 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243808', 'tblTempUsageDetail_20' ) end [2025-01-14 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:23:20] Production.INFO: ==14483== Releasing lock... [2025-01-14 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:24:06 [end_date_ymd] => 2025-01-14 04:24:06 [RateCDR] => 1 ) [2025-01-14 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:24:06' and `end` < '2025-01-14 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:24:18] Production.INFO: count ==138 [2025-01-14 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:24:06 - End Time 2025-01-14 04:24:06 [2025-01-14 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243813', 'tblTempUsageDetail_20' ) start [2025-01-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243813', 'tblTempUsageDetail_20' ) end [2025-01-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243813', 'tblTempVendorCDR_20' ) start [2025-01-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243813', 'tblTempVendorCDR_20' ) end [2025-01-14 04:24:18] Production.INFO: ProcessCDR(1,14243813,1,1,2) [2025-01-14 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243813', 'tblTempUsageDetail_20' ) start [2025-01-14 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243813', 'tblTempUsageDetail_20' ) end [2025-01-14 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:24:21] Production.INFO: ==14556== Releasing lock... [2025-01-14 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:25:04 [end_date_ymd] => 2025-01-14 04:25:04 [RateCDR] => 1 ) [2025-01-14 04:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:25:04' and `end` < '2025-01-14 04:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:25:17] Production.INFO: count ==138 [2025-01-14 04:25:17] Production.ERROR: pbx CDR StartTime 2025-01-14 01:25:04 - End Time 2025-01-14 04:25:04 [2025-01-14 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243818', 'tblTempUsageDetail_20' ) start [2025-01-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243818', 'tblTempUsageDetail_20' ) end [2025-01-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243818', 'tblTempVendorCDR_20' ) start [2025-01-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243818', 'tblTempVendorCDR_20' ) end [2025-01-14 04:25:17] Production.INFO: ProcessCDR(1,14243818,1,1,2) [2025-01-14 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243818', 'tblTempUsageDetail_20' ) start [2025-01-14 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243818', 'tblTempUsageDetail_20' ) end [2025-01-14 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:25:20] Production.INFO: ==14633== Releasing lock... [2025-01-14 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:26:05 [end_date_ymd] => 2025-01-14 04:26:05 [RateCDR] => 1 ) [2025-01-14 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:26:05' and `end` < '2025-01-14 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:26:19] Production.INFO: count ==138 [2025-01-14 04:26:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:26:05 - End Time 2025-01-14 04:26:05 [2025-01-14 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243823', 'tblTempUsageDetail_20' ) start [2025-01-14 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243823', 'tblTempUsageDetail_20' ) end [2025-01-14 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243823', 'tblTempVendorCDR_20' ) start [2025-01-14 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243823', 'tblTempVendorCDR_20' ) end [2025-01-14 04:26:19] Production.INFO: ProcessCDR(1,14243823,1,1,2) [2025-01-14 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243823', 'tblTempUsageDetail_20' ) start [2025-01-14 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243823', 'tblTempUsageDetail_20' ) end [2025-01-14 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:26:22] Production.INFO: ==14705== Releasing lock... [2025-01-14 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:27:05 [end_date_ymd] => 2025-01-14 04:27:05 [RateCDR] => 1 ) [2025-01-14 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:27:05' and `end` < '2025-01-14 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:27:18] Production.INFO: count ==138 [2025-01-14 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:27:05 - End Time 2025-01-14 04:27:05 [2025-01-14 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243828', 'tblTempUsageDetail_20' ) start [2025-01-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243828', 'tblTempUsageDetail_20' ) end [2025-01-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243828', 'tblTempVendorCDR_20' ) start [2025-01-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243828', 'tblTempVendorCDR_20' ) end [2025-01-14 04:27:18] Production.INFO: ProcessCDR(1,14243828,1,1,2) [2025-01-14 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243828', 'tblTempUsageDetail_20' ) start [2025-01-14 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243828', 'tblTempUsageDetail_20' ) end [2025-01-14 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:27:21] Production.INFO: ==14778== Releasing lock... [2025-01-14 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:28:06 [end_date_ymd] => 2025-01-14 04:28:06 [RateCDR] => 1 ) [2025-01-14 04:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:28:06' and `end` < '2025-01-14 04:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:28:19] Production.INFO: count ==138 [2025-01-14 04:28:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:28:06 - End Time 2025-01-14 04:28:06 [2025-01-14 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243830', 'tblTempUsageDetail_20' ) start [2025-01-14 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243830', 'tblTempUsageDetail_20' ) end [2025-01-14 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243830', 'tblTempVendorCDR_20' ) start [2025-01-14 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243830', 'tblTempVendorCDR_20' ) end [2025-01-14 04:28:19] Production.INFO: ProcessCDR(1,14243830,1,1,2) [2025-01-14 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243830', 'tblTempUsageDetail_20' ) start [2025-01-14 04:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243830', 'tblTempUsageDetail_20' ) end [2025-01-14 04:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:28:23] Production.INFO: ==14851== Releasing lock... [2025-01-14 04:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:28:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:29:05 [end_date_ymd] => 2025-01-14 04:29:05 [RateCDR] => 1 ) [2025-01-14 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:29:05' and `end` < '2025-01-14 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:29:18] Production.INFO: count ==138 [2025-01-14 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:29:05 - End Time 2025-01-14 04:29:05 [2025-01-14 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243838', 'tblTempUsageDetail_20' ) start [2025-01-14 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243838', 'tblTempUsageDetail_20' ) end [2025-01-14 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243838', 'tblTempVendorCDR_20' ) start [2025-01-14 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243838', 'tblTempVendorCDR_20' ) end [2025-01-14 04:29:18] Production.INFO: ProcessCDR(1,14243838,1,1,2) [2025-01-14 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243838', 'tblTempUsageDetail_20' ) start [2025-01-14 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243838', 'tblTempUsageDetail_20' ) end [2025-01-14 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:29:21] Production.INFO: ==14922== Releasing lock... [2025-01-14 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:30:07 [end_date_ymd] => 2025-01-14 04:30:07 [RateCDR] => 1 ) [2025-01-14 04:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:30:07' and `end` < '2025-01-14 04:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:30:19] Production.INFO: count ==129 [2025-01-14 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:30:07 - End Time 2025-01-14 04:30:07 [2025-01-14 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243844', 'tblTempUsageDetail_20' ) start [2025-01-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243844', 'tblTempUsageDetail_20' ) end [2025-01-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243844', 'tblTempVendorCDR_20' ) start [2025-01-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243844', 'tblTempVendorCDR_20' ) end [2025-01-14 04:30:19] Production.INFO: ProcessCDR(1,14243844,1,1,2) [2025-01-14 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243844', 'tblTempUsageDetail_20' ) start [2025-01-14 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243844', 'tblTempUsageDetail_20' ) end [2025-01-14 04:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:30:24] Production.INFO: ==14997== Releasing lock... [2025-01-14 04:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:30:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:31:05 [end_date_ymd] => 2025-01-14 04:31:05 [RateCDR] => 1 ) [2025-01-14 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:31:05' and `end` < '2025-01-14 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:31:18] Production.INFO: count ==124 [2025-01-14 04:31:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:31:05 - End Time 2025-01-14 04:31:05 [2025-01-14 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243850', 'tblTempUsageDetail_20' ) start [2025-01-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243850', 'tblTempUsageDetail_20' ) end [2025-01-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243850', 'tblTempVendorCDR_20' ) start [2025-01-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243850', 'tblTempVendorCDR_20' ) end [2025-01-14 04:31:18] Production.INFO: ProcessCDR(1,14243850,1,1,2) [2025-01-14 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243850', 'tblTempUsageDetail_20' ) start [2025-01-14 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243850', 'tblTempUsageDetail_20' ) end [2025-01-14 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:31:21] Production.INFO: ==15199== Releasing lock... [2025-01-14 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:32:05 [end_date_ymd] => 2025-01-14 04:32:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:32:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:32:19] Production.INFO: count ==124 [2025-01-14 04:32:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:32:05 - End Time 2025-01-14 04:32:05 [2025-01-14 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243855', 'tblTempUsageDetail_20' ) start [2025-01-14 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243855', 'tblTempUsageDetail_20' ) end [2025-01-14 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243855', 'tblTempVendorCDR_20' ) start [2025-01-14 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243855', 'tblTempVendorCDR_20' ) end [2025-01-14 04:32:19] Production.INFO: ProcessCDR(1,14243855,1,1,2) [2025-01-14 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243855', 'tblTempUsageDetail_20' ) start [2025-01-14 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243855', 'tblTempUsageDetail_20' ) end [2025-01-14 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:32:22] Production.INFO: ==15272== Releasing lock... [2025-01-14 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:33:05 [end_date_ymd] => 2025-01-14 04:33:05 [RateCDR] => 1 ) [2025-01-14 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:33:05' and `end` < '2025-01-14 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:33:18] Production.INFO: count ==124 [2025-01-14 04:33:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:33:05 - End Time 2025-01-14 04:33:05 [2025-01-14 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243860', 'tblTempUsageDetail_20' ) start [2025-01-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243860', 'tblTempUsageDetail_20' ) end [2025-01-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243860', 'tblTempVendorCDR_20' ) start [2025-01-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243860', 'tblTempVendorCDR_20' ) end [2025-01-14 04:33:18] Production.INFO: ProcessCDR(1,14243860,1,1,2) [2025-01-14 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243860', 'tblTempUsageDetail_20' ) start [2025-01-14 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243860', 'tblTempUsageDetail_20' ) end [2025-01-14 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:33:22] Production.INFO: ==15344== Releasing lock... [2025-01-14 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:34:05 [end_date_ymd] => 2025-01-14 04:34:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:34:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:34:19] Production.INFO: count ==124 [2025-01-14 04:34:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:34:05 - End Time 2025-01-14 04:34:05 [2025-01-14 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243865', 'tblTempUsageDetail_20' ) start [2025-01-14 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243865', 'tblTempUsageDetail_20' ) end [2025-01-14 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243865', 'tblTempVendorCDR_20' ) start [2025-01-14 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243865', 'tblTempVendorCDR_20' ) end [2025-01-14 04:34:19] Production.INFO: ProcessCDR(1,14243865,1,1,2) [2025-01-14 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243865', 'tblTempUsageDetail_20' ) start [2025-01-14 04:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243865', 'tblTempUsageDetail_20' ) end [2025-01-14 04:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:34:23] Production.INFO: ==15458== Releasing lock... [2025-01-14 04:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:34:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:35:05 [end_date_ymd] => 2025-01-14 04:35:05 [RateCDR] => 1 ) [2025-01-14 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:35:05' and `end` < '2025-01-14 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:35:17] Production.INFO: count ==124 [2025-01-14 04:35:17] Production.ERROR: pbx CDR StartTime 2025-01-14 01:35:05 - End Time 2025-01-14 04:35:05 [2025-01-14 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243870', 'tblTempUsageDetail_20' ) start [2025-01-14 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243870', 'tblTempUsageDetail_20' ) end [2025-01-14 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243870', 'tblTempVendorCDR_20' ) start [2025-01-14 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243870', 'tblTempVendorCDR_20' ) end [2025-01-14 04:35:17] Production.INFO: ProcessCDR(1,14243870,1,1,2) [2025-01-14 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243870', 'tblTempUsageDetail_20' ) start [2025-01-14 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243870', 'tblTempUsageDetail_20' ) end [2025-01-14 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:35:21] Production.INFO: ==15531== Releasing lock... [2025-01-14 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:36:06 [end_date_ymd] => 2025-01-14 04:36:06 [RateCDR] => 1 ) [2025-01-14 04:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:36:06' and `end` < '2025-01-14 04:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:36:18] Production.INFO: count ==124 [2025-01-14 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:36:06 - End Time 2025-01-14 04:36:06 [2025-01-14 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243875', 'tblTempUsageDetail_20' ) start [2025-01-14 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243875', 'tblTempUsageDetail_20' ) end [2025-01-14 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243875', 'tblTempVendorCDR_20' ) start [2025-01-14 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243875', 'tblTempVendorCDR_20' ) end [2025-01-14 04:36:18] Production.INFO: ProcessCDR(1,14243875,1,1,2) [2025-01-14 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243875', 'tblTempUsageDetail_20' ) start [2025-01-14 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243875', 'tblTempUsageDetail_20' ) end [2025-01-14 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:36:22] Production.INFO: ==15605== Releasing lock... [2025-01-14 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:37:04 [end_date_ymd] => 2025-01-14 04:37:04 [RateCDR] => 1 ) [2025-01-14 04:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:37:04' and `end` < '2025-01-14 04:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:37:17] Production.INFO: count ==124 [2025-01-14 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-14 01:37:04 - End Time 2025-01-14 04:37:04 [2025-01-14 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243880', 'tblTempUsageDetail_20' ) start [2025-01-14 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243880', 'tblTempUsageDetail_20' ) end [2025-01-14 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243880', 'tblTempVendorCDR_20' ) start [2025-01-14 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243880', 'tblTempVendorCDR_20' ) end [2025-01-14 04:37:17] Production.INFO: ProcessCDR(1,14243880,1,1,2) [2025-01-14 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243880', 'tblTempUsageDetail_20' ) start [2025-01-14 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243880', 'tblTempUsageDetail_20' ) end [2025-01-14 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:37:20] Production.INFO: ==15677== Releasing lock... [2025-01-14 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:38:05 [end_date_ymd] => 2025-01-14 04:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:38:18] Production.INFO: count ==124 [2025-01-14 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:38:05 - End Time 2025-01-14 04:38:05 [2025-01-14 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243885', 'tblTempUsageDetail_20' ) start [2025-01-14 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243885', 'tblTempUsageDetail_20' ) end [2025-01-14 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243885', 'tblTempVendorCDR_20' ) start [2025-01-14 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243885', 'tblTempVendorCDR_20' ) end [2025-01-14 04:38:18] Production.INFO: ProcessCDR(1,14243885,1,1,2) [2025-01-14 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243885', 'tblTempUsageDetail_20' ) start [2025-01-14 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243885', 'tblTempUsageDetail_20' ) end [2025-01-14 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:38:21] Production.INFO: ==15750== Releasing lock... [2025-01-14 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:39:05 [end_date_ymd] => 2025-01-14 04:39:05 [RateCDR] => 1 ) [2025-01-14 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:39:05' and `end` < '2025-01-14 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:39:17] Production.INFO: count ==124 [2025-01-14 04:39:17] Production.ERROR: pbx CDR StartTime 2025-01-14 01:39:05 - End Time 2025-01-14 04:39:05 [2025-01-14 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243890', 'tblTempUsageDetail_20' ) start [2025-01-14 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243890', 'tblTempUsageDetail_20' ) end [2025-01-14 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243890', 'tblTempVendorCDR_20' ) start [2025-01-14 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243890', 'tblTempVendorCDR_20' ) end [2025-01-14 04:39:17] Production.INFO: ProcessCDR(1,14243890,1,1,2) [2025-01-14 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243890', 'tblTempUsageDetail_20' ) start [2025-01-14 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243890', 'tblTempUsageDetail_20' ) end [2025-01-14 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:39:21] Production.INFO: ==15819== Releasing lock... [2025-01-14 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:40:06 [end_date_ymd] => 2025-01-14 04:40:06 [RateCDR] => 1 ) [2025-01-14 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:40:06' and `end` < '2025-01-14 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:40:19] Production.INFO: count ==126 [2025-01-14 04:40:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:40:06 - End Time 2025-01-14 04:40:06 [2025-01-14 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243896', 'tblTempUsageDetail_20' ) start [2025-01-14 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243896', 'tblTempUsageDetail_20' ) end [2025-01-14 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243896', 'tblTempVendorCDR_20' ) start [2025-01-14 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243896', 'tblTempVendorCDR_20' ) end [2025-01-14 04:40:19] Production.INFO: ProcessCDR(1,14243896,1,1,2) [2025-01-14 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243896', 'tblTempUsageDetail_20' ) start [2025-01-14 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243896', 'tblTempUsageDetail_20' ) end [2025-01-14 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:40:22] Production.INFO: ==15894== Releasing lock... [2025-01-14 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:41:05 [end_date_ymd] => 2025-01-14 04:41:05 [RateCDR] => 1 ) [2025-01-14 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:41:05' and `end` < '2025-01-14 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:41:18] Production.INFO: count ==126 [2025-01-14 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:41:05 - End Time 2025-01-14 04:41:05 [2025-01-14 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243901', 'tblTempUsageDetail_20' ) start [2025-01-14 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243901', 'tblTempUsageDetail_20' ) end [2025-01-14 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243901', 'tblTempVendorCDR_20' ) start [2025-01-14 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243901', 'tblTempVendorCDR_20' ) end [2025-01-14 04:41:18] Production.INFO: ProcessCDR(1,14243901,1,1,2) [2025-01-14 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243901', 'tblTempUsageDetail_20' ) start [2025-01-14 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243901', 'tblTempUsageDetail_20' ) end [2025-01-14 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:41:21] Production.INFO: ==15969== Releasing lock... [2025-01-14 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:42:05 [end_date_ymd] => 2025-01-14 04:42:05 [RateCDR] => 1 ) [2025-01-14 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:42:05' and `end` < '2025-01-14 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:42:18] Production.INFO: count ==127 [2025-01-14 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:42:05 - End Time 2025-01-14 04:42:05 [2025-01-14 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243906', 'tblTempUsageDetail_20' ) start [2025-01-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243906', 'tblTempUsageDetail_20' ) end [2025-01-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243906', 'tblTempVendorCDR_20' ) start [2025-01-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243906', 'tblTempVendorCDR_20' ) end [2025-01-14 04:42:18] Production.INFO: ProcessCDR(1,14243906,1,1,2) [2025-01-14 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243906', 'tblTempUsageDetail_20' ) start [2025-01-14 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243906', 'tblTempUsageDetail_20' ) end [2025-01-14 04:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:42:23] Production.INFO: ==16041== Releasing lock... [2025-01-14 04:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:42:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:43:05 [end_date_ymd] => 2025-01-14 04:43:05 [RateCDR] => 1 ) [2025-01-14 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:43:05' and `end` < '2025-01-14 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:43:19] Production.INFO: count ==128 [2025-01-14 04:43:20] Production.ERROR: pbx CDR StartTime 2025-01-14 01:43:05 - End Time 2025-01-14 04:43:05 [2025-01-14 04:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243911', 'tblTempUsageDetail_20' ) start [2025-01-14 04:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243911', 'tblTempUsageDetail_20' ) end [2025-01-14 04:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243911', 'tblTempVendorCDR_20' ) start [2025-01-14 04:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243911', 'tblTempVendorCDR_20' ) end [2025-01-14 04:43:20] Production.INFO: ProcessCDR(1,14243911,1,1,2) [2025-01-14 04:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243911', 'tblTempUsageDetail_20' ) start [2025-01-14 04:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243911', 'tblTempUsageDetail_20' ) end [2025-01-14 04:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:43:24] Production.INFO: ==16110== Releasing lock... [2025-01-14 04:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:43:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:44:05 [end_date_ymd] => 2025-01-14 04:44:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:44:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:44:18] Production.INFO: count ==128 [2025-01-14 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:44:05 - End Time 2025-01-14 04:44:05 [2025-01-14 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243916', 'tblTempUsageDetail_20' ) start [2025-01-14 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243916', 'tblTempUsageDetail_20' ) end [2025-01-14 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243916', 'tblTempVendorCDR_20' ) start [2025-01-14 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243916', 'tblTempVendorCDR_20' ) end [2025-01-14 04:44:18] Production.INFO: ProcessCDR(1,14243916,1,1,2) [2025-01-14 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243916', 'tblTempUsageDetail_20' ) start [2025-01-14 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243916', 'tblTempUsageDetail_20' ) end [2025-01-14 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:44:22] Production.INFO: ==16184== Releasing lock... [2025-01-14 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:45:05 [end_date_ymd] => 2025-01-14 04:45:05 [RateCDR] => 1 ) [2025-01-14 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:45:05' and `end` < '2025-01-14 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:45:21] Production.INFO: count ==128 [2025-01-14 04:45:21] Production.ERROR: pbx CDR StartTime 2025-01-14 01:45:05 - End Time 2025-01-14 04:45:05 [2025-01-14 04:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243921', 'tblTempUsageDetail_20' ) start [2025-01-14 04:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243921', 'tblTempUsageDetail_20' ) end [2025-01-14 04:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243921', 'tblTempVendorCDR_20' ) start [2025-01-14 04:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243921', 'tblTempVendorCDR_20' ) end [2025-01-14 04:45:21] Production.INFO: ProcessCDR(1,14243921,1,1,2) [2025-01-14 04:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243921', 'tblTempUsageDetail_20' ) start [2025-01-14 04:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243921', 'tblTempUsageDetail_20' ) end [2025-01-14 04:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:45:24] Production.INFO: ==16258== Releasing lock... [2025-01-14 04:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:45:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:46:05 [end_date_ymd] => 2025-01-14 04:46:05 [RateCDR] => 1 ) [2025-01-14 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:46:05' and `end` < '2025-01-14 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:46:31] Production.INFO: count ==128 [2025-01-14 04:46:31] Production.ERROR: pbx CDR StartTime 2025-01-14 01:46:05 - End Time 2025-01-14 04:46:05 [2025-01-14 04:46:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243926', 'tblTempUsageDetail_20' ) start [2025-01-14 04:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243926', 'tblTempUsageDetail_20' ) end [2025-01-14 04:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243926', 'tblTempVendorCDR_20' ) start [2025-01-14 04:46:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243926', 'tblTempVendorCDR_20' ) end [2025-01-14 04:46:31] Production.INFO: ProcessCDR(1,14243926,1,1,2) [2025-01-14 04:46:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243926', 'tblTempUsageDetail_20' ) start [2025-01-14 04:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243926', 'tblTempUsageDetail_20' ) end [2025-01-14 04:46:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:46:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:46:35] Production.INFO: ==16332== Releasing lock... [2025-01-14 04:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:46:35] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:47:04 [end_date_ymd] => 2025-01-14 04:47:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:47:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:47:20] Production.INFO: count ==128 [2025-01-14 04:47:20] Production.ERROR: pbx CDR StartTime 2025-01-14 01:47:04 - End Time 2025-01-14 04:47:04 [2025-01-14 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243931', 'tblTempUsageDetail_20' ) start [2025-01-14 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243931', 'tblTempUsageDetail_20' ) end [2025-01-14 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243931', 'tblTempVendorCDR_20' ) start [2025-01-14 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243931', 'tblTempVendorCDR_20' ) end [2025-01-14 04:47:20] Production.INFO: ProcessCDR(1,14243931,1,1,2) [2025-01-14 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243931', 'tblTempUsageDetail_20' ) start [2025-01-14 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243931', 'tblTempUsageDetail_20' ) end [2025-01-14 04:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:47:23] Production.INFO: ==16407== Releasing lock... [2025-01-14 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:47:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:48:05 [end_date_ymd] => 2025-01-14 04:48:05 [RateCDR] => 1 ) [2025-01-14 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:48:05' and `end` < '2025-01-14 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:48:19] Production.INFO: count ==128 [2025-01-14 04:48:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:48:05 - End Time 2025-01-14 04:48:05 [2025-01-14 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243936', 'tblTempUsageDetail_20' ) start [2025-01-14 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243936', 'tblTempUsageDetail_20' ) end [2025-01-14 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243936', 'tblTempVendorCDR_20' ) start [2025-01-14 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243936', 'tblTempVendorCDR_20' ) end [2025-01-14 04:48:19] Production.INFO: ProcessCDR(1,14243936,1,1,2) [2025-01-14 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243936', 'tblTempUsageDetail_20' ) start [2025-01-14 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243936', 'tblTempUsageDetail_20' ) end [2025-01-14 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:48:22] Production.INFO: ==16486== Releasing lock... [2025-01-14 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:49:05 [end_date_ymd] => 2025-01-14 04:49:05 [RateCDR] => 1 ) [2025-01-14 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:49:05' and `end` < '2025-01-14 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:49:20] Production.INFO: count ==126 [2025-01-14 04:49:20] Production.ERROR: pbx CDR StartTime 2025-01-14 01:49:05 - End Time 2025-01-14 04:49:05 [2025-01-14 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243941', 'tblTempUsageDetail_20' ) start [2025-01-14 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243941', 'tblTempUsageDetail_20' ) end [2025-01-14 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243941', 'tblTempVendorCDR_20' ) start [2025-01-14 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243941', 'tblTempVendorCDR_20' ) end [2025-01-14 04:49:20] Production.INFO: ProcessCDR(1,14243941,1,1,2) [2025-01-14 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243941', 'tblTempUsageDetail_20' ) start [2025-01-14 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243941', 'tblTempUsageDetail_20' ) end [2025-01-14 04:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:49:24] Production.INFO: ==16567== Releasing lock... [2025-01-14 04:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:49:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:50:06 [end_date_ymd] => 2025-01-14 04:50:06 [RateCDR] => 1 ) [2025-01-14 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:50:06' and `end` < '2025-01-14 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:50:20] Production.INFO: count ==120 [2025-01-14 04:50:20] Production.ERROR: pbx CDR StartTime 2025-01-14 01:50:06 - End Time 2025-01-14 04:50:06 [2025-01-14 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243947', 'tblTempUsageDetail_20' ) start [2025-01-14 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243947', 'tblTempUsageDetail_20' ) end [2025-01-14 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243947', 'tblTempVendorCDR_20' ) start [2025-01-14 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243947', 'tblTempVendorCDR_20' ) end [2025-01-14 04:50:20] Production.INFO: ProcessCDR(1,14243947,1,1,2) [2025-01-14 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243947', 'tblTempUsageDetail_20' ) start [2025-01-14 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243947', 'tblTempUsageDetail_20' ) end [2025-01-14 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:50:24] Production.INFO: ==16686== Releasing lock... [2025-01-14 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:50:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:51:06 [end_date_ymd] => 2025-01-14 04:51:06 [RateCDR] => 1 ) [2025-01-14 04:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:51:06' and `end` < '2025-01-14 04:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:51:20] Production.INFO: count ==115 [2025-01-14 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-14 01:51:06 - End Time 2025-01-14 04:51:06 [2025-01-14 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243952', 'tblTempUsageDetail_20' ) start [2025-01-14 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243952', 'tblTempUsageDetail_20' ) end [2025-01-14 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243952', 'tblTempVendorCDR_20' ) start [2025-01-14 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243952', 'tblTempVendorCDR_20' ) end [2025-01-14 04:51:20] Production.INFO: ProcessCDR(1,14243952,1,1,2) [2025-01-14 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243952', 'tblTempUsageDetail_20' ) start [2025-01-14 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243952', 'tblTempUsageDetail_20' ) end [2025-01-14 04:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:51:24] Production.INFO: ==16769== Releasing lock... [2025-01-14 04:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:51:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:52:05 [end_date_ymd] => 2025-01-14 04:52:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:52:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:52:18] Production.INFO: count ==115 [2025-01-14 04:52:18] Production.ERROR: pbx CDR StartTime 2025-01-14 01:52:05 - End Time 2025-01-14 04:52:05 [2025-01-14 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243957', 'tblTempUsageDetail_20' ) start [2025-01-14 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243957', 'tblTempUsageDetail_20' ) end [2025-01-14 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243957', 'tblTempVendorCDR_20' ) start [2025-01-14 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243957', 'tblTempVendorCDR_20' ) end [2025-01-14 04:52:18] Production.INFO: ProcessCDR(1,14243957,1,1,2) [2025-01-14 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243957', 'tblTempUsageDetail_20' ) start [2025-01-14 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243957', 'tblTempUsageDetail_20' ) end [2025-01-14 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:52:21] Production.INFO: ==16847== Releasing lock... [2025-01-14 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:53:05 [end_date_ymd] => 2025-01-14 04:53:05 [RateCDR] => 1 ) [2025-01-14 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:53:05' and `end` < '2025-01-14 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:53:19] Production.INFO: count ==115 [2025-01-14 04:53:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:53:05 - End Time 2025-01-14 04:53:05 [2025-01-14 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243962', 'tblTempUsageDetail_20' ) start [2025-01-14 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243962', 'tblTempUsageDetail_20' ) end [2025-01-14 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243962', 'tblTempVendorCDR_20' ) start [2025-01-14 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243962', 'tblTempVendorCDR_20' ) end [2025-01-14 04:53:19] Production.INFO: ProcessCDR(1,14243962,1,1,2) [2025-01-14 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243962', 'tblTempUsageDetail_20' ) start [2025-01-14 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243962', 'tblTempUsageDetail_20' ) end [2025-01-14 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:53:23] Production.INFO: ==16929== Releasing lock... [2025-01-14 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:53:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:54:05 [end_date_ymd] => 2025-01-14 04:54:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:54:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 04:54:20] Production.INFO: count ==115 [2025-01-14 04:54:20] Production.ERROR: pbx CDR StartTime 2025-01-14 01:54:05 - End Time 2025-01-14 04:54:05 [2025-01-14 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243967', 'tblTempUsageDetail_20' ) start [2025-01-14 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243967', 'tblTempUsageDetail_20' ) end [2025-01-14 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243967', 'tblTempVendorCDR_20' ) start [2025-01-14 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243967', 'tblTempVendorCDR_20' ) end [2025-01-14 04:54:20] Production.INFO: ProcessCDR(1,14243967,1,1,2) [2025-01-14 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243967', 'tblTempUsageDetail_20' ) start [2025-01-14 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243967', 'tblTempUsageDetail_20' ) end [2025-01-14 04:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:54:24] Production.INFO: ==17011== Releasing lock... [2025-01-14 04:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:54:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:55:06 [end_date_ymd] => 2025-01-14 04:55:06 [RateCDR] => 1 ) [2025-01-14 04:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:55:06' and `end` < '2025-01-14 04:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:55:20] Production.INFO: count ==115 [2025-01-14 04:55:20] Production.ERROR: pbx CDR StartTime 2025-01-14 01:55:06 - End Time 2025-01-14 04:55:06 [2025-01-14 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243972', 'tblTempUsageDetail_20' ) start [2025-01-14 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243972', 'tblTempUsageDetail_20' ) end [2025-01-14 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243972', 'tblTempVendorCDR_20' ) start [2025-01-14 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243972', 'tblTempVendorCDR_20' ) end [2025-01-14 04:55:20] Production.INFO: ProcessCDR(1,14243972,1,1,2) [2025-01-14 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243972', 'tblTempUsageDetail_20' ) start [2025-01-14 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243972', 'tblTempUsageDetail_20' ) end [2025-01-14 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:55:23] Production.INFO: ==17092== Releasing lock... [2025-01-14 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:55:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:56:05 [end_date_ymd] => 2025-01-14 04:56:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 01:56:05' and `end` < '2025-01-14 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:56:20] Production.INFO: count ==115 [2025-01-14 04:56:20] Production.ERROR: pbx CDR StartTime 2025-01-14 01:56:05 - End Time 2025-01-14 04:56:05 [2025-01-14 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243977', 'tblTempUsageDetail_20' ) start [2025-01-14 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243977', 'tblTempUsageDetail_20' ) end [2025-01-14 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243977', 'tblTempVendorCDR_20' ) start [2025-01-14 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243977', 'tblTempVendorCDR_20' ) end [2025-01-14 04:56:20] Production.INFO: ProcessCDR(1,14243977,1,1,2) [2025-01-14 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243977', 'tblTempUsageDetail_20' ) start [2025-01-14 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243977', 'tblTempUsageDetail_20' ) end [2025-01-14 04:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:56:24] Production.INFO: ==17171== Releasing lock... [2025-01-14 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:56:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:57:05 [end_date_ymd] => 2025-01-14 04:57:05 [RateCDR] => 1 ) [2025-01-14 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:57:05' and `end` < '2025-01-14 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:57:19] Production.INFO: count ==115 [2025-01-14 04:57:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:57:05 - End Time 2025-01-14 04:57:05 [2025-01-14 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243982', 'tblTempUsageDetail_20' ) start [2025-01-14 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243982', 'tblTempUsageDetail_20' ) end [2025-01-14 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243982', 'tblTempVendorCDR_20' ) start [2025-01-14 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243982', 'tblTempVendorCDR_20' ) end [2025-01-14 04:57:19] Production.INFO: ProcessCDR(1,14243982,1,1,2) [2025-01-14 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243982', 'tblTempUsageDetail_20' ) start [2025-01-14 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243982', 'tblTempUsageDetail_20' ) end [2025-01-14 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:57:22] Production.INFO: ==17251== Releasing lock... [2025-01-14 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:57:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:58:05 [end_date_ymd] => 2025-01-14 04:58:05 [RateCDR] => 1 ) [2025-01-14 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:58:05' and `end` < '2025-01-14 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:58:20] Production.INFO: count ==115 [2025-01-14 04:58:20] Production.ERROR: pbx CDR StartTime 2025-01-14 01:58:05 - End Time 2025-01-14 04:58:05 [2025-01-14 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243987', 'tblTempUsageDetail_20' ) start [2025-01-14 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243987', 'tblTempUsageDetail_20' ) end [2025-01-14 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243987', 'tblTempVendorCDR_20' ) start [2025-01-14 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243987', 'tblTempVendorCDR_20' ) end [2025-01-14 04:58:20] Production.INFO: ProcessCDR(1,14243987,1,1,2) [2025-01-14 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243987', 'tblTempUsageDetail_20' ) start [2025-01-14 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243987', 'tblTempUsageDetail_20' ) end [2025-01-14 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:58:23] Production.INFO: ==17332== Releasing lock... [2025-01-14 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:58:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 01:59:05 [end_date_ymd] => 2025-01-14 04:59:05 [RateCDR] => 1 ) [2025-01-14 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 01:59:05' and `end` < '2025-01-14 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 04:59:19] Production.INFO: count ==115 [2025-01-14 04:59:19] Production.ERROR: pbx CDR StartTime 2025-01-14 01:59:05 - End Time 2025-01-14 04:59:05 [2025-01-14 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243992', 'tblTempUsageDetail_20' ) start [2025-01-14 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243992', 'tblTempUsageDetail_20' ) end [2025-01-14 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243992', 'tblTempVendorCDR_20' ) start [2025-01-14 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243992', 'tblTempVendorCDR_20' ) end [2025-01-14 04:59:19] Production.INFO: ProcessCDR(1,14243992,1,1,2) [2025-01-14 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243992', 'tblTempUsageDetail_20' ) start [2025-01-14 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243992', 'tblTempUsageDetail_20' ) end [2025-01-14 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 04:59:23] Production.INFO: ==17415== Releasing lock... [2025-01-14 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 04:59:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:00:06 [end_date_ymd] => 2025-01-14 05:00:06 [RateCDR] => 1 ) [2025-01-14 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:00:06' and `end` < '2025-01-14 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:00:20] Production.INFO: count ==107 [2025-01-14 05:00:20] Production.ERROR: pbx CDR StartTime 2025-01-14 02:00:06 - End Time 2025-01-14 05:00:06 [2025-01-14 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243998', 'tblTempUsageDetail_20' ) start [2025-01-14 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14243998', 'tblTempUsageDetail_20' ) end [2025-01-14 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243998', 'tblTempVendorCDR_20' ) start [2025-01-14 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14243998', 'tblTempVendorCDR_20' ) end [2025-01-14 05:00:20] Production.INFO: ProcessCDR(1,14243998,1,1,2) [2025-01-14 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14243998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14243998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14243998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14243998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243998', 'tblTempUsageDetail_20' ) start [2025-01-14 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14243998', 'tblTempUsageDetail_20' ) end [2025-01-14 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:00:24] Production.INFO: ==17496== Releasing lock... [2025-01-14 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:00:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:01:05 [end_date_ymd] => 2025-01-14 05:01:05 [RateCDR] => 1 ) [2025-01-14 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:01:05' and `end` < '2025-01-14 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:01:21] Production.INFO: count ==107 [2025-01-14 05:01:21] Production.ERROR: pbx CDR StartTime 2025-01-14 02:01:05 - End Time 2025-01-14 05:01:05 [2025-01-14 05:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244003', 'tblTempUsageDetail_20' ) start [2025-01-14 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244003', 'tblTempUsageDetail_20' ) end [2025-01-14 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244003', 'tblTempVendorCDR_20' ) start [2025-01-14 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244003', 'tblTempVendorCDR_20' ) end [2025-01-14 05:01:21] Production.INFO: ProcessCDR(1,14244003,1,1,2) [2025-01-14 05:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244003', 'tblTempUsageDetail_20' ) start [2025-01-14 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244003', 'tblTempUsageDetail_20' ) end [2025-01-14 05:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:01:24] Production.INFO: ==17593== Releasing lock... [2025-01-14 05:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:01:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:02:04 [end_date_ymd] => 2025-01-14 05:02:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 02:02:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 05:02:19] Production.INFO: count ==107 [2025-01-14 05:02:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:02:04 - End Time 2025-01-14 05:02:04 [2025-01-14 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244008', 'tblTempUsageDetail_20' ) start [2025-01-14 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244008', 'tblTempUsageDetail_20' ) end [2025-01-14 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244008', 'tblTempVendorCDR_20' ) start [2025-01-14 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244008', 'tblTempVendorCDR_20' ) end [2025-01-14 05:02:19] Production.INFO: ProcessCDR(1,14244008,1,1,2) [2025-01-14 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244008', 'tblTempUsageDetail_20' ) start [2025-01-14 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244008', 'tblTempUsageDetail_20' ) end [2025-01-14 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:02:22] Production.INFO: ==17679== Releasing lock... [2025-01-14 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:03:05 [end_date_ymd] => 2025-01-14 05:03:05 [RateCDR] => 1 ) [2025-01-14 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:03:05' and `end` < '2025-01-14 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:03:19] Production.INFO: count ==107 [2025-01-14 05:03:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:03:05 - End Time 2025-01-14 05:03:05 [2025-01-14 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244013', 'tblTempUsageDetail_20' ) start [2025-01-14 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244013', 'tblTempUsageDetail_20' ) end [2025-01-14 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244013', 'tblTempVendorCDR_20' ) start [2025-01-14 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244013', 'tblTempVendorCDR_20' ) end [2025-01-14 05:03:19] Production.INFO: ProcessCDR(1,14244013,1,1,2) [2025-01-14 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244013', 'tblTempUsageDetail_20' ) start [2025-01-14 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244013', 'tblTempUsageDetail_20' ) end [2025-01-14 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:03:22] Production.INFO: ==17758== Releasing lock... [2025-01-14 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:04:06 [end_date_ymd] => 2025-01-14 05:04:06 [RateCDR] => 1 ) [2025-01-14 05:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:04:06' and `end` < '2025-01-14 05:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:04:19] Production.INFO: count ==107 [2025-01-14 05:04:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:04:06 - End Time 2025-01-14 05:04:06 [2025-01-14 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244018', 'tblTempUsageDetail_20' ) start [2025-01-14 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244018', 'tblTempUsageDetail_20' ) end [2025-01-14 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244018', 'tblTempVendorCDR_20' ) start [2025-01-14 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244018', 'tblTempVendorCDR_20' ) end [2025-01-14 05:04:19] Production.INFO: ProcessCDR(1,14244018,1,1,2) [2025-01-14 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244018', 'tblTempUsageDetail_20' ) start [2025-01-14 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244018', 'tblTempUsageDetail_20' ) end [2025-01-14 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:04:22] Production.INFO: ==17839== Releasing lock... [2025-01-14 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:05:05 [end_date_ymd] => 2025-01-14 05:05:05 [RateCDR] => 1 ) [2025-01-14 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:05:05' and `end` < '2025-01-14 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:05:17] Production.INFO: count ==107 [2025-01-14 05:05:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:05:05 - End Time 2025-01-14 05:05:05 [2025-01-14 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244023', 'tblTempUsageDetail_20' ) start [2025-01-14 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244023', 'tblTempUsageDetail_20' ) end [2025-01-14 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244023', 'tblTempVendorCDR_20' ) start [2025-01-14 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244023', 'tblTempVendorCDR_20' ) end [2025-01-14 05:05:17] Production.INFO: ProcessCDR(1,14244023,1,1,2) [2025-01-14 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244023', 'tblTempUsageDetail_20' ) start [2025-01-14 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244023', 'tblTempUsageDetail_20' ) end [2025-01-14 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:05:21] Production.INFO: ==17925== Releasing lock... [2025-01-14 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:06:05 [end_date_ymd] => 2025-01-14 05:06:05 [RateCDR] => 1 ) [2025-01-14 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:06:05' and `end` < '2025-01-14 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:06:23] Production.INFO: count ==107 [2025-01-14 05:06:23] Production.ERROR: pbx CDR StartTime 2025-01-14 02:06:05 - End Time 2025-01-14 05:06:05 [2025-01-14 05:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244028', 'tblTempUsageDetail_20' ) start [2025-01-14 05:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244028', 'tblTempUsageDetail_20' ) end [2025-01-14 05:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244028', 'tblTempVendorCDR_20' ) start [2025-01-14 05:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244028', 'tblTempVendorCDR_20' ) end [2025-01-14 05:06:23] Production.INFO: ProcessCDR(1,14244028,1,1,2) [2025-01-14 05:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244028', 'tblTempUsageDetail_20' ) start [2025-01-14 05:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244028', 'tblTempUsageDetail_20' ) end [2025-01-14 05:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:06:26] Production.INFO: ==18047== Releasing lock... [2025-01-14 05:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:06:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:07:05 [end_date_ymd] => 2025-01-14 05:07:05 [RateCDR] => 1 ) [2025-01-14 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:07:05' and `end` < '2025-01-14 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:07:19] Production.INFO: count ==104 [2025-01-14 05:07:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:07:05 - End Time 2025-01-14 05:07:05 [2025-01-14 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244032', 'tblTempUsageDetail_20' ) start [2025-01-14 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244032', 'tblTempUsageDetail_20' ) end [2025-01-14 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244032', 'tblTempVendorCDR_20' ) start [2025-01-14 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244032', 'tblTempVendorCDR_20' ) end [2025-01-14 05:07:19] Production.INFO: ProcessCDR(1,14244032,1,1,2) [2025-01-14 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244032', 'tblTempUsageDetail_20' ) start [2025-01-14 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244032', 'tblTempUsageDetail_20' ) end [2025-01-14 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:07:22] Production.INFO: ==18128== Releasing lock... [2025-01-14 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:08:05 [end_date_ymd] => 2025-01-14 05:08:05 [RateCDR] => 1 ) [2025-01-14 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:08:05' and `end` < '2025-01-14 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:08:18] Production.INFO: count ==104 [2025-01-14 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:08:05 - End Time 2025-01-14 05:08:05 [2025-01-14 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244038', 'tblTempUsageDetail_20' ) start [2025-01-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244038', 'tblTempUsageDetail_20' ) end [2025-01-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244038', 'tblTempVendorCDR_20' ) start [2025-01-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244038', 'tblTempVendorCDR_20' ) end [2025-01-14 05:08:18] Production.INFO: ProcessCDR(1,14244038,1,1,2) [2025-01-14 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244038', 'tblTempUsageDetail_20' ) start [2025-01-14 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244038', 'tblTempUsageDetail_20' ) end [2025-01-14 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:08:22] Production.INFO: ==18210== Releasing lock... [2025-01-14 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:09:05 [end_date_ymd] => 2025-01-14 05:09:05 [RateCDR] => 1 ) [2025-01-14 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:09:05' and `end` < '2025-01-14 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:09:17] Production.INFO: count ==104 [2025-01-14 05:09:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:09:05 - End Time 2025-01-14 05:09:05 [2025-01-14 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244043', 'tblTempUsageDetail_20' ) start [2025-01-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244043', 'tblTempUsageDetail_20' ) end [2025-01-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244043', 'tblTempVendorCDR_20' ) start [2025-01-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244043', 'tblTempVendorCDR_20' ) end [2025-01-14 05:09:17] Production.INFO: ProcessCDR(1,14244043,1,1,2) [2025-01-14 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244043', 'tblTempUsageDetail_20' ) start [2025-01-14 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244043', 'tblTempUsageDetail_20' ) end [2025-01-14 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:09:21] Production.INFO: ==18292== Releasing lock... [2025-01-14 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:10:05 [end_date_ymd] => 2025-01-14 05:10:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 02:10:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 05:10:18] Production.INFO: count ==100 [2025-01-14 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:10:05 - End Time 2025-01-14 05:10:05 [2025-01-14 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244049', 'tblTempUsageDetail_20' ) start [2025-01-14 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244049', 'tblTempUsageDetail_20' ) end [2025-01-14 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244049', 'tblTempVendorCDR_20' ) start [2025-01-14 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244049', 'tblTempVendorCDR_20' ) end [2025-01-14 05:10:18] Production.INFO: ProcessCDR(1,14244049,1,1,2) [2025-01-14 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244049', 'tblTempUsageDetail_20' ) start [2025-01-14 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244049', 'tblTempUsageDetail_20' ) end [2025-01-14 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:10:21] Production.INFO: ==18374== Releasing lock... [2025-01-14 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:11:05 [end_date_ymd] => 2025-01-14 05:11:05 [RateCDR] => 1 ) [2025-01-14 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:11:05' and `end` < '2025-01-14 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:11:18] Production.INFO: count ==93 [2025-01-14 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:11:05 - End Time 2025-01-14 05:11:05 [2025-01-14 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244054', 'tblTempUsageDetail_20' ) start [2025-01-14 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244054', 'tblTempUsageDetail_20' ) end [2025-01-14 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244054', 'tblTempVendorCDR_20' ) start [2025-01-14 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244054', 'tblTempVendorCDR_20' ) end [2025-01-14 05:11:18] Production.INFO: ProcessCDR(1,14244054,1,1,2) [2025-01-14 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244054', 'tblTempUsageDetail_20' ) start [2025-01-14 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244054', 'tblTempUsageDetail_20' ) end [2025-01-14 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:11:21] Production.INFO: ==18463== Releasing lock... [2025-01-14 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:12:05 [end_date_ymd] => 2025-01-14 05:12:05 [RateCDR] => 1 ) [2025-01-14 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:12:05' and `end` < '2025-01-14 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:12:18] Production.INFO: count ==93 [2025-01-14 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:12:05 - End Time 2025-01-14 05:12:05 [2025-01-14 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244059', 'tblTempUsageDetail_20' ) start [2025-01-14 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244059', 'tblTempUsageDetail_20' ) end [2025-01-14 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244059', 'tblTempVendorCDR_20' ) start [2025-01-14 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244059', 'tblTempVendorCDR_20' ) end [2025-01-14 05:12:18] Production.INFO: ProcessCDR(1,14244059,1,1,2) [2025-01-14 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244059', 'tblTempUsageDetail_20' ) start [2025-01-14 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244059', 'tblTempUsageDetail_20' ) end [2025-01-14 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:12:22] Production.INFO: ==18535== Releasing lock... [2025-01-14 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:13:05 [end_date_ymd] => 2025-01-14 05:13:05 [RateCDR] => 1 ) [2025-01-14 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:13:05' and `end` < '2025-01-14 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:13:18] Production.INFO: count ==91 [2025-01-14 05:13:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:13:05 - End Time 2025-01-14 05:13:05 [2025-01-14 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244064', 'tblTempUsageDetail_20' ) start [2025-01-14 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244064', 'tblTempUsageDetail_20' ) end [2025-01-14 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244064', 'tblTempVendorCDR_20' ) start [2025-01-14 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244064', 'tblTempVendorCDR_20' ) end [2025-01-14 05:13:18] Production.INFO: ProcessCDR(1,14244064,1,1,2) [2025-01-14 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244064', 'tblTempUsageDetail_20' ) start [2025-01-14 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244064', 'tblTempUsageDetail_20' ) end [2025-01-14 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:13:21] Production.INFO: ==18606== Releasing lock... [2025-01-14 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:14:05 [end_date_ymd] => 2025-01-14 05:14:05 [RateCDR] => 1 ) [2025-01-14 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:14:05' and `end` < '2025-01-14 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:14:17] Production.INFO: count ==91 [2025-01-14 05:14:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:14:05 - End Time 2025-01-14 05:14:05 [2025-01-14 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244069', 'tblTempUsageDetail_20' ) start [2025-01-14 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244069', 'tblTempUsageDetail_20' ) end [2025-01-14 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244069', 'tblTempVendorCDR_20' ) start [2025-01-14 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244069', 'tblTempVendorCDR_20' ) end [2025-01-14 05:14:17] Production.INFO: ProcessCDR(1,14244069,1,1,2) [2025-01-14 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244069', 'tblTempUsageDetail_20' ) start [2025-01-14 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244069', 'tblTempUsageDetail_20' ) end [2025-01-14 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:14:20] Production.INFO: ==18684== Releasing lock... [2025-01-14 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:15:04 [end_date_ymd] => 2025-01-14 05:15:04 [RateCDR] => 1 ) [2025-01-14 05:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:15:04' and `end` < '2025-01-14 05:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:15:17] Production.INFO: count ==91 [2025-01-14 05:15:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:15:04 - End Time 2025-01-14 05:15:04 [2025-01-14 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244074', 'tblTempUsageDetail_20' ) start [2025-01-14 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244074', 'tblTempUsageDetail_20' ) end [2025-01-14 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244074', 'tblTempVendorCDR_20' ) start [2025-01-14 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244074', 'tblTempVendorCDR_20' ) end [2025-01-14 05:15:17] Production.INFO: ProcessCDR(1,14244074,1,1,2) [2025-01-14 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244074', 'tblTempUsageDetail_20' ) start [2025-01-14 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244074', 'tblTempUsageDetail_20' ) end [2025-01-14 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:15:21] Production.INFO: ==18762== Releasing lock... [2025-01-14 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:16:06 [end_date_ymd] => 2025-01-14 05:16:06 [RateCDR] => 1 ) [2025-01-14 05:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:16:06' and `end` < '2025-01-14 05:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:16:19] Production.INFO: count ==91 [2025-01-14 05:16:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:16:06 - End Time 2025-01-14 05:16:06 [2025-01-14 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244079', 'tblTempUsageDetail_20' ) start [2025-01-14 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244079', 'tblTempUsageDetail_20' ) end [2025-01-14 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244079', 'tblTempVendorCDR_20' ) start [2025-01-14 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244079', 'tblTempVendorCDR_20' ) end [2025-01-14 05:16:19] Production.INFO: ProcessCDR(1,14244079,1,1,2) [2025-01-14 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244079', 'tblTempUsageDetail_20' ) start [2025-01-14 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244079', 'tblTempUsageDetail_20' ) end [2025-01-14 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:16:22] Production.INFO: ==18838== Releasing lock... [2025-01-14 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:17:05 [end_date_ymd] => 2025-01-14 05:17:05 [RateCDR] => 1 ) [2025-01-14 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:17:05' and `end` < '2025-01-14 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:17:18] Production.INFO: count ==91 [2025-01-14 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:17:05 - End Time 2025-01-14 05:17:05 [2025-01-14 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244084', 'tblTempUsageDetail_20' ) start [2025-01-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244084', 'tblTempUsageDetail_20' ) end [2025-01-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244084', 'tblTempVendorCDR_20' ) start [2025-01-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244084', 'tblTempVendorCDR_20' ) end [2025-01-14 05:17:18] Production.INFO: ProcessCDR(1,14244084,1,1,2) [2025-01-14 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244084', 'tblTempUsageDetail_20' ) start [2025-01-14 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244084', 'tblTempUsageDetail_20' ) end [2025-01-14 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:17:21] Production.INFO: ==18912== Releasing lock... [2025-01-14 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:18:06 [end_date_ymd] => 2025-01-14 05:18:06 [RateCDR] => 1 ) [2025-01-14 05:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:18:06' and `end` < '2025-01-14 05:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:18:19] Production.INFO: count ==91 [2025-01-14 05:18:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:18:06 - End Time 2025-01-14 05:18:06 [2025-01-14 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244089', 'tblTempUsageDetail_20' ) start [2025-01-14 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244089', 'tblTempUsageDetail_20' ) end [2025-01-14 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244089', 'tblTempVendorCDR_20' ) start [2025-01-14 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244089', 'tblTempVendorCDR_20' ) end [2025-01-14 05:18:19] Production.INFO: ProcessCDR(1,14244089,1,1,2) [2025-01-14 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244089', 'tblTempUsageDetail_20' ) start [2025-01-14 05:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244089', 'tblTempUsageDetail_20' ) end [2025-01-14 05:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:18:23] Production.INFO: ==18987== Releasing lock... [2025-01-14 05:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:18:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:19:05 [end_date_ymd] => 2025-01-14 05:19:05 [RateCDR] => 1 ) [2025-01-14 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:19:05' and `end` < '2025-01-14 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:19:18] Production.INFO: count ==91 [2025-01-14 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:19:05 - End Time 2025-01-14 05:19:05 [2025-01-14 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244094', 'tblTempUsageDetail_20' ) start [2025-01-14 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244094', 'tblTempUsageDetail_20' ) end [2025-01-14 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244094', 'tblTempVendorCDR_20' ) start [2025-01-14 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244094', 'tblTempVendorCDR_20' ) end [2025-01-14 05:19:18] Production.INFO: ProcessCDR(1,14244094,1,1,2) [2025-01-14 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244094', 'tblTempUsageDetail_20' ) start [2025-01-14 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244094', 'tblTempUsageDetail_20' ) end [2025-01-14 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:19:21] Production.INFO: ==19061== Releasing lock... [2025-01-14 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:20:06 [end_date_ymd] => 2025-01-14 05:20:06 [RateCDR] => 1 ) [2025-01-14 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:20:06' and `end` < '2025-01-14 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:20:18] Production.INFO: count ==83 [2025-01-14 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:20:06 - End Time 2025-01-14 05:20:06 [2025-01-14 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244100', 'tblTempUsageDetail_20' ) start [2025-01-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244100', 'tblTempUsageDetail_20' ) end [2025-01-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244100', 'tblTempVendorCDR_20' ) start [2025-01-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244100', 'tblTempVendorCDR_20' ) end [2025-01-14 05:20:18] Production.INFO: ProcessCDR(1,14244100,1,1,2) [2025-01-14 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244100', 'tblTempUsageDetail_20' ) start [2025-01-14 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244100', 'tblTempUsageDetail_20' ) end [2025-01-14 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:20:22] Production.INFO: ==19138== Releasing lock... [2025-01-14 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:21:05 [end_date_ymd] => 2025-01-14 05:21:05 [RateCDR] => 1 ) [2025-01-14 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:21:05' and `end` < '2025-01-14 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:21:18] Production.INFO: count ==83 [2025-01-14 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:21:05 - End Time 2025-01-14 05:21:05 [2025-01-14 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244105', 'tblTempUsageDetail_20' ) start [2025-01-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244105', 'tblTempUsageDetail_20' ) end [2025-01-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244105', 'tblTempVendorCDR_20' ) start [2025-01-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244105', 'tblTempVendorCDR_20' ) end [2025-01-14 05:21:18] Production.INFO: ProcessCDR(1,14244105,1,1,2) [2025-01-14 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244105', 'tblTempUsageDetail_20' ) start [2025-01-14 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244105', 'tblTempUsageDetail_20' ) end [2025-01-14 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:21:22] Production.INFO: ==19254== Releasing lock... [2025-01-14 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:21:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:22:05 [end_date_ymd] => 2025-01-14 05:22:05 [RateCDR] => 1 ) [2025-01-14 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:22:05' and `end` < '2025-01-14 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:22:19] Production.INFO: count ==83 [2025-01-14 05:22:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:22:05 - End Time 2025-01-14 05:22:05 [2025-01-14 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244110', 'tblTempUsageDetail_20' ) start [2025-01-14 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244110', 'tblTempUsageDetail_20' ) end [2025-01-14 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244110', 'tblTempVendorCDR_20' ) start [2025-01-14 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244110', 'tblTempVendorCDR_20' ) end [2025-01-14 05:22:19] Production.INFO: ProcessCDR(1,14244110,1,1,2) [2025-01-14 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244110', 'tblTempUsageDetail_20' ) start [2025-01-14 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244110', 'tblTempUsageDetail_20' ) end [2025-01-14 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:22:22] Production.INFO: ==19328== Releasing lock... [2025-01-14 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:22:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:23:05 [end_date_ymd] => 2025-01-14 05:23:05 [RateCDR] => 1 ) [2025-01-14 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:23:05' and `end` < '2025-01-14 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:23:18] Production.INFO: count ==82 [2025-01-14 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:23:05 - End Time 2025-01-14 05:23:05 [2025-01-14 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244115', 'tblTempUsageDetail_20' ) start [2025-01-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244115', 'tblTempUsageDetail_20' ) end [2025-01-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244115', 'tblTempVendorCDR_20' ) start [2025-01-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244115', 'tblTempVendorCDR_20' ) end [2025-01-14 05:23:18] Production.INFO: ProcessCDR(1,14244115,1,1,2) [2025-01-14 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244115', 'tblTempUsageDetail_20' ) start [2025-01-14 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244115', 'tblTempUsageDetail_20' ) end [2025-01-14 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:23:21] Production.INFO: ==19402== Releasing lock... [2025-01-14 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:24:05 [end_date_ymd] => 2025-01-14 05:24:05 [RateCDR] => 1 ) [2025-01-14 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:24:05' and `end` < '2025-01-14 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:24:19] Production.INFO: count ==82 [2025-01-14 05:24:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:24:05 - End Time 2025-01-14 05:24:05 [2025-01-14 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244120', 'tblTempUsageDetail_20' ) start [2025-01-14 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244120', 'tblTempUsageDetail_20' ) end [2025-01-14 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244120', 'tblTempVendorCDR_20' ) start [2025-01-14 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244120', 'tblTempVendorCDR_20' ) end [2025-01-14 05:24:19] Production.INFO: ProcessCDR(1,14244120,1,1,2) [2025-01-14 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244120', 'tblTempUsageDetail_20' ) start [2025-01-14 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244120', 'tblTempUsageDetail_20' ) end [2025-01-14 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:24:22] Production.INFO: ==19478== Releasing lock... [2025-01-14 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:24:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:25:05 [end_date_ymd] => 2025-01-14 05:25:05 [RateCDR] => 1 ) [2025-01-14 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:25:05' and `end` < '2025-01-14 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:25:17] Production.INFO: count ==82 [2025-01-14 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:25:05 - End Time 2025-01-14 05:25:05 [2025-01-14 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244125', 'tblTempUsageDetail_20' ) start [2025-01-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244125', 'tblTempUsageDetail_20' ) end [2025-01-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244125', 'tblTempVendorCDR_20' ) start [2025-01-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244125', 'tblTempVendorCDR_20' ) end [2025-01-14 05:25:17] Production.INFO: ProcessCDR(1,14244125,1,1,2) [2025-01-14 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244125', 'tblTempUsageDetail_20' ) start [2025-01-14 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244125', 'tblTempUsageDetail_20' ) end [2025-01-14 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:25:21] Production.INFO: ==19557== Releasing lock... [2025-01-14 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:26:05 [end_date_ymd] => 2025-01-14 05:26:05 [RateCDR] => 1 ) [2025-01-14 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:26:05' and `end` < '2025-01-14 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:26:18] Production.INFO: count ==82 [2025-01-14 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:26:05 - End Time 2025-01-14 05:26:05 [2025-01-14 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244130', 'tblTempUsageDetail_20' ) start [2025-01-14 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244130', 'tblTempUsageDetail_20' ) end [2025-01-14 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244130', 'tblTempVendorCDR_20' ) start [2025-01-14 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244130', 'tblTempVendorCDR_20' ) end [2025-01-14 05:26:18] Production.INFO: ProcessCDR(1,14244130,1,1,2) [2025-01-14 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244130', 'tblTempUsageDetail_20' ) start [2025-01-14 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244130', 'tblTempUsageDetail_20' ) end [2025-01-14 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:26:22] Production.INFO: ==19630== Releasing lock... [2025-01-14 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:26:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:27:05 [end_date_ymd] => 2025-01-14 05:27:05 [RateCDR] => 1 ) [2025-01-14 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:27:05' and `end` < '2025-01-14 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:27:18] Production.INFO: count ==82 [2025-01-14 05:27:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:27:05 - End Time 2025-01-14 05:27:05 [2025-01-14 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244135', 'tblTempUsageDetail_20' ) start [2025-01-14 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244135', 'tblTempUsageDetail_20' ) end [2025-01-14 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244135', 'tblTempVendorCDR_20' ) start [2025-01-14 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244135', 'tblTempVendorCDR_20' ) end [2025-01-14 05:27:18] Production.INFO: ProcessCDR(1,14244135,1,1,2) [2025-01-14 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244135', 'tblTempUsageDetail_20' ) start [2025-01-14 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244135', 'tblTempUsageDetail_20' ) end [2025-01-14 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:27:21] Production.INFO: ==19703== Releasing lock... [2025-01-14 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:27:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:28:05 [end_date_ymd] => 2025-01-14 05:28:05 [RateCDR] => 1 ) [2025-01-14 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:28:05' and `end` < '2025-01-14 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:28:18] Production.INFO: count ==82 [2025-01-14 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:28:05 - End Time 2025-01-14 05:28:05 [2025-01-14 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244140', 'tblTempUsageDetail_20' ) start [2025-01-14 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244140', 'tblTempUsageDetail_20' ) end [2025-01-14 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244140', 'tblTempVendorCDR_20' ) start [2025-01-14 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244140', 'tblTempVendorCDR_20' ) end [2025-01-14 05:28:18] Production.INFO: ProcessCDR(1,14244140,1,1,2) [2025-01-14 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244140', 'tblTempUsageDetail_20' ) start [2025-01-14 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244140', 'tblTempUsageDetail_20' ) end [2025-01-14 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:28:21] Production.INFO: ==19784== Releasing lock... [2025-01-14 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:29:06 [end_date_ymd] => 2025-01-14 05:29:06 [RateCDR] => 1 ) [2025-01-14 05:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:29:06' and `end` < '2025-01-14 05:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:29:18] Production.INFO: count ==82 [2025-01-14 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:29:06 - End Time 2025-01-14 05:29:06 [2025-01-14 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244145', 'tblTempUsageDetail_20' ) start [2025-01-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244145', 'tblTempUsageDetail_20' ) end [2025-01-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244145', 'tblTempVendorCDR_20' ) start [2025-01-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244145', 'tblTempVendorCDR_20' ) end [2025-01-14 05:29:18] Production.INFO: ProcessCDR(1,14244145,1,1,2) [2025-01-14 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244145', 'tblTempUsageDetail_20' ) start [2025-01-14 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244145', 'tblTempUsageDetail_20' ) end [2025-01-14 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:29:21] Production.INFO: ==19867== Releasing lock... [2025-01-14 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:30:05 [end_date_ymd] => 2025-01-14 05:30:05 [RateCDR] => 1 ) [2025-01-14 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:30:05' and `end` < '2025-01-14 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:30:19] Production.INFO: count ==76 [2025-01-14 05:30:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:30:05 - End Time 2025-01-14 05:30:05 [2025-01-14 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244150', 'tblTempUsageDetail_20' ) start [2025-01-14 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244150', 'tblTempUsageDetail_20' ) end [2025-01-14 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244150', 'tblTempVendorCDR_20' ) start [2025-01-14 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244150', 'tblTempVendorCDR_20' ) end [2025-01-14 05:30:19] Production.INFO: ProcessCDR(1,14244150,1,1,2) [2025-01-14 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244150', 'tblTempUsageDetail_20' ) start [2025-01-14 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244150', 'tblTempUsageDetail_20' ) end [2025-01-14 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:30:22] Production.INFO: ==19947== Releasing lock... [2025-01-14 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:30:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:31:05 [end_date_ymd] => 2025-01-14 05:31:05 [RateCDR] => 1 ) [2025-01-14 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:31:05' and `end` < '2025-01-14 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:31:19] Production.INFO: count ==66 [2025-01-14 05:31:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:31:05 - End Time 2025-01-14 05:31:05 [2025-01-14 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244156', 'tblTempUsageDetail_20' ) start [2025-01-14 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244156', 'tblTempUsageDetail_20' ) end [2025-01-14 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244156', 'tblTempVendorCDR_20' ) start [2025-01-14 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244156', 'tblTempVendorCDR_20' ) end [2025-01-14 05:31:19] Production.INFO: ProcessCDR(1,14244156,1,1,2) [2025-01-14 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244156', 'tblTempUsageDetail_20' ) start [2025-01-14 05:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244156', 'tblTempUsageDetail_20' ) end [2025-01-14 05:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:31:23] Production.INFO: ==20029== Releasing lock... [2025-01-14 05:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:31:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:32:05 [end_date_ymd] => 2025-01-14 05:32:05 [RateCDR] => 1 ) [2025-01-14 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:32:05' and `end` < '2025-01-14 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:32:17] Production.INFO: count ==66 [2025-01-14 05:32:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:32:05 - End Time 2025-01-14 05:32:05 [2025-01-14 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244161', 'tblTempUsageDetail_20' ) start [2025-01-14 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244161', 'tblTempUsageDetail_20' ) end [2025-01-14 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244161', 'tblTempVendorCDR_20' ) start [2025-01-14 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244161', 'tblTempVendorCDR_20' ) end [2025-01-14 05:32:17] Production.INFO: ProcessCDR(1,14244161,1,1,2) [2025-01-14 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244161', 'tblTempUsageDetail_20' ) start [2025-01-14 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244161', 'tblTempUsageDetail_20' ) end [2025-01-14 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:32:21] Production.INFO: ==20105== Releasing lock... [2025-01-14 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:33:05 [end_date_ymd] => 2025-01-14 05:33:05 [RateCDR] => 1 ) [2025-01-14 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:33:05' and `end` < '2025-01-14 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:33:18] Production.INFO: count ==66 [2025-01-14 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:33:05 - End Time 2025-01-14 05:33:05 [2025-01-14 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244166', 'tblTempUsageDetail_20' ) start [2025-01-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244166', 'tblTempUsageDetail_20' ) end [2025-01-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244166', 'tblTempVendorCDR_20' ) start [2025-01-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244166', 'tblTempVendorCDR_20' ) end [2025-01-14 05:33:18] Production.INFO: ProcessCDR(1,14244166,1,1,2) [2025-01-14 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244166', 'tblTempUsageDetail_20' ) start [2025-01-14 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244166', 'tblTempUsageDetail_20' ) end [2025-01-14 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:33:22] Production.INFO: ==20180== Releasing lock... [2025-01-14 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:33:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:34:05 [end_date_ymd] => 2025-01-14 05:34:05 [RateCDR] => 1 ) [2025-01-14 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:34:05' and `end` < '2025-01-14 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:34:18] Production.INFO: count ==66 [2025-01-14 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:34:05 - End Time 2025-01-14 05:34:05 [2025-01-14 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244171', 'tblTempUsageDetail_20' ) start [2025-01-14 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244171', 'tblTempUsageDetail_20' ) end [2025-01-14 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244171', 'tblTempVendorCDR_20' ) start [2025-01-14 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244171', 'tblTempVendorCDR_20' ) end [2025-01-14 05:34:18] Production.INFO: ProcessCDR(1,14244171,1,1,2) [2025-01-14 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244171', 'tblTempUsageDetail_20' ) start [2025-01-14 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244171', 'tblTempUsageDetail_20' ) end [2025-01-14 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:34:22] Production.INFO: ==20257== Releasing lock... [2025-01-14 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:34:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:35:05 [end_date_ymd] => 2025-01-14 05:35:05 [RateCDR] => 1 ) [2025-01-14 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:35:05' and `end` < '2025-01-14 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:35:17] Production.INFO: count ==66 [2025-01-14 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:35:05 - End Time 2025-01-14 05:35:05 [2025-01-14 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244176', 'tblTempUsageDetail_20' ) start [2025-01-14 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244176', 'tblTempUsageDetail_20' ) end [2025-01-14 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244176', 'tblTempVendorCDR_20' ) start [2025-01-14 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244176', 'tblTempVendorCDR_20' ) end [2025-01-14 05:35:17] Production.INFO: ProcessCDR(1,14244176,1,1,2) [2025-01-14 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244176', 'tblTempUsageDetail_20' ) start [2025-01-14 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244176', 'tblTempUsageDetail_20' ) end [2025-01-14 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:35:21] Production.INFO: ==20332== Releasing lock... [2025-01-14 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:36:05 [end_date_ymd] => 2025-01-14 05:36:05 [RateCDR] => 1 ) [2025-01-14 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:36:05' and `end` < '2025-01-14 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:36:19] Production.INFO: count ==66 [2025-01-14 05:36:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:36:05 - End Time 2025-01-14 05:36:05 [2025-01-14 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244181', 'tblTempUsageDetail_20' ) start [2025-01-14 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244181', 'tblTempUsageDetail_20' ) end [2025-01-14 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244181', 'tblTempVendorCDR_20' ) start [2025-01-14 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244181', 'tblTempVendorCDR_20' ) end [2025-01-14 05:36:19] Production.INFO: ProcessCDR(1,14244181,1,1,2) [2025-01-14 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244181', 'tblTempUsageDetail_20' ) start [2025-01-14 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244181', 'tblTempUsageDetail_20' ) end [2025-01-14 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:36:22] Production.INFO: ==20414== Releasing lock... [2025-01-14 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:36:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:37:05 [end_date_ymd] => 2025-01-14 05:37:05 [RateCDR] => 1 ) [2025-01-14 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:37:05' and `end` < '2025-01-14 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:37:18] Production.INFO: count ==66 [2025-01-14 05:37:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:37:05 - End Time 2025-01-14 05:37:05 [2025-01-14 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244186', 'tblTempUsageDetail_20' ) start [2025-01-14 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244186', 'tblTempUsageDetail_20' ) end [2025-01-14 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244186', 'tblTempVendorCDR_20' ) start [2025-01-14 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244186', 'tblTempVendorCDR_20' ) end [2025-01-14 05:37:18] Production.INFO: ProcessCDR(1,14244186,1,1,2) [2025-01-14 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244186', 'tblTempUsageDetail_20' ) start [2025-01-14 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244186', 'tblTempUsageDetail_20' ) end [2025-01-14 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:37:21] Production.INFO: ==20529== Releasing lock... [2025-01-14 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:38:05 [end_date_ymd] => 2025-01-14 05:38:05 [RateCDR] => 1 ) [2025-01-14 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:38:05' and `end` < '2025-01-14 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:38:18] Production.INFO: count ==66 [2025-01-14 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:38:05 - End Time 2025-01-14 05:38:05 [2025-01-14 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244191', 'tblTempUsageDetail_20' ) start [2025-01-14 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244191', 'tblTempUsageDetail_20' ) end [2025-01-14 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244191', 'tblTempVendorCDR_20' ) start [2025-01-14 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244191', 'tblTempVendorCDR_20' ) end [2025-01-14 05:38:18] Production.INFO: ProcessCDR(1,14244191,1,1,2) [2025-01-14 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244191', 'tblTempUsageDetail_20' ) start [2025-01-14 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244191', 'tblTempUsageDetail_20' ) end [2025-01-14 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:38:21] Production.INFO: ==20608== Releasing lock... [2025-01-14 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:39:04 [end_date_ymd] => 2025-01-14 05:39:04 [RateCDR] => 1 ) [2025-01-14 05:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:39:04' and `end` < '2025-01-14 05:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:39:18] Production.INFO: count ==66 [2025-01-14 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:39:04 - End Time 2025-01-14 05:39:04 [2025-01-14 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244196', 'tblTempUsageDetail_20' ) start [2025-01-14 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244196', 'tblTempUsageDetail_20' ) end [2025-01-14 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244196', 'tblTempVendorCDR_20' ) start [2025-01-14 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244196', 'tblTempVendorCDR_20' ) end [2025-01-14 05:39:18] Production.INFO: ProcessCDR(1,14244196,1,1,2) [2025-01-14 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244196', 'tblTempUsageDetail_20' ) start [2025-01-14 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244196', 'tblTempUsageDetail_20' ) end [2025-01-14 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:39:21] Production.INFO: ==20683== Releasing lock... [2025-01-14 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:40:06 [end_date_ymd] => 2025-01-14 05:40:06 [RateCDR] => 1 ) [2025-01-14 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:40:06' and `end` < '2025-01-14 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:40:18] Production.INFO: count ==61 [2025-01-14 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:40:06 - End Time 2025-01-14 05:40:06 [2025-01-14 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244200', 'tblTempUsageDetail_20' ) start [2025-01-14 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244200', 'tblTempUsageDetail_20' ) end [2025-01-14 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244200', 'tblTempVendorCDR_20' ) start [2025-01-14 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244200', 'tblTempVendorCDR_20' ) end [2025-01-14 05:40:18] Production.INFO: ProcessCDR(1,14244200,1,1,2) [2025-01-14 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244200', 'tblTempUsageDetail_20' ) start [2025-01-14 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244200', 'tblTempUsageDetail_20' ) end [2025-01-14 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:40:21] Production.INFO: ==20763== Releasing lock... [2025-01-14 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:41:04 [end_date_ymd] => 2025-01-14 05:41:04 [RateCDR] => 1 ) [2025-01-14 05:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:41:04' and `end` < '2025-01-14 05:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:41:19] Production.INFO: count ==61 [2025-01-14 05:41:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:41:04 - End Time 2025-01-14 05:41:04 [2025-01-14 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244207', 'tblTempUsageDetail_20' ) start [2025-01-14 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244207', 'tblTempUsageDetail_20' ) end [2025-01-14 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244207', 'tblTempVendorCDR_20' ) start [2025-01-14 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244207', 'tblTempVendorCDR_20' ) end [2025-01-14 05:41:19] Production.INFO: ProcessCDR(1,14244207,1,1,2) [2025-01-14 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244207', 'tblTempUsageDetail_20' ) start [2025-01-14 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244207', 'tblTempUsageDetail_20' ) end [2025-01-14 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:41:22] Production.INFO: ==20840== Releasing lock... [2025-01-14 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:41:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:42:05 [end_date_ymd] => 2025-01-14 05:42:05 [RateCDR] => 1 ) [2025-01-14 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:42:05' and `end` < '2025-01-14 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:42:18] Production.INFO: count ==61 [2025-01-14 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:42:05 - End Time 2025-01-14 05:42:05 [2025-01-14 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244212', 'tblTempUsageDetail_20' ) start [2025-01-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244212', 'tblTempUsageDetail_20' ) end [2025-01-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244212', 'tblTempVendorCDR_20' ) start [2025-01-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244212', 'tblTempVendorCDR_20' ) end [2025-01-14 05:42:18] Production.INFO: ProcessCDR(1,14244212,1,1,2) [2025-01-14 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244212', 'tblTempUsageDetail_20' ) start [2025-01-14 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244212', 'tblTempUsageDetail_20' ) end [2025-01-14 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:42:22] Production.INFO: ==20921== Releasing lock... [2025-01-14 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:42:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:43:06 [end_date_ymd] => 2025-01-14 05:43:06 [RateCDR] => 1 ) [2025-01-14 05:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:43:06' and `end` < '2025-01-14 05:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:43:18] Production.INFO: count ==61 [2025-01-14 05:43:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:43:06 - End Time 2025-01-14 05:43:06 [2025-01-14 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244217', 'tblTempUsageDetail_20' ) start [2025-01-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244217', 'tblTempUsageDetail_20' ) end [2025-01-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244217', 'tblTempVendorCDR_20' ) start [2025-01-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244217', 'tblTempVendorCDR_20' ) end [2025-01-14 05:43:18] Production.INFO: ProcessCDR(1,14244217,1,1,2) [2025-01-14 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244217', 'tblTempUsageDetail_20' ) start [2025-01-14 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244217', 'tblTempUsageDetail_20' ) end [2025-01-14 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:43:22] Production.INFO: ==20996== Releasing lock... [2025-01-14 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:43:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:44:05 [end_date_ymd] => 2025-01-14 05:44:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 02:44:05' and `end` < '2025-01-14 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:44:18] Production.INFO: count ==61 [2025-01-14 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:44:05 - End Time 2025-01-14 05:44:05 [2025-01-14 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244222', 'tblTempUsageDetail_20' ) start [2025-01-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244222', 'tblTempUsageDetail_20' ) end [2025-01-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244222', 'tblTempVendorCDR_20' ) start [2025-01-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244222', 'tblTempVendorCDR_20' ) end [2025-01-14 05:44:18] Production.INFO: ProcessCDR(1,14244222,1,1,2) [2025-01-14 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244222', 'tblTempUsageDetail_20' ) start [2025-01-14 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244222', 'tblTempUsageDetail_20' ) end [2025-01-14 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:44:22] Production.INFO: ==21069== Releasing lock... [2025-01-14 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:44:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:45:06 [end_date_ymd] => 2025-01-14 05:45:06 [RateCDR] => 1 ) [2025-01-14 05:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:45:06' and `end` < '2025-01-14 05:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:45:18] Production.INFO: count ==62 [2025-01-14 05:45:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:45:06 - End Time 2025-01-14 05:45:06 [2025-01-14 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244227', 'tblTempUsageDetail_20' ) start [2025-01-14 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244227', 'tblTempUsageDetail_20' ) end [2025-01-14 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244227', 'tblTempVendorCDR_20' ) start [2025-01-14 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244227', 'tblTempVendorCDR_20' ) end [2025-01-14 05:45:18] Production.INFO: ProcessCDR(1,14244227,1,1,2) [2025-01-14 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244227', 'tblTempUsageDetail_20' ) start [2025-01-14 05:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244227', 'tblTempUsageDetail_20' ) end [2025-01-14 05:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:45:24] Production.INFO: ==21146== Releasing lock... [2025-01-14 05:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:45:24] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:46:06 [end_date_ymd] => 2025-01-14 05:46:06 [RateCDR] => 1 ) [2025-01-14 05:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:46:06' and `end` < '2025-01-14 05:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:46:19] Production.INFO: count ==62 [2025-01-14 05:46:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:46:06 - End Time 2025-01-14 05:46:06 [2025-01-14 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244232', 'tblTempUsageDetail_20' ) start [2025-01-14 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244232', 'tblTempUsageDetail_20' ) end [2025-01-14 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244232', 'tblTempVendorCDR_20' ) start [2025-01-14 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244232', 'tblTempVendorCDR_20' ) end [2025-01-14 05:46:19] Production.INFO: ProcessCDR(1,14244232,1,1,2) [2025-01-14 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244232', 'tblTempUsageDetail_20' ) start [2025-01-14 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244232', 'tblTempUsageDetail_20' ) end [2025-01-14 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:46:22] Production.INFO: ==21223== Releasing lock... [2025-01-14 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:46:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:47:05 [end_date_ymd] => 2025-01-14 05:47:05 [RateCDR] => 1 ) [2025-01-14 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:47:05' and `end` < '2025-01-14 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:47:18] Production.INFO: count ==62 [2025-01-14 05:47:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:47:05 - End Time 2025-01-14 05:47:05 [2025-01-14 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244237', 'tblTempUsageDetail_20' ) start [2025-01-14 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244237', 'tblTempUsageDetail_20' ) end [2025-01-14 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244237', 'tblTempVendorCDR_20' ) start [2025-01-14 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244237', 'tblTempVendorCDR_20' ) end [2025-01-14 05:47:18] Production.INFO: ProcessCDR(1,14244237,1,1,2) [2025-01-14 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244237', 'tblTempUsageDetail_20' ) start [2025-01-14 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244237', 'tblTempUsageDetail_20' ) end [2025-01-14 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:47:21] Production.INFO: ==21298== Releasing lock... [2025-01-14 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:48:05 [end_date_ymd] => 2025-01-14 05:48:05 [RateCDR] => 1 ) [2025-01-14 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:48:05' and `end` < '2025-01-14 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:48:19] Production.INFO: count ==60 [2025-01-14 05:48:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:48:05 - End Time 2025-01-14 05:48:05 [2025-01-14 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244242', 'tblTempUsageDetail_20' ) start [2025-01-14 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244242', 'tblTempUsageDetail_20' ) end [2025-01-14 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244242', 'tblTempVendorCDR_20' ) start [2025-01-14 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244242', 'tblTempVendorCDR_20' ) end [2025-01-14 05:48:19] Production.INFO: ProcessCDR(1,14244242,1,1,2) [2025-01-14 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244242', 'tblTempUsageDetail_20' ) start [2025-01-14 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244242', 'tblTempUsageDetail_20' ) end [2025-01-14 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:48:22] Production.INFO: ==21376== Releasing lock... [2025-01-14 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:48:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:49:05 [end_date_ymd] => 2025-01-14 05:49:05 [RateCDR] => 1 ) [2025-01-14 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:49:05' and `end` < '2025-01-14 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:49:18] Production.INFO: count ==60 [2025-01-14 05:49:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:49:05 - End Time 2025-01-14 05:49:05 [2025-01-14 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244247', 'tblTempUsageDetail_20' ) start [2025-01-14 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244247', 'tblTempUsageDetail_20' ) end [2025-01-14 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244247', 'tblTempVendorCDR_20' ) start [2025-01-14 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244247', 'tblTempVendorCDR_20' ) end [2025-01-14 05:49:18] Production.INFO: ProcessCDR(1,14244247,1,1,2) [2025-01-14 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244247', 'tblTempUsageDetail_20' ) start [2025-01-14 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244247', 'tblTempUsageDetail_20' ) end [2025-01-14 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:49:22] Production.INFO: ==21452== Releasing lock... [2025-01-14 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:49:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:50:06 [end_date_ymd] => 2025-01-14 05:50:06 [RateCDR] => 1 ) [2025-01-14 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:50:06' and `end` < '2025-01-14 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:50:18] Production.INFO: count ==60 [2025-01-14 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:50:06 - End Time 2025-01-14 05:50:06 [2025-01-14 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244252', 'tblTempUsageDetail_20' ) start [2025-01-14 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244252', 'tblTempUsageDetail_20' ) end [2025-01-14 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244252', 'tblTempVendorCDR_20' ) start [2025-01-14 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244252', 'tblTempVendorCDR_20' ) end [2025-01-14 05:50:18] Production.INFO: ProcessCDR(1,14244252,1,1,2) [2025-01-14 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244252', 'tblTempUsageDetail_20' ) start [2025-01-14 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244252', 'tblTempUsageDetail_20' ) end [2025-01-14 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:50:22] Production.INFO: ==21531== Releasing lock... [2025-01-14 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:50:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:51:06 [end_date_ymd] => 2025-01-14 05:51:06 [RateCDR] => 1 ) [2025-01-14 05:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:51:06' and `end` < '2025-01-14 05:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:51:19] Production.INFO: count ==60 [2025-01-14 05:51:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:51:06 - End Time 2025-01-14 05:51:06 [2025-01-14 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244258', 'tblTempUsageDetail_20' ) start [2025-01-14 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244258', 'tblTempUsageDetail_20' ) end [2025-01-14 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244258', 'tblTempVendorCDR_20' ) start [2025-01-14 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244258', 'tblTempVendorCDR_20' ) end [2025-01-14 05:51:19] Production.INFO: ProcessCDR(1,14244258,1,1,2) [2025-01-14 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244258', 'tblTempUsageDetail_20' ) start [2025-01-14 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244258', 'tblTempUsageDetail_20' ) end [2025-01-14 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:51:22] Production.INFO: ==21609== Releasing lock... [2025-01-14 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:51:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:52:06 [end_date_ymd] => 2025-01-14 05:52:06 [RateCDR] => 1 ) [2025-01-14 05:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:52:06' and `end` < '2025-01-14 05:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:52:19] Production.INFO: count ==60 [2025-01-14 05:52:19] Production.ERROR: pbx CDR StartTime 2025-01-14 02:52:06 - End Time 2025-01-14 05:52:06 [2025-01-14 05:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244263', 'tblTempUsageDetail_20' ) start [2025-01-14 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244263', 'tblTempUsageDetail_20' ) end [2025-01-14 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244263', 'tblTempVendorCDR_20' ) start [2025-01-14 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244263', 'tblTempVendorCDR_20' ) end [2025-01-14 05:52:19] Production.INFO: ProcessCDR(1,14244263,1,1,2) [2025-01-14 05:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244263', 'tblTempUsageDetail_20' ) start [2025-01-14 05:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244263', 'tblTempUsageDetail_20' ) end [2025-01-14 05:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:52:23] Production.INFO: ==21723== Releasing lock... [2025-01-14 05:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:52:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:53:05 [end_date_ymd] => 2025-01-14 05:53:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 02:53:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 05:53:17] Production.INFO: count ==60 [2025-01-14 05:53:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:53:05 - End Time 2025-01-14 05:53:05 [2025-01-14 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244268', 'tblTempUsageDetail_20' ) start [2025-01-14 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244268', 'tblTempUsageDetail_20' ) end [2025-01-14 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244268', 'tblTempVendorCDR_20' ) start [2025-01-14 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244268', 'tblTempVendorCDR_20' ) end [2025-01-14 05:53:17] Production.INFO: ProcessCDR(1,14244268,1,1,2) [2025-01-14 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244268', 'tblTempUsageDetail_20' ) start [2025-01-14 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244268', 'tblTempUsageDetail_20' ) end [2025-01-14 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:53:20] Production.INFO: ==21797== Releasing lock... [2025-01-14 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:53:20] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:54:05 [end_date_ymd] => 2025-01-14 05:54:05 [RateCDR] => 1 ) [2025-01-14 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:54:05' and `end` < '2025-01-14 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:54:17] Production.INFO: count ==60 [2025-01-14 05:54:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:54:05 - End Time 2025-01-14 05:54:05 [2025-01-14 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244273', 'tblTempUsageDetail_20' ) start [2025-01-14 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244273', 'tblTempUsageDetail_20' ) end [2025-01-14 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244273', 'tblTempVendorCDR_20' ) start [2025-01-14 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244273', 'tblTempVendorCDR_20' ) end [2025-01-14 05:54:17] Production.INFO: ProcessCDR(1,14244273,1,1,2) [2025-01-14 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244273', 'tblTempUsageDetail_20' ) start [2025-01-14 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244273', 'tblTempUsageDetail_20' ) end [2025-01-14 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:54:20] Production.INFO: ==21875== Releasing lock... [2025-01-14 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:54:20] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:55:05 [end_date_ymd] => 2025-01-14 05:55:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 02:55:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 05:55:17] Production.INFO: count ==60 [2025-01-14 05:55:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:55:05 - End Time 2025-01-14 05:55:05 [2025-01-14 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244278', 'tblTempUsageDetail_20' ) start [2025-01-14 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244278', 'tblTempUsageDetail_20' ) end [2025-01-14 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244278', 'tblTempVendorCDR_20' ) start [2025-01-14 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244278', 'tblTempVendorCDR_20' ) end [2025-01-14 05:55:17] Production.INFO: ProcessCDR(1,14244278,1,1,2) [2025-01-14 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244278', 'tblTempUsageDetail_20' ) start [2025-01-14 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244278', 'tblTempUsageDetail_20' ) end [2025-01-14 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:55:21] Production.INFO: ==21954== Releasing lock... [2025-01-14 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:55:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:56:05 [end_date_ymd] => 2025-01-14 05:56:05 [RateCDR] => 1 ) [2025-01-14 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:56:05' and `end` < '2025-01-14 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:56:18] Production.INFO: count ==60 [2025-01-14 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:56:05 - End Time 2025-01-14 05:56:05 [2025-01-14 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244283', 'tblTempUsageDetail_20' ) start [2025-01-14 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244283', 'tblTempUsageDetail_20' ) end [2025-01-14 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244283', 'tblTempVendorCDR_20' ) start [2025-01-14 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244283', 'tblTempVendorCDR_20' ) end [2025-01-14 05:56:18] Production.INFO: ProcessCDR(1,14244283,1,1,2) [2025-01-14 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244283', 'tblTempUsageDetail_20' ) start [2025-01-14 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244283', 'tblTempUsageDetail_20' ) end [2025-01-14 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:56:22] Production.INFO: ==22033== Releasing lock... [2025-01-14 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:56:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:57:06 [end_date_ymd] => 2025-01-14 05:57:06 [RateCDR] => 1 ) [2025-01-14 05:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:57:06' and `end` < '2025-01-14 05:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:57:18] Production.INFO: count ==60 [2025-01-14 05:57:18] Production.ERROR: pbx CDR StartTime 2025-01-14 02:57:06 - End Time 2025-01-14 05:57:06 [2025-01-14 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244288', 'tblTempUsageDetail_20' ) start [2025-01-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244288', 'tblTempUsageDetail_20' ) end [2025-01-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244288', 'tblTempVendorCDR_20' ) start [2025-01-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244288', 'tblTempVendorCDR_20' ) end [2025-01-14 05:57:18] Production.INFO: ProcessCDR(1,14244288,1,1,2) [2025-01-14 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244288', 'tblTempUsageDetail_20' ) start [2025-01-14 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244288', 'tblTempUsageDetail_20' ) end [2025-01-14 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:57:22] Production.INFO: ==22113== Releasing lock... [2025-01-14 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:57:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:58:05 [end_date_ymd] => 2025-01-14 05:58:05 [RateCDR] => 1 ) [2025-01-14 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:58:05' and `end` < '2025-01-14 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:58:17] Production.INFO: count ==60 [2025-01-14 05:58:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:58:05 - End Time 2025-01-14 05:58:05 [2025-01-14 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244293', 'tblTempUsageDetail_20' ) start [2025-01-14 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244293', 'tblTempUsageDetail_20' ) end [2025-01-14 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244293', 'tblTempVendorCDR_20' ) start [2025-01-14 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244293', 'tblTempVendorCDR_20' ) end [2025-01-14 05:58:17] Production.INFO: ProcessCDR(1,14244293,1,1,2) [2025-01-14 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244293', 'tblTempUsageDetail_20' ) start [2025-01-14 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244293', 'tblTempUsageDetail_20' ) end [2025-01-14 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:58:21] Production.INFO: ==22192== Releasing lock... [2025-01-14 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 02:59:05 [end_date_ymd] => 2025-01-14 05:59:05 [RateCDR] => 1 ) [2025-01-14 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 02:59:05' and `end` < '2025-01-14 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 05:59:17] Production.INFO: count ==60 [2025-01-14 05:59:17] Production.ERROR: pbx CDR StartTime 2025-01-14 02:59:05 - End Time 2025-01-14 05:59:05 [2025-01-14 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244298', 'tblTempUsageDetail_20' ) start [2025-01-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244298', 'tblTempUsageDetail_20' ) end [2025-01-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244298', 'tblTempVendorCDR_20' ) start [2025-01-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244298', 'tblTempVendorCDR_20' ) end [2025-01-14 05:59:17] Production.INFO: ProcessCDR(1,14244298,1,1,2) [2025-01-14 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244298', 'tblTempUsageDetail_20' ) start [2025-01-14 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244298', 'tblTempUsageDetail_20' ) end [2025-01-14 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 05:59:21] Production.INFO: ==22266== Releasing lock... [2025-01-14 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 05:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:00:06 [end_date_ymd] => 2025-01-14 06:00:06 [RateCDR] => 1 ) [2025-01-14 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:00:06' and `end` < '2025-01-14 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:00:18] Production.INFO: count ==60 [2025-01-14 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:00:06 - End Time 2025-01-14 06:00:06 [2025-01-14 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244304', 'tblTempUsageDetail_20' ) start [2025-01-14 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244304', 'tblTempUsageDetail_20' ) end [2025-01-14 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244304', 'tblTempVendorCDR_20' ) start [2025-01-14 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244304', 'tblTempVendorCDR_20' ) end [2025-01-14 06:00:18] Production.INFO: ProcessCDR(1,14244304,1,1,2) [2025-01-14 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244304', 'tblTempUsageDetail_20' ) start [2025-01-14 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244304', 'tblTempUsageDetail_20' ) end [2025-01-14 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:00:21] Production.INFO: ==22342== Releasing lock... [2025-01-14 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:01:05 [end_date_ymd] => 2025-01-14 06:01:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:01:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:01:17] Production.INFO: count ==60 [2025-01-14 06:01:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:01:05 - End Time 2025-01-14 06:01:05 [2025-01-14 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244309', 'tblTempUsageDetail_20' ) start [2025-01-14 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244309', 'tblTempUsageDetail_20' ) end [2025-01-14 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244309', 'tblTempVendorCDR_20' ) start [2025-01-14 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244309', 'tblTempVendorCDR_20' ) end [2025-01-14 06:01:17] Production.INFO: ProcessCDR(1,14244309,1,1,2) [2025-01-14 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244309', 'tblTempUsageDetail_20' ) start [2025-01-14 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244309', 'tblTempUsageDetail_20' ) end [2025-01-14 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:01:20] Production.INFO: ==22435== Releasing lock... [2025-01-14 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:01:20] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:02:05 [end_date_ymd] => 2025-01-14 06:02:05 [RateCDR] => 1 ) [2025-01-14 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:02:05' and `end` < '2025-01-14 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:02:18] Production.INFO: count ==60 [2025-01-14 06:02:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:02:05 - End Time 2025-01-14 06:02:05 [2025-01-14 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244314', 'tblTempUsageDetail_20' ) start [2025-01-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244314', 'tblTempUsageDetail_20' ) end [2025-01-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244314', 'tblTempVendorCDR_20' ) start [2025-01-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244314', 'tblTempVendorCDR_20' ) end [2025-01-14 06:02:18] Production.INFO: ProcessCDR(1,14244314,1,1,2) [2025-01-14 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244314', 'tblTempUsageDetail_20' ) start [2025-01-14 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244314', 'tblTempUsageDetail_20' ) end [2025-01-14 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:02:21] Production.INFO: ==22509== Releasing lock... [2025-01-14 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:02:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:03:05 [end_date_ymd] => 2025-01-14 06:03:05 [RateCDR] => 1 ) [2025-01-14 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:03:05' and `end` < '2025-01-14 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:03:18] Production.INFO: count ==60 [2025-01-14 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:03:05 - End Time 2025-01-14 06:03:05 [2025-01-14 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244319', 'tblTempUsageDetail_20' ) start [2025-01-14 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244319', 'tblTempUsageDetail_20' ) end [2025-01-14 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244319', 'tblTempVendorCDR_20' ) start [2025-01-14 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244319', 'tblTempVendorCDR_20' ) end [2025-01-14 06:03:18] Production.INFO: ProcessCDR(1,14244319,1,1,2) [2025-01-14 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244319', 'tblTempUsageDetail_20' ) start [2025-01-14 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244319', 'tblTempUsageDetail_20' ) end [2025-01-14 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:03:21] Production.INFO: ==22587== Releasing lock... [2025-01-14 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:03:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:04:05 [end_date_ymd] => 2025-01-14 06:04:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:04:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:04:18] Production.INFO: count ==60 [2025-01-14 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:04:05 - End Time 2025-01-14 06:04:05 [2025-01-14 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244324', 'tblTempUsageDetail_20' ) start [2025-01-14 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244324', 'tblTempUsageDetail_20' ) end [2025-01-14 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244324', 'tblTempVendorCDR_20' ) start [2025-01-14 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244324', 'tblTempVendorCDR_20' ) end [2025-01-14 06:04:18] Production.INFO: ProcessCDR(1,14244324,1,1,2) [2025-01-14 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244324', 'tblTempUsageDetail_20' ) start [2025-01-14 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244324', 'tblTempUsageDetail_20' ) end [2025-01-14 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:04:21] Production.INFO: ==22661== Releasing lock... [2025-01-14 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:05:05 [end_date_ymd] => 2025-01-14 06:05:05 [RateCDR] => 1 ) [2025-01-14 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:05:05' and `end` < '2025-01-14 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:05:18] Production.INFO: count ==60 [2025-01-14 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:05:05 - End Time 2025-01-14 06:05:05 [2025-01-14 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244329', 'tblTempUsageDetail_20' ) start [2025-01-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244329', 'tblTempUsageDetail_20' ) end [2025-01-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244329', 'tblTempVendorCDR_20' ) start [2025-01-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244329', 'tblTempVendorCDR_20' ) end [2025-01-14 06:05:18] Production.INFO: ProcessCDR(1,14244329,1,1,2) [2025-01-14 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244329', 'tblTempUsageDetail_20' ) start [2025-01-14 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244329', 'tblTempUsageDetail_20' ) end [2025-01-14 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:05:21] Production.INFO: ==22741== Releasing lock... [2025-01-14 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:06:05 [end_date_ymd] => 2025-01-14 06:06:05 [RateCDR] => 1 ) [2025-01-14 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:06:05' and `end` < '2025-01-14 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:06:18] Production.INFO: count ==60 [2025-01-14 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:06:05 - End Time 2025-01-14 06:06:05 [2025-01-14 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244334', 'tblTempUsageDetail_20' ) start [2025-01-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244334', 'tblTempUsageDetail_20' ) end [2025-01-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244334', 'tblTempVendorCDR_20' ) start [2025-01-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244334', 'tblTempVendorCDR_20' ) end [2025-01-14 06:06:18] Production.INFO: ProcessCDR(1,14244334,1,1,2) [2025-01-14 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244334', 'tblTempUsageDetail_20' ) start [2025-01-14 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244334', 'tblTempUsageDetail_20' ) end [2025-01-14 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:06:22] Production.INFO: ==22824== Releasing lock... [2025-01-14 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:07:04 [end_date_ymd] => 2025-01-14 06:07:04 [RateCDR] => 1 ) [2025-01-14 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:07:04' and `end` < '2025-01-14 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:07:17] Production.INFO: count ==60 [2025-01-14 06:07:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:07:04 - End Time 2025-01-14 06:07:04 [2025-01-14 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244335', 'tblTempUsageDetail_20' ) start [2025-01-14 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244335', 'tblTempUsageDetail_20' ) end [2025-01-14 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244335', 'tblTempVendorCDR_20' ) start [2025-01-14 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244335', 'tblTempVendorCDR_20' ) end [2025-01-14 06:07:17] Production.INFO: ProcessCDR(1,14244335,1,1,2) [2025-01-14 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244335', 'tblTempUsageDetail_20' ) start [2025-01-14 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244335', 'tblTempUsageDetail_20' ) end [2025-01-14 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:07:21] Production.INFO: ==22910== Releasing lock... [2025-01-14 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:08:06 [end_date_ymd] => 2025-01-14 06:08:06 [RateCDR] => 1 ) [2025-01-14 06:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:08:06' and `end` < '2025-01-14 06:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:08:19] Production.INFO: count ==60 [2025-01-14 06:08:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:08:06 - End Time 2025-01-14 06:08:06 [2025-01-14 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244344', 'tblTempUsageDetail_20' ) start [2025-01-14 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244344', 'tblTempUsageDetail_20' ) end [2025-01-14 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244344', 'tblTempVendorCDR_20' ) start [2025-01-14 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244344', 'tblTempVendorCDR_20' ) end [2025-01-14 06:08:19] Production.INFO: ProcessCDR(1,14244344,1,1,2) [2025-01-14 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244344', 'tblTempUsageDetail_20' ) start [2025-01-14 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244344', 'tblTempUsageDetail_20' ) end [2025-01-14 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:08:22] Production.INFO: ==23037== Releasing lock... [2025-01-14 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:08:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:09:05 [end_date_ymd] => 2025-01-14 06:09:05 [RateCDR] => 1 ) [2025-01-14 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:09:05' and `end` < '2025-01-14 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:09:18] Production.INFO: count ==60 [2025-01-14 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:09:05 - End Time 2025-01-14 06:09:05 [2025-01-14 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244349', 'tblTempUsageDetail_20' ) start [2025-01-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244349', 'tblTempUsageDetail_20' ) end [2025-01-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244349', 'tblTempVendorCDR_20' ) start [2025-01-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244349', 'tblTempVendorCDR_20' ) end [2025-01-14 06:09:18] Production.INFO: ProcessCDR(1,14244349,1,1,2) [2025-01-14 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244349', 'tblTempUsageDetail_20' ) start [2025-01-14 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244349', 'tblTempUsageDetail_20' ) end [2025-01-14 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:09:22] Production.INFO: ==23125== Releasing lock... [2025-01-14 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:09:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:10:06 [end_date_ymd] => 2025-01-14 06:10:06 [RateCDR] => 1 ) [2025-01-14 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:10:06' and `end` < '2025-01-14 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:10:19] Production.INFO: count ==60 [2025-01-14 06:10:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:10:06 - End Time 2025-01-14 06:10:06 [2025-01-14 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244355', 'tblTempUsageDetail_20' ) start [2025-01-14 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244355', 'tblTempUsageDetail_20' ) end [2025-01-14 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244355', 'tblTempVendorCDR_20' ) start [2025-01-14 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244355', 'tblTempVendorCDR_20' ) end [2025-01-14 06:10:19] Production.INFO: ProcessCDR(1,14244355,1,1,2) [2025-01-14 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244355', 'tblTempUsageDetail_20' ) start [2025-01-14 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244355', 'tblTempUsageDetail_20' ) end [2025-01-14 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:10:23] Production.INFO: ==23213== Releasing lock... [2025-01-14 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:10:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:11:05 [end_date_ymd] => 2025-01-14 06:11:05 [RateCDR] => 1 ) [2025-01-14 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:11:05' and `end` < '2025-01-14 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:11:18] Production.INFO: count ==60 [2025-01-14 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:11:05 - End Time 2025-01-14 06:11:05 [2025-01-14 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244360', 'tblTempUsageDetail_20' ) start [2025-01-14 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244360', 'tblTempUsageDetail_20' ) end [2025-01-14 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244360', 'tblTempVendorCDR_20' ) start [2025-01-14 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244360', 'tblTempVendorCDR_20' ) end [2025-01-14 06:11:18] Production.INFO: ProcessCDR(1,14244360,1,1,2) [2025-01-14 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244360', 'tblTempUsageDetail_20' ) start [2025-01-14 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244360', 'tblTempUsageDetail_20' ) end [2025-01-14 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:11:21] Production.INFO: ==23301== Releasing lock... [2025-01-14 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:12:05 [end_date_ymd] => 2025-01-14 06:12:05 [RateCDR] => 1 ) [2025-01-14 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:12:05' and `end` < '2025-01-14 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:12:18] Production.INFO: count ==60 [2025-01-14 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:12:05 - End Time 2025-01-14 06:12:05 [2025-01-14 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244365', 'tblTempUsageDetail_20' ) start [2025-01-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244365', 'tblTempUsageDetail_20' ) end [2025-01-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244365', 'tblTempVendorCDR_20' ) start [2025-01-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244365', 'tblTempVendorCDR_20' ) end [2025-01-14 06:12:18] Production.INFO: ProcessCDR(1,14244365,1,1,2) [2025-01-14 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244365', 'tblTempUsageDetail_20' ) start [2025-01-14 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244365', 'tblTempUsageDetail_20' ) end [2025-01-14 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:12:22] Production.INFO: ==23385== Releasing lock... [2025-01-14 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:12:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:13:04 [end_date_ymd] => 2025-01-14 06:13:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:13:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:13:17] Production.INFO: count ==60 [2025-01-14 06:13:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:13:04 - End Time 2025-01-14 06:13:04 [2025-01-14 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244369', 'tblTempUsageDetail_20' ) start [2025-01-14 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244369', 'tblTempUsageDetail_20' ) end [2025-01-14 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244369', 'tblTempVendorCDR_20' ) start [2025-01-14 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244369', 'tblTempVendorCDR_20' ) end [2025-01-14 06:13:17] Production.INFO: ProcessCDR(1,14244369,1,1,2) [2025-01-14 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244369', 'tblTempUsageDetail_20' ) start [2025-01-14 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244369', 'tblTempUsageDetail_20' ) end [2025-01-14 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:13:20] Production.INFO: ==23469== Releasing lock... [2025-01-14 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:13:20] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:14:05 [end_date_ymd] => 2025-01-14 06:14:05 [RateCDR] => 1 ) [2025-01-14 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:14:05' and `end` < '2025-01-14 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:14:18] Production.INFO: count ==60 [2025-01-14 06:14:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:14:05 - End Time 2025-01-14 06:14:05 [2025-01-14 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244375', 'tblTempUsageDetail_20' ) start [2025-01-14 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244375', 'tblTempUsageDetail_20' ) end [2025-01-14 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244375', 'tblTempVendorCDR_20' ) start [2025-01-14 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244375', 'tblTempVendorCDR_20' ) end [2025-01-14 06:14:19] Production.INFO: ProcessCDR(1,14244375,1,1,2) [2025-01-14 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244375', 'tblTempUsageDetail_20' ) start [2025-01-14 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244375', 'tblTempUsageDetail_20' ) end [2025-01-14 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:14:22] Production.INFO: ==23554== Releasing lock... [2025-01-14 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:14:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:15:05 [end_date_ymd] => 2025-01-14 06:15:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:15:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:15:18] Production.INFO: count ==60 [2025-01-14 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:15:05 - End Time 2025-01-14 06:15:05 [2025-01-14 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244380', 'tblTempUsageDetail_20' ) start [2025-01-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244380', 'tblTempUsageDetail_20' ) end [2025-01-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244380', 'tblTempVendorCDR_20' ) start [2025-01-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244380', 'tblTempVendorCDR_20' ) end [2025-01-14 06:15:18] Production.INFO: ProcessCDR(1,14244380,1,1,2) [2025-01-14 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244380', 'tblTempUsageDetail_20' ) start [2025-01-14 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244380', 'tblTempUsageDetail_20' ) end [2025-01-14 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:15:21] Production.INFO: ==23642== Releasing lock... [2025-01-14 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:16:05 [end_date_ymd] => 2025-01-14 06:16:05 [RateCDR] => 1 ) [2025-01-14 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:16:05' and `end` < '2025-01-14 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:16:19] Production.INFO: count ==60 [2025-01-14 06:16:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:16:05 - End Time 2025-01-14 06:16:05 [2025-01-14 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244385', 'tblTempUsageDetail_20' ) start [2025-01-14 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244385', 'tblTempUsageDetail_20' ) end [2025-01-14 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244385', 'tblTempVendorCDR_20' ) start [2025-01-14 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244385', 'tblTempVendorCDR_20' ) end [2025-01-14 06:16:19] Production.INFO: ProcessCDR(1,14244385,1,1,2) [2025-01-14 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244385', 'tblTempUsageDetail_20' ) start [2025-01-14 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244385', 'tblTempUsageDetail_20' ) end [2025-01-14 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:16:22] Production.INFO: ==23726== Releasing lock... [2025-01-14 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:16:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:17:05 [end_date_ymd] => 2025-01-14 06:17:05 [RateCDR] => 1 ) [2025-01-14 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:17:05' and `end` < '2025-01-14 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:17:17] Production.INFO: count ==60 [2025-01-14 06:17:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:17:05 - End Time 2025-01-14 06:17:05 [2025-01-14 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244390', 'tblTempUsageDetail_20' ) start [2025-01-14 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244390', 'tblTempUsageDetail_20' ) end [2025-01-14 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244390', 'tblTempVendorCDR_20' ) start [2025-01-14 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244390', 'tblTempVendorCDR_20' ) end [2025-01-14 06:17:17] Production.INFO: ProcessCDR(1,14244390,1,1,2) [2025-01-14 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244390', 'tblTempUsageDetail_20' ) start [2025-01-14 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244390', 'tblTempUsageDetail_20' ) end [2025-01-14 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:17:21] Production.INFO: ==23807== Releasing lock... [2025-01-14 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:18:05 [end_date_ymd] => 2025-01-14 06:18:05 [RateCDR] => 1 ) [2025-01-14 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:18:05' and `end` < '2025-01-14 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:18:18] Production.INFO: count ==60 [2025-01-14 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:18:05 - End Time 2025-01-14 06:18:05 [2025-01-14 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244395', 'tblTempUsageDetail_20' ) start [2025-01-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244395', 'tblTempUsageDetail_20' ) end [2025-01-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244395', 'tblTempVendorCDR_20' ) start [2025-01-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244395', 'tblTempVendorCDR_20' ) end [2025-01-14 06:18:18] Production.INFO: ProcessCDR(1,14244395,1,1,2) [2025-01-14 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244395', 'tblTempUsageDetail_20' ) start [2025-01-14 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244395', 'tblTempUsageDetail_20' ) end [2025-01-14 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:18:21] Production.INFO: ==23882== Releasing lock... [2025-01-14 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:19:05 [end_date_ymd] => 2025-01-14 06:19:05 [RateCDR] => 1 ) [2025-01-14 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:19:05' and `end` < '2025-01-14 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:19:19] Production.INFO: count ==60 [2025-01-14 06:19:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:19:05 - End Time 2025-01-14 06:19:05 [2025-01-14 06:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244400', 'tblTempUsageDetail_20' ) start [2025-01-14 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244400', 'tblTempUsageDetail_20' ) end [2025-01-14 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244400', 'tblTempVendorCDR_20' ) start [2025-01-14 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244400', 'tblTempVendorCDR_20' ) end [2025-01-14 06:19:19] Production.INFO: ProcessCDR(1,14244400,1,1,2) [2025-01-14 06:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244400', 'tblTempUsageDetail_20' ) start [2025-01-14 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244400', 'tblTempUsageDetail_20' ) end [2025-01-14 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:19:22] Production.INFO: ==23959== Releasing lock... [2025-01-14 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:19:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:20:05 [end_date_ymd] => 2025-01-14 06:20:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:20:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:20:18] Production.INFO: count ==54 [2025-01-14 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:20:05 - End Time 2025-01-14 06:20:05 [2025-01-14 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244405', 'tblTempUsageDetail_20' ) start [2025-01-14 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244405', 'tblTempUsageDetail_20' ) end [2025-01-14 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244405', 'tblTempVendorCDR_20' ) start [2025-01-14 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244405', 'tblTempVendorCDR_20' ) end [2025-01-14 06:20:18] Production.INFO: ProcessCDR(1,14244405,1,1,2) [2025-01-14 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244405', 'tblTempUsageDetail_20' ) start [2025-01-14 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244405', 'tblTempUsageDetail_20' ) end [2025-01-14 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:20:21] Production.INFO: ==24037== Releasing lock... [2025-01-14 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:21:06 [end_date_ymd] => 2025-01-14 06:21:06 [RateCDR] => 1 ) [2025-01-14 06:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:21:06' and `end` < '2025-01-14 06:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:21:19] Production.INFO: count ==52 [2025-01-14 06:21:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:21:06 - End Time 2025-01-14 06:21:06 [2025-01-14 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244411', 'tblTempUsageDetail_20' ) start [2025-01-14 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244411', 'tblTempUsageDetail_20' ) end [2025-01-14 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244411', 'tblTempVendorCDR_20' ) start [2025-01-14 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244411', 'tblTempVendorCDR_20' ) end [2025-01-14 06:21:19] Production.INFO: ProcessCDR(1,14244411,1,1,2) [2025-01-14 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244411', 'tblTempUsageDetail_20' ) start [2025-01-14 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244411', 'tblTempUsageDetail_20' ) end [2025-01-14 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:21:22] Production.INFO: ==24112== Releasing lock... [2025-01-14 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:21:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:22:05 [end_date_ymd] => 2025-01-14 06:22:05 [RateCDR] => 1 ) [2025-01-14 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:22:05' and `end` < '2025-01-14 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:22:17] Production.INFO: count ==52 [2025-01-14 06:22:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:22:05 - End Time 2025-01-14 06:22:05 [2025-01-14 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244416', 'tblTempUsageDetail_20' ) start [2025-01-14 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244416', 'tblTempUsageDetail_20' ) end [2025-01-14 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244416', 'tblTempVendorCDR_20' ) start [2025-01-14 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244416', 'tblTempVendorCDR_20' ) end [2025-01-14 06:22:17] Production.INFO: ProcessCDR(1,14244416,1,1,2) [2025-01-14 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244416', 'tblTempUsageDetail_20' ) start [2025-01-14 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244416', 'tblTempUsageDetail_20' ) end [2025-01-14 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:22:21] Production.INFO: ==24192== Releasing lock... [2025-01-14 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:23:05 [end_date_ymd] => 2025-01-14 06:23:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:23:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:23:19] Production.INFO: count ==52 [2025-01-14 06:23:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:23:05 - End Time 2025-01-14 06:23:05 [2025-01-14 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244421', 'tblTempUsageDetail_20' ) start [2025-01-14 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244421', 'tblTempUsageDetail_20' ) end [2025-01-14 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244421', 'tblTempVendorCDR_20' ) start [2025-01-14 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244421', 'tblTempVendorCDR_20' ) end [2025-01-14 06:23:19] Production.INFO: ProcessCDR(1,14244421,1,1,2) [2025-01-14 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244421', 'tblTempUsageDetail_20' ) start [2025-01-14 06:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244421', 'tblTempUsageDetail_20' ) end [2025-01-14 06:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:23:23] Production.INFO: ==24270== Releasing lock... [2025-01-14 06:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:23:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:24:05 [end_date_ymd] => 2025-01-14 06:24:05 [RateCDR] => 1 ) [2025-01-14 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:24:05' and `end` < '2025-01-14 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:24:18] Production.INFO: count ==52 [2025-01-14 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:24:05 - End Time 2025-01-14 06:24:05 [2025-01-14 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244426', 'tblTempUsageDetail_20' ) start [2025-01-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244426', 'tblTempUsageDetail_20' ) end [2025-01-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244426', 'tblTempVendorCDR_20' ) start [2025-01-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244426', 'tblTempVendorCDR_20' ) end [2025-01-14 06:24:18] Production.INFO: ProcessCDR(1,14244426,1,1,2) [2025-01-14 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244426', 'tblTempUsageDetail_20' ) start [2025-01-14 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244426', 'tblTempUsageDetail_20' ) end [2025-01-14 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:24:22] Production.INFO: ==24386== Releasing lock... [2025-01-14 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:24:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:25:04 [end_date_ymd] => 2025-01-14 06:25:04 [RateCDR] => 1 ) [2025-01-14 06:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:25:04' and `end` < '2025-01-14 06:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:25:17] Production.INFO: count ==52 [2025-01-14 06:25:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:25:04 - End Time 2025-01-14 06:25:04 [2025-01-14 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244430', 'tblTempUsageDetail_20' ) start [2025-01-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244430', 'tblTempUsageDetail_20' ) end [2025-01-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244430', 'tblTempVendorCDR_20' ) start [2025-01-14 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244430', 'tblTempVendorCDR_20' ) end [2025-01-14 06:25:17] Production.INFO: ProcessCDR(1,14244430,1,1,2) [2025-01-14 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244430', 'tblTempUsageDetail_20' ) start [2025-01-14 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244430', 'tblTempUsageDetail_20' ) end [2025-01-14 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:25:20] Production.INFO: ==24460== Releasing lock... [2025-01-14 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:25:20] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:26:05 [end_date_ymd] => 2025-01-14 06:26:05 [RateCDR] => 1 ) [2025-01-14 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:26:05' and `end` < '2025-01-14 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:26:19] Production.INFO: count ==52 [2025-01-14 06:26:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:26:05 - End Time 2025-01-14 06:26:05 [2025-01-14 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244436', 'tblTempUsageDetail_20' ) start [2025-01-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244436', 'tblTempUsageDetail_20' ) end [2025-01-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244436', 'tblTempVendorCDR_20' ) start [2025-01-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244436', 'tblTempVendorCDR_20' ) end [2025-01-14 06:26:19] Production.INFO: ProcessCDR(1,14244436,1,1,2) [2025-01-14 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244436', 'tblTempUsageDetail_20' ) start [2025-01-14 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244436', 'tblTempUsageDetail_20' ) end [2025-01-14 06:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:26:23] Production.INFO: ==24534== Releasing lock... [2025-01-14 06:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:26:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:27:05 [end_date_ymd] => 2025-01-14 06:27:05 [RateCDR] => 1 ) [2025-01-14 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:27:05' and `end` < '2025-01-14 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:27:18] Production.INFO: count ==52 [2025-01-14 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:27:05 - End Time 2025-01-14 06:27:05 [2025-01-14 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244441', 'tblTempUsageDetail_20' ) start [2025-01-14 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244441', 'tblTempUsageDetail_20' ) end [2025-01-14 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244441', 'tblTempVendorCDR_20' ) start [2025-01-14 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244441', 'tblTempVendorCDR_20' ) end [2025-01-14 06:27:18] Production.INFO: ProcessCDR(1,14244441,1,1,2) [2025-01-14 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244441', 'tblTempUsageDetail_20' ) start [2025-01-14 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244441', 'tblTempUsageDetail_20' ) end [2025-01-14 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:27:22] Production.INFO: ==24609== Releasing lock... [2025-01-14 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:28:05 [end_date_ymd] => 2025-01-14 06:28:05 [RateCDR] => 1 ) [2025-01-14 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:28:05' and `end` < '2025-01-14 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:28:18] Production.INFO: count ==52 [2025-01-14 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:28:05 - End Time 2025-01-14 06:28:05 [2025-01-14 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244446', 'tblTempUsageDetail_20' ) start [2025-01-14 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244446', 'tblTempUsageDetail_20' ) end [2025-01-14 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244446', 'tblTempVendorCDR_20' ) start [2025-01-14 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244446', 'tblTempVendorCDR_20' ) end [2025-01-14 06:28:18] Production.INFO: ProcessCDR(1,14244446,1,1,2) [2025-01-14 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244446', 'tblTempUsageDetail_20' ) start [2025-01-14 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244446', 'tblTempUsageDetail_20' ) end [2025-01-14 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:28:21] Production.INFO: ==24684== Releasing lock... [2025-01-14 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:29:05 [end_date_ymd] => 2025-01-14 06:29:05 [RateCDR] => 1 ) [2025-01-14 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:29:05' and `end` < '2025-01-14 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:29:18] Production.INFO: count ==52 [2025-01-14 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:29:05 - End Time 2025-01-14 06:29:05 [2025-01-14 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244451', 'tblTempUsageDetail_20' ) start [2025-01-14 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244451', 'tblTempUsageDetail_20' ) end [2025-01-14 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244451', 'tblTempVendorCDR_20' ) start [2025-01-14 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244451', 'tblTempVendorCDR_20' ) end [2025-01-14 06:29:18] Production.INFO: ProcessCDR(1,14244451,1,1,2) [2025-01-14 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244451', 'tblTempUsageDetail_20' ) start [2025-01-14 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244451', 'tblTempUsageDetail_20' ) end [2025-01-14 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:29:21] Production.INFO: ==24761== Releasing lock... [2025-01-14 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:30:06 [end_date_ymd] => 2025-01-14 06:30:06 [RateCDR] => 1 ) [2025-01-14 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:30:06' and `end` < '2025-01-14 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:30:19] Production.INFO: count ==53 [2025-01-14 06:30:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:30:06 - End Time 2025-01-14 06:30:06 [2025-01-14 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244455', 'tblTempUsageDetail_20' ) start [2025-01-14 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244455', 'tblTempUsageDetail_20' ) end [2025-01-14 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244455', 'tblTempVendorCDR_20' ) start [2025-01-14 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244455', 'tblTempVendorCDR_20' ) end [2025-01-14 06:30:19] Production.INFO: ProcessCDR(1,14244455,1,1,2) [2025-01-14 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244455', 'tblTempUsageDetail_20' ) start [2025-01-14 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244455', 'tblTempUsageDetail_20' ) end [2025-01-14 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:30:23] Production.INFO: ==24843== Releasing lock... [2025-01-14 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:30:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:31:05 [end_date_ymd] => 2025-01-14 06:31:05 [RateCDR] => 1 ) [2025-01-14 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:31:05' and `end` < '2025-01-14 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:31:19] Production.INFO: count ==54 [2025-01-14 06:31:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:31:05 - End Time 2025-01-14 06:31:05 [2025-01-14 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244462', 'tblTempUsageDetail_20' ) start [2025-01-14 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244462', 'tblTempUsageDetail_20' ) end [2025-01-14 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244462', 'tblTempVendorCDR_20' ) start [2025-01-14 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244462', 'tblTempVendorCDR_20' ) end [2025-01-14 06:31:19] Production.INFO: ProcessCDR(1,14244462,1,1,2) [2025-01-14 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244462', 'tblTempUsageDetail_20' ) start [2025-01-14 06:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244462', 'tblTempUsageDetail_20' ) end [2025-01-14 06:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:31:23] Production.INFO: ==24919== Releasing lock... [2025-01-14 06:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:31:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:32:05 [end_date_ymd] => 2025-01-14 06:32:05 [RateCDR] => 1 ) [2025-01-14 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:32:05' and `end` < '2025-01-14 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:32:19] Production.INFO: count ==55 [2025-01-14 06:32:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:32:05 - End Time 2025-01-14 06:32:05 [2025-01-14 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244467', 'tblTempUsageDetail_20' ) start [2025-01-14 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244467', 'tblTempUsageDetail_20' ) end [2025-01-14 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244467', 'tblTempVendorCDR_20' ) start [2025-01-14 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244467', 'tblTempVendorCDR_20' ) end [2025-01-14 06:32:19] Production.INFO: ProcessCDR(1,14244467,1,1,2) [2025-01-14 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244467', 'tblTempUsageDetail_20' ) start [2025-01-14 06:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244467', 'tblTempUsageDetail_20' ) end [2025-01-14 06:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:32:24] Production.INFO: ==25001== Releasing lock... [2025-01-14 06:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:32:24] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:33:04 [end_date_ymd] => 2025-01-14 06:33:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:33:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:33:17] Production.INFO: count ==55 [2025-01-14 06:33:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:33:04 - End Time 2025-01-14 06:33:04 [2025-01-14 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244472', 'tblTempUsageDetail_20' ) start [2025-01-14 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244472', 'tblTempUsageDetail_20' ) end [2025-01-14 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244472', 'tblTempVendorCDR_20' ) start [2025-01-14 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244472', 'tblTempVendorCDR_20' ) end [2025-01-14 06:33:17] Production.INFO: ProcessCDR(1,14244472,1,1,2) [2025-01-14 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244472', 'tblTempUsageDetail_20' ) start [2025-01-14 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244472', 'tblTempUsageDetail_20' ) end [2025-01-14 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:33:20] Production.INFO: ==25092== Releasing lock... [2025-01-14 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:33:20] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:34:05 [end_date_ymd] => 2025-01-14 06:34:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:34:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:34:17] Production.INFO: count ==55 [2025-01-14 06:34:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:34:05 - End Time 2025-01-14 06:34:05 [2025-01-14 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244477', 'tblTempUsageDetail_20' ) start [2025-01-14 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244477', 'tblTempUsageDetail_20' ) end [2025-01-14 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244477', 'tblTempVendorCDR_20' ) start [2025-01-14 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244477', 'tblTempVendorCDR_20' ) end [2025-01-14 06:34:17] Production.INFO: ProcessCDR(1,14244477,1,1,2) [2025-01-14 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244477', 'tblTempUsageDetail_20' ) start [2025-01-14 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244477', 'tblTempUsageDetail_20' ) end [2025-01-14 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:34:21] Production.INFO: ==25184== Releasing lock... [2025-01-14 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:35:05 [end_date_ymd] => 2025-01-14 06:35:05 [RateCDR] => 1 ) [2025-01-14 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:35:05' and `end` < '2025-01-14 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:35:18] Production.INFO: count ==55 [2025-01-14 06:35:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:35:05 - End Time 2025-01-14 06:35:05 [2025-01-14 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244482', 'tblTempUsageDetail_20' ) start [2025-01-14 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244482', 'tblTempUsageDetail_20' ) end [2025-01-14 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244482', 'tblTempVendorCDR_20' ) start [2025-01-14 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244482', 'tblTempVendorCDR_20' ) end [2025-01-14 06:35:18] Production.INFO: ProcessCDR(1,14244482,1,1,2) [2025-01-14 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244482', 'tblTempUsageDetail_20' ) start [2025-01-14 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244482', 'tblTempUsageDetail_20' ) end [2025-01-14 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:35:21] Production.INFO: ==25277== Releasing lock... [2025-01-14 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:36:05 [end_date_ymd] => 2025-01-14 06:36:05 [RateCDR] => 1 ) [2025-01-14 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:36:05' and `end` < '2025-01-14 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:36:18] Production.INFO: count ==55 [2025-01-14 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:36:05 - End Time 2025-01-14 06:36:05 [2025-01-14 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244487', 'tblTempUsageDetail_20' ) start [2025-01-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244487', 'tblTempUsageDetail_20' ) end [2025-01-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244487', 'tblTempVendorCDR_20' ) start [2025-01-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244487', 'tblTempVendorCDR_20' ) end [2025-01-14 06:36:18] Production.INFO: ProcessCDR(1,14244487,1,1,2) [2025-01-14 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244487', 'tblTempUsageDetail_20' ) start [2025-01-14 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244487', 'tblTempUsageDetail_20' ) end [2025-01-14 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:36:22] Production.INFO: ==25372== Releasing lock... [2025-01-14 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:36:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:37:05 [end_date_ymd] => 2025-01-14 06:37:05 [RateCDR] => 1 ) [2025-01-14 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:37:05' and `end` < '2025-01-14 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:37:17] Production.INFO: count ==55 [2025-01-14 06:37:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:37:05 - End Time 2025-01-14 06:37:05 [2025-01-14 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244492', 'tblTempUsageDetail_20' ) start [2025-01-14 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244492', 'tblTempUsageDetail_20' ) end [2025-01-14 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244492', 'tblTempVendorCDR_20' ) start [2025-01-14 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244492', 'tblTempVendorCDR_20' ) end [2025-01-14 06:37:17] Production.INFO: ProcessCDR(1,14244492,1,1,2) [2025-01-14 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244492', 'tblTempUsageDetail_20' ) start [2025-01-14 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244492', 'tblTempUsageDetail_20' ) end [2025-01-14 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:37:21] Production.INFO: ==25467== Releasing lock... [2025-01-14 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:38:05 [end_date_ymd] => 2025-01-14 06:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:38:18] Production.INFO: count ==55 [2025-01-14 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:38:05 - End Time 2025-01-14 06:38:05 [2025-01-14 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244497', 'tblTempUsageDetail_20' ) start [2025-01-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244497', 'tblTempUsageDetail_20' ) end [2025-01-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244497', 'tblTempVendorCDR_20' ) start [2025-01-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244497', 'tblTempVendorCDR_20' ) end [2025-01-14 06:38:18] Production.INFO: ProcessCDR(1,14244497,1,1,2) [2025-01-14 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244497', 'tblTempUsageDetail_20' ) start [2025-01-14 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244497', 'tblTempUsageDetail_20' ) end [2025-01-14 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:38:21] Production.INFO: ==25556== Releasing lock... [2025-01-14 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:39:05 [end_date_ymd] => 2025-01-14 06:39:05 [RateCDR] => 1 ) [2025-01-14 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:39:05' and `end` < '2025-01-14 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:39:18] Production.INFO: count ==55 [2025-01-14 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:39:05 - End Time 2025-01-14 06:39:05 [2025-01-14 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244502', 'tblTempUsageDetail_20' ) start [2025-01-14 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244502', 'tblTempUsageDetail_20' ) end [2025-01-14 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244502', 'tblTempVendorCDR_20' ) start [2025-01-14 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244502', 'tblTempVendorCDR_20' ) end [2025-01-14 06:39:18] Production.INFO: ProcessCDR(1,14244502,1,1,2) [2025-01-14 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244502', 'tblTempUsageDetail_20' ) start [2025-01-14 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244502', 'tblTempUsageDetail_20' ) end [2025-01-14 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:39:21] Production.INFO: ==25685== Releasing lock... [2025-01-14 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:40:05 [end_date_ymd] => 2025-01-14 06:40:05 [RateCDR] => 1 ) [2025-01-14 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:40:05' and `end` < '2025-01-14 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:40:18] Production.INFO: count ==55 [2025-01-14 06:40:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:40:05 - End Time 2025-01-14 06:40:05 [2025-01-14 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244508', 'tblTempUsageDetail_20' ) start [2025-01-14 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244508', 'tblTempUsageDetail_20' ) end [2025-01-14 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244508', 'tblTempVendorCDR_20' ) start [2025-01-14 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244508', 'tblTempVendorCDR_20' ) end [2025-01-14 06:40:18] Production.INFO: ProcessCDR(1,14244508,1,1,2) [2025-01-14 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244508', 'tblTempUsageDetail_20' ) start [2025-01-14 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244508', 'tblTempUsageDetail_20' ) end [2025-01-14 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:40:21] Production.INFO: ==25784== Releasing lock... [2025-01-14 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:41:05 [end_date_ymd] => 2025-01-14 06:41:05 [RateCDR] => 1 ) [2025-01-14 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:41:05' and `end` < '2025-01-14 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:41:19] Production.INFO: count ==55 [2025-01-14 06:41:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:41:05 - End Time 2025-01-14 06:41:05 [2025-01-14 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244513', 'tblTempUsageDetail_20' ) start [2025-01-14 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244513', 'tblTempUsageDetail_20' ) end [2025-01-14 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244513', 'tblTempVendorCDR_20' ) start [2025-01-14 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244513', 'tblTempVendorCDR_20' ) end [2025-01-14 06:41:19] Production.INFO: ProcessCDR(1,14244513,1,1,2) [2025-01-14 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244513', 'tblTempUsageDetail_20' ) start [2025-01-14 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244513', 'tblTempUsageDetail_20' ) end [2025-01-14 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:41:22] Production.INFO: ==25877== Releasing lock... [2025-01-14 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:41:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:42:05 [end_date_ymd] => 2025-01-14 06:42:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:42:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:42:18] Production.INFO: count ==55 [2025-01-14 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:42:05 - End Time 2025-01-14 06:42:05 [2025-01-14 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244518', 'tblTempUsageDetail_20' ) start [2025-01-14 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244518', 'tblTempUsageDetail_20' ) end [2025-01-14 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244518', 'tblTempVendorCDR_20' ) start [2025-01-14 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244518', 'tblTempVendorCDR_20' ) end [2025-01-14 06:42:18] Production.INFO: ProcessCDR(1,14244518,1,1,2) [2025-01-14 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244518', 'tblTempUsageDetail_20' ) start [2025-01-14 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244518', 'tblTempUsageDetail_20' ) end [2025-01-14 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:42:21] Production.INFO: ==25967== Releasing lock... [2025-01-14 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:42:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:43:04 [end_date_ymd] => 2025-01-14 06:43:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:43:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:43:17] Production.INFO: count ==55 [2025-01-14 06:43:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:43:04 - End Time 2025-01-14 06:43:04 [2025-01-14 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244523', 'tblTempUsageDetail_20' ) start [2025-01-14 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244523', 'tblTempUsageDetail_20' ) end [2025-01-14 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244523', 'tblTempVendorCDR_20' ) start [2025-01-14 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244523', 'tblTempVendorCDR_20' ) end [2025-01-14 06:43:17] Production.INFO: ProcessCDR(1,14244523,1,1,2) [2025-01-14 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244523', 'tblTempUsageDetail_20' ) start [2025-01-14 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244523', 'tblTempUsageDetail_20' ) end [2025-01-14 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:43:21] Production.INFO: ==26062== Releasing lock... [2025-01-14 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:44:05 [end_date_ymd] => 2025-01-14 06:44:05 [RateCDR] => 1 ) [2025-01-14 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:44:05' and `end` < '2025-01-14 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:44:18] Production.INFO: count ==55 [2025-01-14 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:44:05 - End Time 2025-01-14 06:44:05 [2025-01-14 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244525', 'tblTempUsageDetail_20' ) start [2025-01-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244525', 'tblTempUsageDetail_20' ) end [2025-01-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244525', 'tblTempVendorCDR_20' ) start [2025-01-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244525', 'tblTempVendorCDR_20' ) end [2025-01-14 06:44:18] Production.INFO: ProcessCDR(1,14244525,1,1,2) [2025-01-14 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244525', 'tblTempUsageDetail_20' ) start [2025-01-14 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244525', 'tblTempUsageDetail_20' ) end [2025-01-14 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:44:22] Production.INFO: ==26157== Releasing lock... [2025-01-14 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:44:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:45:05 [end_date_ymd] => 2025-01-14 06:45:05 [RateCDR] => 1 ) [2025-01-14 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:45:05' and `end` < '2025-01-14 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:45:18] Production.INFO: count ==55 [2025-01-14 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:45:05 - End Time 2025-01-14 06:45:05 [2025-01-14 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244533', 'tblTempUsageDetail_20' ) start [2025-01-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244533', 'tblTempUsageDetail_20' ) end [2025-01-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244533', 'tblTempVendorCDR_20' ) start [2025-01-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244533', 'tblTempVendorCDR_20' ) end [2025-01-14 06:45:18] Production.INFO: ProcessCDR(1,14244533,1,1,2) [2025-01-14 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244533', 'tblTempUsageDetail_20' ) start [2025-01-14 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244533', 'tblTempUsageDetail_20' ) end [2025-01-14 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:45:21] Production.INFO: ==26242== Releasing lock... [2025-01-14 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:46:05 [end_date_ymd] => 2025-01-14 06:46:05 [RateCDR] => 1 ) [2025-01-14 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:46:05' and `end` < '2025-01-14 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:46:19] Production.INFO: count ==55 [2025-01-14 06:46:19] Production.ERROR: pbx CDR StartTime 2025-01-14 03:46:05 - End Time 2025-01-14 06:46:05 [2025-01-14 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244538', 'tblTempUsageDetail_20' ) start [2025-01-14 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244538', 'tblTempUsageDetail_20' ) end [2025-01-14 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244538', 'tblTempVendorCDR_20' ) start [2025-01-14 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244538', 'tblTempVendorCDR_20' ) end [2025-01-14 06:46:19] Production.INFO: ProcessCDR(1,14244538,1,1,2) [2025-01-14 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244538', 'tblTempUsageDetail_20' ) start [2025-01-14 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244538', 'tblTempUsageDetail_20' ) end [2025-01-14 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:46:22] Production.INFO: ==26335== Releasing lock... [2025-01-14 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:46:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:47:05 [end_date_ymd] => 2025-01-14 06:47:05 [RateCDR] => 1 ) [2025-01-14 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:47:05' and `end` < '2025-01-14 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:47:18] Production.INFO: count ==55 [2025-01-14 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:47:05 - End Time 2025-01-14 06:47:05 [2025-01-14 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244543', 'tblTempUsageDetail_20' ) start [2025-01-14 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244543', 'tblTempUsageDetail_20' ) end [2025-01-14 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244543', 'tblTempVendorCDR_20' ) start [2025-01-14 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244543', 'tblTempVendorCDR_20' ) end [2025-01-14 06:47:18] Production.INFO: ProcessCDR(1,14244543,1,1,2) [2025-01-14 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244543', 'tblTempUsageDetail_20' ) start [2025-01-14 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244543', 'tblTempUsageDetail_20' ) end [2025-01-14 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:47:21] Production.INFO: ==26425== Releasing lock... [2025-01-14 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:48:05 [end_date_ymd] => 2025-01-14 06:48:05 [RateCDR] => 1 ) [2025-01-14 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:48:05' and `end` < '2025-01-14 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:48:18] Production.INFO: count ==55 [2025-01-14 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:48:05 - End Time 2025-01-14 06:48:05 [2025-01-14 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244548', 'tblTempUsageDetail_20' ) start [2025-01-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244548', 'tblTempUsageDetail_20' ) end [2025-01-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244548', 'tblTempVendorCDR_20' ) start [2025-01-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244548', 'tblTempVendorCDR_20' ) end [2025-01-14 06:48:18] Production.INFO: ProcessCDR(1,14244548,1,1,2) [2025-01-14 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244548', 'tblTempUsageDetail_20' ) start [2025-01-14 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244548', 'tblTempUsageDetail_20' ) end [2025-01-14 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:48:22] Production.INFO: ==26517== Releasing lock... [2025-01-14 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:48:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:49:05 [end_date_ymd] => 2025-01-14 06:49:05 [RateCDR] => 1 ) [2025-01-14 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:49:05' and `end` < '2025-01-14 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:49:17] Production.INFO: count ==55 [2025-01-14 06:49:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:49:05 - End Time 2025-01-14 06:49:05 [2025-01-14 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244553', 'tblTempUsageDetail_20' ) start [2025-01-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244553', 'tblTempUsageDetail_20' ) end [2025-01-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244553', 'tblTempVendorCDR_20' ) start [2025-01-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244553', 'tblTempVendorCDR_20' ) end [2025-01-14 06:49:17] Production.INFO: ProcessCDR(1,14244553,1,1,2) [2025-01-14 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244553', 'tblTempUsageDetail_20' ) start [2025-01-14 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244553', 'tblTempUsageDetail_20' ) end [2025-01-14 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:49:20] Production.INFO: ==26603== Releasing lock... [2025-01-14 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:49:20] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:50:06 [end_date_ymd] => 2025-01-14 06:50:06 [RateCDR] => 1 ) [2025-01-14 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:50:06' and `end` < '2025-01-14 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:50:18] Production.INFO: count ==55 [2025-01-14 06:50:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:50:06 - End Time 2025-01-14 06:50:06 [2025-01-14 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244559', 'tblTempUsageDetail_20' ) start [2025-01-14 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244559', 'tblTempUsageDetail_20' ) end [2025-01-14 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244559', 'tblTempVendorCDR_20' ) start [2025-01-14 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244559', 'tblTempVendorCDR_20' ) end [2025-01-14 06:50:18] Production.INFO: ProcessCDR(1,14244559,1,1,2) [2025-01-14 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244559', 'tblTempUsageDetail_20' ) start [2025-01-14 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244559', 'tblTempUsageDetail_20' ) end [2025-01-14 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:50:22] Production.INFO: ==26696== Releasing lock... [2025-01-14 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:50:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:51:05 [end_date_ymd] => 2025-01-14 06:51:05 [RateCDR] => 1 ) [2025-01-14 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:51:05' and `end` < '2025-01-14 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:51:18] Production.INFO: count ==55 [2025-01-14 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:51:05 - End Time 2025-01-14 06:51:05 [2025-01-14 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244564', 'tblTempUsageDetail_20' ) start [2025-01-14 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244564', 'tblTempUsageDetail_20' ) end [2025-01-14 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244564', 'tblTempVendorCDR_20' ) start [2025-01-14 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244564', 'tblTempVendorCDR_20' ) end [2025-01-14 06:51:18] Production.INFO: ProcessCDR(1,14244564,1,1,2) [2025-01-14 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244564', 'tblTempUsageDetail_20' ) start [2025-01-14 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244564', 'tblTempUsageDetail_20' ) end [2025-01-14 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:51:21] Production.INFO: ==26787== Releasing lock... [2025-01-14 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:52:05 [end_date_ymd] => 2025-01-14 06:52:05 [RateCDR] => 1 ) [2025-01-14 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:52:05' and `end` < '2025-01-14 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:52:18] Production.INFO: count ==55 [2025-01-14 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:52:05 - End Time 2025-01-14 06:52:05 [2025-01-14 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244569', 'tblTempUsageDetail_20' ) start [2025-01-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244569', 'tblTempUsageDetail_20' ) end [2025-01-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244569', 'tblTempVendorCDR_20' ) start [2025-01-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244569', 'tblTempVendorCDR_20' ) end [2025-01-14 06:52:18] Production.INFO: ProcessCDR(1,14244569,1,1,2) [2025-01-14 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244569', 'tblTempUsageDetail_20' ) start [2025-01-14 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244569', 'tblTempUsageDetail_20' ) end [2025-01-14 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:52:22] Production.INFO: ==26908== Releasing lock... [2025-01-14 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:52:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:53:05 [end_date_ymd] => 2025-01-14 06:53:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:53:05' and `end` < '2025-01-14 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:53:18] Production.INFO: count ==55 [2025-01-14 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:53:05 - End Time 2025-01-14 06:53:05 [2025-01-14 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244574', 'tblTempUsageDetail_20' ) start [2025-01-14 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244574', 'tblTempUsageDetail_20' ) end [2025-01-14 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244574', 'tblTempVendorCDR_20' ) start [2025-01-14 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244574', 'tblTempVendorCDR_20' ) end [2025-01-14 06:53:18] Production.INFO: ProcessCDR(1,14244574,1,1,2) [2025-01-14 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244574', 'tblTempUsageDetail_20' ) start [2025-01-14 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244574', 'tblTempUsageDetail_20' ) end [2025-01-14 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:53:21] Production.INFO: ==27003== Releasing lock... [2025-01-14 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:54:05 [end_date_ymd] => 2025-01-14 06:54:05 [RateCDR] => 1 ) [2025-01-14 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:54:05' and `end` < '2025-01-14 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:54:17] Production.INFO: count ==54 [2025-01-14 06:54:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:54:05 - End Time 2025-01-14 06:54:05 [2025-01-14 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244579', 'tblTempUsageDetail_20' ) start [2025-01-14 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244579', 'tblTempUsageDetail_20' ) end [2025-01-14 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244579', 'tblTempVendorCDR_20' ) start [2025-01-14 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244579', 'tblTempVendorCDR_20' ) end [2025-01-14 06:54:17] Production.INFO: ProcessCDR(1,14244579,1,1,2) [2025-01-14 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244579', 'tblTempUsageDetail_20' ) start [2025-01-14 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244579', 'tblTempUsageDetail_20' ) end [2025-01-14 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:54:21] Production.INFO: ==27116== Releasing lock... [2025-01-14 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:55:05 [end_date_ymd] => 2025-01-14 06:55:05 [RateCDR] => 1 ) [2025-01-14 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:55:05' and `end` < '2025-01-14 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:55:18] Production.INFO: count ==55 [2025-01-14 06:55:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:55:05 - End Time 2025-01-14 06:55:05 [2025-01-14 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244584', 'tblTempUsageDetail_20' ) start [2025-01-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244584', 'tblTempUsageDetail_20' ) end [2025-01-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244584', 'tblTempVendorCDR_20' ) start [2025-01-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244584', 'tblTempVendorCDR_20' ) end [2025-01-14 06:55:18] Production.INFO: ProcessCDR(1,14244584,1,1,2) [2025-01-14 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244584', 'tblTempUsageDetail_20' ) start [2025-01-14 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244584', 'tblTempUsageDetail_20' ) end [2025-01-14 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:55:22] Production.INFO: ==27261== Releasing lock... [2025-01-14 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:56:05 [end_date_ymd] => 2025-01-14 06:56:05 [RateCDR] => 1 ) [2025-01-14 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:56:05' and `end` < '2025-01-14 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:56:17] Production.INFO: count ==55 [2025-01-14 06:56:17] Production.ERROR: pbx CDR StartTime 2025-01-14 03:56:05 - End Time 2025-01-14 06:56:05 [2025-01-14 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244589', 'tblTempUsageDetail_20' ) start [2025-01-14 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244589', 'tblTempUsageDetail_20' ) end [2025-01-14 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244589', 'tblTempVendorCDR_20' ) start [2025-01-14 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244589', 'tblTempVendorCDR_20' ) end [2025-01-14 06:56:17] Production.INFO: ProcessCDR(1,14244589,1,1,2) [2025-01-14 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244589', 'tblTempUsageDetail_20' ) start [2025-01-14 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244589', 'tblTempUsageDetail_20' ) end [2025-01-14 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:56:22] Production.INFO: ==27373== Releasing lock... [2025-01-14 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:56:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:57:05 [end_date_ymd] => 2025-01-14 06:57:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 03:57:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 06:57:18] Production.INFO: count ==56 [2025-01-14 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:57:05 - End Time 2025-01-14 06:57:05 [2025-01-14 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244594', 'tblTempUsageDetail_20' ) start [2025-01-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244594', 'tblTempUsageDetail_20' ) end [2025-01-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244594', 'tblTempVendorCDR_20' ) start [2025-01-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244594', 'tblTempVendorCDR_20' ) end [2025-01-14 06:57:18] Production.INFO: ProcessCDR(1,14244594,1,1,2) [2025-01-14 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244594', 'tblTempUsageDetail_20' ) start [2025-01-14 06:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244594', 'tblTempUsageDetail_20' ) end [2025-01-14 06:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:57:23] Production.INFO: ==27479== Releasing lock... [2025-01-14 06:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:57:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:58:05 [end_date_ymd] => 2025-01-14 06:58:05 [RateCDR] => 1 ) [2025-01-14 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:58:05' and `end` < '2025-01-14 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:58:18] Production.INFO: count ==55 [2025-01-14 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:58:05 - End Time 2025-01-14 06:58:05 [2025-01-14 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244599', 'tblTempUsageDetail_20' ) start [2025-01-14 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244599', 'tblTempUsageDetail_20' ) end [2025-01-14 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244599', 'tblTempVendorCDR_20' ) start [2025-01-14 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244599', 'tblTempVendorCDR_20' ) end [2025-01-14 06:58:18] Production.INFO: ProcessCDR(1,14244599,1,1,2) [2025-01-14 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244599', 'tblTempUsageDetail_20' ) start [2025-01-14 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244599', 'tblTempUsageDetail_20' ) end [2025-01-14 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:58:21] Production.INFO: ==27588== Releasing lock... [2025-01-14 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 03:59:05 [end_date_ymd] => 2025-01-14 06:59:05 [RateCDR] => 1 ) [2025-01-14 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 03:59:05' and `end` < '2025-01-14 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 06:59:18] Production.INFO: count ==55 [2025-01-14 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-14 03:59:05 - End Time 2025-01-14 06:59:05 [2025-01-14 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244604', 'tblTempUsageDetail_20' ) start [2025-01-14 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244604', 'tblTempUsageDetail_20' ) end [2025-01-14 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244604', 'tblTempVendorCDR_20' ) start [2025-01-14 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244604', 'tblTempVendorCDR_20' ) end [2025-01-14 06:59:18] Production.INFO: ProcessCDR(1,14244604,1,1,2) [2025-01-14 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244604', 'tblTempUsageDetail_20' ) start [2025-01-14 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244604', 'tblTempUsageDetail_20' ) end [2025-01-14 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 06:59:21] Production.INFO: ==27695== Releasing lock... [2025-01-14 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:00:07 [end_date_ymd] => 2025-01-14 07:00:07 [RateCDR] => 1 ) [2025-01-14 07:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:00:07' and `end` < '2025-01-14 07:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:00:21] Production.INFO: count ==54 [2025-01-14 07:00:21] Production.ERROR: pbx CDR StartTime 2025-01-14 04:00:07 - End Time 2025-01-14 07:00:07 [2025-01-14 07:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244610', 'tblTempUsageDetail_20' ) start [2025-01-14 07:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244610', 'tblTempUsageDetail_20' ) end [2025-01-14 07:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244610', 'tblTempVendorCDR_20' ) start [2025-01-14 07:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244610', 'tblTempVendorCDR_20' ) end [2025-01-14 07:00:21] Production.INFO: ProcessCDR(1,14244610,1,1,2) [2025-01-14 07:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244610', 'tblTempUsageDetail_20' ) start [2025-01-14 07:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244610', 'tblTempUsageDetail_20' ) end [2025-01-14 07:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:00:26] Production.INFO: ==27800== Releasing lock... [2025-01-14 07:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:00:26] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:01:05 [end_date_ymd] => 2025-01-14 07:01:05 [RateCDR] => 1 ) [2025-01-14 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:01:05' and `end` < '2025-01-14 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:01:30] Production.INFO: count ==54 [2025-01-14 07:01:30] Production.ERROR: pbx CDR StartTime 2025-01-14 04:01:05 - End Time 2025-01-14 07:01:05 [2025-01-14 07:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244615', 'tblTempUsageDetail_20' ) start [2025-01-14 07:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244615', 'tblTempUsageDetail_20' ) end [2025-01-14 07:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244615', 'tblTempVendorCDR_20' ) start [2025-01-14 07:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244615', 'tblTempVendorCDR_20' ) end [2025-01-14 07:01:30] Production.INFO: ProcessCDR(1,14244615,1,1,2) [2025-01-14 07:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244615', 'tblTempUsageDetail_20' ) start [2025-01-14 07:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244615', 'tblTempUsageDetail_20' ) end [2025-01-14 07:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:01:33] Production.INFO: ==27888== Releasing lock... [2025-01-14 07:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:01:33] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:02:05 [end_date_ymd] => 2025-01-14 07:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:02:20] Production.INFO: count ==54 [2025-01-14 07:02:20] Production.ERROR: pbx CDR StartTime 2025-01-14 04:02:05 - End Time 2025-01-14 07:02:05 [2025-01-14 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244620', 'tblTempUsageDetail_20' ) start [2025-01-14 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244620', 'tblTempUsageDetail_20' ) end [2025-01-14 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244620', 'tblTempVendorCDR_20' ) start [2025-01-14 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244620', 'tblTempVendorCDR_20' ) end [2025-01-14 07:02:20] Production.INFO: ProcessCDR(1,14244620,1,1,2) [2025-01-14 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244620', 'tblTempUsageDetail_20' ) start [2025-01-14 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244620', 'tblTempUsageDetail_20' ) end [2025-01-14 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:02:23] Production.INFO: ==28039== Releasing lock... [2025-01-14 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:02:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:03:05 [end_date_ymd] => 2025-01-14 07:03:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:03:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:03:19] Production.INFO: count ==55 [2025-01-14 07:03:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:03:05 - End Time 2025-01-14 07:03:05 [2025-01-14 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244625', 'tblTempUsageDetail_20' ) start [2025-01-14 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244625', 'tblTempUsageDetail_20' ) end [2025-01-14 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244625', 'tblTempVendorCDR_20' ) start [2025-01-14 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244625', 'tblTempVendorCDR_20' ) end [2025-01-14 07:03:19] Production.INFO: ProcessCDR(1,14244625,1,1,2) [2025-01-14 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244625', 'tblTempUsageDetail_20' ) start [2025-01-14 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244625', 'tblTempUsageDetail_20' ) end [2025-01-14 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:03:24] Production.INFO: ==28110== Releasing lock... [2025-01-14 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:03:24] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:04:06 [end_date_ymd] => 2025-01-14 07:04:06 [RateCDR] => 1 ) [2025-01-14 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:04:06' and `end` < '2025-01-14 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:04:19] Production.INFO: count ==55 [2025-01-14 07:04:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:04:06 - End Time 2025-01-14 07:04:06 [2025-01-14 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244630', 'tblTempUsageDetail_20' ) start [2025-01-14 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244630', 'tblTempUsageDetail_20' ) end [2025-01-14 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244630', 'tblTempVendorCDR_20' ) start [2025-01-14 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244630', 'tblTempVendorCDR_20' ) end [2025-01-14 07:04:19] Production.INFO: ProcessCDR(1,14244630,1,1,2) [2025-01-14 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244630', 'tblTempUsageDetail_20' ) start [2025-01-14 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244630', 'tblTempUsageDetail_20' ) end [2025-01-14 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:04:23] Production.INFO: ==28187== Releasing lock... [2025-01-14 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:04:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:05:05 [end_date_ymd] => 2025-01-14 07:05:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:05:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:05:19] Production.INFO: count ==55 [2025-01-14 07:05:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:05:05 - End Time 2025-01-14 07:05:05 [2025-01-14 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244635', 'tblTempUsageDetail_20' ) start [2025-01-14 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244635', 'tblTempUsageDetail_20' ) end [2025-01-14 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244635', 'tblTempVendorCDR_20' ) start [2025-01-14 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244635', 'tblTempVendorCDR_20' ) end [2025-01-14 07:05:19] Production.INFO: ProcessCDR(1,14244635,1,1,2) [2025-01-14 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244635', 'tblTempUsageDetail_20' ) start [2025-01-14 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244635', 'tblTempUsageDetail_20' ) end [2025-01-14 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:05:23] Production.INFO: ==28337== Releasing lock... [2025-01-14 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:05:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:06:06 [end_date_ymd] => 2025-01-14 07:06:06 [RateCDR] => 1 ) [2025-01-14 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:06:06' and `end` < '2025-01-14 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:06:20] Production.INFO: count ==61 [2025-01-14 07:06:20] Production.ERROR: pbx CDR StartTime 2025-01-14 04:06:06 - End Time 2025-01-14 07:06:06 [2025-01-14 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244640', 'tblTempUsageDetail_20' ) start [2025-01-14 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244640', 'tblTempUsageDetail_20' ) end [2025-01-14 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244640', 'tblTempVendorCDR_20' ) start [2025-01-14 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244640', 'tblTempVendorCDR_20' ) end [2025-01-14 07:06:20] Production.INFO: ProcessCDR(1,14244640,1,1,2) [2025-01-14 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244640', 'tblTempUsageDetail_20' ) start [2025-01-14 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244640', 'tblTempUsageDetail_20' ) end [2025-01-14 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:06:24] Production.INFO: ==28410== Releasing lock... [2025-01-14 07:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:06:24] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:07:05 [end_date_ymd] => 2025-01-14 07:07:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:07:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:07:19] Production.INFO: count ==61 [2025-01-14 07:07:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:07:05 - End Time 2025-01-14 07:07:05 [2025-01-14 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244645', 'tblTempUsageDetail_20' ) start [2025-01-14 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244645', 'tblTempUsageDetail_20' ) end [2025-01-14 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244645', 'tblTempVendorCDR_20' ) start [2025-01-14 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244645', 'tblTempVendorCDR_20' ) end [2025-01-14 07:07:19] Production.INFO: ProcessCDR(1,14244645,1,1,2) [2025-01-14 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244645', 'tblTempUsageDetail_20' ) start [2025-01-14 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244645', 'tblTempUsageDetail_20' ) end [2025-01-14 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:07:23] Production.INFO: ==28480== Releasing lock... [2025-01-14 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:07:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:08:05 [end_date_ymd] => 2025-01-14 07:08:05 [RateCDR] => 1 ) [2025-01-14 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:08:05' and `end` < '2025-01-14 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:08:20] Production.INFO: count ==61 [2025-01-14 07:08:20] Production.ERROR: pbx CDR StartTime 2025-01-14 04:08:05 - End Time 2025-01-14 07:08:05 [2025-01-14 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244650', 'tblTempUsageDetail_20' ) start [2025-01-14 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244650', 'tblTempUsageDetail_20' ) end [2025-01-14 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244650', 'tblTempVendorCDR_20' ) start [2025-01-14 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244650', 'tblTempVendorCDR_20' ) end [2025-01-14 07:08:20] Production.INFO: ProcessCDR(1,14244650,1,1,2) [2025-01-14 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244650', 'tblTempUsageDetail_20' ) start [2025-01-14 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244650', 'tblTempUsageDetail_20' ) end [2025-01-14 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:08:23] Production.INFO: ==28631== Releasing lock... [2025-01-14 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:08:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:09:05 [end_date_ymd] => 2025-01-14 07:09:05 [RateCDR] => 1 ) [2025-01-14 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:09:05' and `end` < '2025-01-14 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:09:18] Production.INFO: count ==61 [2025-01-14 07:09:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:09:05 - End Time 2025-01-14 07:09:05 [2025-01-14 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244655', 'tblTempUsageDetail_20' ) start [2025-01-14 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244655', 'tblTempUsageDetail_20' ) end [2025-01-14 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244655', 'tblTempVendorCDR_20' ) start [2025-01-14 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244655', 'tblTempVendorCDR_20' ) end [2025-01-14 07:09:18] Production.INFO: ProcessCDR(1,14244655,1,1,2) [2025-01-14 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244655', 'tblTempUsageDetail_20' ) start [2025-01-14 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244655', 'tblTempUsageDetail_20' ) end [2025-01-14 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:09:22] Production.INFO: ==28705== Releasing lock... [2025-01-14 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:09:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:10:06 [end_date_ymd] => 2025-01-14 07:10:06 [RateCDR] => 1 ) [2025-01-14 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:10:06' and `end` < '2025-01-14 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:10:20] Production.INFO: count ==63 [2025-01-14 07:10:20] Production.ERROR: pbx CDR StartTime 2025-01-14 04:10:06 - End Time 2025-01-14 07:10:06 [2025-01-14 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244661', 'tblTempUsageDetail_20' ) start [2025-01-14 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244661', 'tblTempUsageDetail_20' ) end [2025-01-14 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244661', 'tblTempVendorCDR_20' ) start [2025-01-14 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244661', 'tblTempVendorCDR_20' ) end [2025-01-14 07:10:20] Production.INFO: ProcessCDR(1,14244661,1,1,2) [2025-01-14 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244661', 'tblTempUsageDetail_20' ) start [2025-01-14 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244661', 'tblTempUsageDetail_20' ) end [2025-01-14 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:10:24] Production.INFO: ==28781== Releasing lock... [2025-01-14 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:10:24] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:11:05 [end_date_ymd] => 2025-01-14 07:11:05 [RateCDR] => 1 ) [2025-01-14 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:11:05' and `end` < '2025-01-14 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:11:19] Production.INFO: count ==63 [2025-01-14 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:11:05 - End Time 2025-01-14 07:11:05 [2025-01-14 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244666', 'tblTempUsageDetail_20' ) start [2025-01-14 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244666', 'tblTempUsageDetail_20' ) end [2025-01-14 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244666', 'tblTempVendorCDR_20' ) start [2025-01-14 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244666', 'tblTempVendorCDR_20' ) end [2025-01-14 07:11:19] Production.INFO: ProcessCDR(1,14244666,1,1,2) [2025-01-14 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244666', 'tblTempUsageDetail_20' ) start [2025-01-14 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244666', 'tblTempUsageDetail_20' ) end [2025-01-14 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:11:22] Production.INFO: ==28894== Releasing lock... [2025-01-14 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:11:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:12:06 [end_date_ymd] => 2025-01-14 07:12:06 [RateCDR] => 1 ) [2025-01-14 07:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:12:06' and `end` < '2025-01-14 07:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:12:20] Production.INFO: count ==63 [2025-01-14 07:12:20] Production.ERROR: pbx CDR StartTime 2025-01-14 04:12:06 - End Time 2025-01-14 07:12:06 [2025-01-14 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244671', 'tblTempUsageDetail_20' ) start [2025-01-14 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244671', 'tblTempUsageDetail_20' ) end [2025-01-14 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244671', 'tblTempVendorCDR_20' ) start [2025-01-14 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244671', 'tblTempVendorCDR_20' ) end [2025-01-14 07:12:20] Production.INFO: ProcessCDR(1,14244671,1,1,2) [2025-01-14 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244671', 'tblTempUsageDetail_20' ) start [2025-01-14 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244671', 'tblTempUsageDetail_20' ) end [2025-01-14 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:12:23] Production.INFO: ==29048== Releasing lock... [2025-01-14 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:12:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:13:05 [end_date_ymd] => 2025-01-14 07:13:05 [RateCDR] => 1 ) [2025-01-14 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:13:05' and `end` < '2025-01-14 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:13:21] Production.INFO: count ==63 [2025-01-14 07:13:21] Production.ERROR: pbx CDR StartTime 2025-01-14 04:13:05 - End Time 2025-01-14 07:13:05 [2025-01-14 07:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244676', 'tblTempUsageDetail_20' ) start [2025-01-14 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244676', 'tblTempUsageDetail_20' ) end [2025-01-14 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244676', 'tblTempVendorCDR_20' ) start [2025-01-14 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244676', 'tblTempVendorCDR_20' ) end [2025-01-14 07:13:21] Production.INFO: ProcessCDR(1,14244676,1,1,2) [2025-01-14 07:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244676', 'tblTempUsageDetail_20' ) start [2025-01-14 07:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244676', 'tblTempUsageDetail_20' ) end [2025-01-14 07:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:13:24] Production.INFO: ==29122== Releasing lock... [2025-01-14 07:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:13:24] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:14:05 [end_date_ymd] => 2025-01-14 07:14:05 [RateCDR] => 1 ) [2025-01-14 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:14:05' and `end` < '2025-01-14 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:14:18] Production.INFO: count ==63 [2025-01-14 07:14:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:14:05 - End Time 2025-01-14 07:14:05 [2025-01-14 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244681', 'tblTempUsageDetail_20' ) start [2025-01-14 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244681', 'tblTempUsageDetail_20' ) end [2025-01-14 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244681', 'tblTempVendorCDR_20' ) start [2025-01-14 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244681', 'tblTempVendorCDR_20' ) end [2025-01-14 07:14:18] Production.INFO: ProcessCDR(1,14244681,1,1,2) [2025-01-14 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244681', 'tblTempUsageDetail_20' ) start [2025-01-14 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244681', 'tblTempUsageDetail_20' ) end [2025-01-14 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:14:22] Production.INFO: ==29201== Releasing lock... [2025-01-14 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:14:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:15:05 [end_date_ymd] => 2025-01-14 07:15:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:15:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:15:19] Production.INFO: count ==63 [2025-01-14 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:15:05 - End Time 2025-01-14 07:15:05 [2025-01-14 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244686', 'tblTempUsageDetail_20' ) start [2025-01-14 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244686', 'tblTempUsageDetail_20' ) end [2025-01-14 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244686', 'tblTempVendorCDR_20' ) start [2025-01-14 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244686', 'tblTempVendorCDR_20' ) end [2025-01-14 07:15:19] Production.INFO: ProcessCDR(1,14244686,1,1,2) [2025-01-14 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244686', 'tblTempUsageDetail_20' ) start [2025-01-14 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244686', 'tblTempUsageDetail_20' ) end [2025-01-14 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:15:22] Production.INFO: ==29356== Releasing lock... [2025-01-14 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:15:22] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:16:05 [end_date_ymd] => 2025-01-14 07:16:05 [RateCDR] => 1 ) [2025-01-14 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:16:05' and `end` < '2025-01-14 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:16:21] Production.INFO: count ==63 [2025-01-14 07:16:21] Production.ERROR: pbx CDR StartTime 2025-01-14 04:16:05 - End Time 2025-01-14 07:16:05 [2025-01-14 07:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244691', 'tblTempUsageDetail_20' ) start [2025-01-14 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244691', 'tblTempUsageDetail_20' ) end [2025-01-14 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244691', 'tblTempVendorCDR_20' ) start [2025-01-14 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244691', 'tblTempVendorCDR_20' ) end [2025-01-14 07:16:21] Production.INFO: ProcessCDR(1,14244691,1,1,2) [2025-01-14 07:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244691', 'tblTempUsageDetail_20' ) start [2025-01-14 07:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244691', 'tblTempUsageDetail_20' ) end [2025-01-14 07:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:16:25] Production.INFO: ==29431== Releasing lock... [2025-01-14 07:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:16:25] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:17:05 [end_date_ymd] => 2025-01-14 07:17:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:17:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:17:20] Production.INFO: count ==64 [2025-01-14 07:17:20] Production.ERROR: pbx CDR StartTime 2025-01-14 04:17:05 - End Time 2025-01-14 07:17:05 [2025-01-14 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244696', 'tblTempUsageDetail_20' ) start [2025-01-14 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244696', 'tblTempUsageDetail_20' ) end [2025-01-14 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244696', 'tblTempVendorCDR_20' ) start [2025-01-14 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244696', 'tblTempVendorCDR_20' ) end [2025-01-14 07:17:20] Production.INFO: ProcessCDR(1,14244696,1,1,2) [2025-01-14 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244696', 'tblTempUsageDetail_20' ) start [2025-01-14 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244696', 'tblTempUsageDetail_20' ) end [2025-01-14 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:17:23] Production.INFO: ==29514== Releasing lock... [2025-01-14 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:17:23] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:18:05 [end_date_ymd] => 2025-01-14 07:18:05 [RateCDR] => 1 ) [2025-01-14 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:18:05' and `end` < '2025-01-14 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:18:20] Production.INFO: count ==64 [2025-01-14 07:18:20] Production.ERROR: pbx CDR StartTime 2025-01-14 04:18:05 - End Time 2025-01-14 07:18:05 [2025-01-14 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244701', 'tblTempUsageDetail_20' ) start [2025-01-14 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244701', 'tblTempUsageDetail_20' ) end [2025-01-14 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244701', 'tblTempVendorCDR_20' ) start [2025-01-14 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244701', 'tblTempVendorCDR_20' ) end [2025-01-14 07:18:20] Production.INFO: ProcessCDR(1,14244701,1,1,2) [2025-01-14 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244701', 'tblTempUsageDetail_20' ) start [2025-01-14 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244701', 'tblTempUsageDetail_20' ) end [2025-01-14 07:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:18:24] Production.INFO: ==29590== Releasing lock... [2025-01-14 07:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:18:24] Production.INFO: 28 MB #Memory Used# [2025-01-14 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:19:04 [end_date_ymd] => 2025-01-14 07:19:04 [RateCDR] => 1 ) [2025-01-14 07:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:19:04' and `end` < '2025-01-14 07:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:19:17] Production.INFO: count ==70 [2025-01-14 07:19:17] Production.ERROR: pbx CDR StartTime 2025-01-14 04:19:04 - End Time 2025-01-14 07:19:04 [2025-01-14 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244706', 'tblTempUsageDetail_20' ) start [2025-01-14 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244706', 'tblTempUsageDetail_20' ) end [2025-01-14 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244706', 'tblTempVendorCDR_20' ) start [2025-01-14 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244706', 'tblTempVendorCDR_20' ) end [2025-01-14 07:19:17] Production.INFO: ProcessCDR(1,14244706,1,1,2) [2025-01-14 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244706', 'tblTempUsageDetail_20' ) start [2025-01-14 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244706', 'tblTempUsageDetail_20' ) end [2025-01-14 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:19:22] Production.INFO: ==29665== Releasing lock... [2025-01-14 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:20:05 [end_date_ymd] => 2025-01-14 07:20:05 [RateCDR] => 1 ) [2025-01-14 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:20:05' and `end` < '2025-01-14 07:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:20:18] Production.INFO: count ==72 [2025-01-14 07:20:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:20:05 - End Time 2025-01-14 07:20:05 [2025-01-14 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244712', 'tblTempUsageDetail_20' ) start [2025-01-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244712', 'tblTempUsageDetail_20' ) end [2025-01-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244712', 'tblTempVendorCDR_20' ) start [2025-01-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244712', 'tblTempVendorCDR_20' ) end [2025-01-14 07:20:18] Production.INFO: ProcessCDR(1,14244712,1,1,2) [2025-01-14 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244712', 'tblTempUsageDetail_20' ) start [2025-01-14 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244712', 'tblTempUsageDetail_20' ) end [2025-01-14 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:20:21] Production.INFO: ==29743== Releasing lock... [2025-01-14 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:21:05 [end_date_ymd] => 2025-01-14 07:21:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:21:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:21:19] Production.INFO: count ==74 [2025-01-14 07:21:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:21:05 - End Time 2025-01-14 07:21:05 [2025-01-14 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244717', 'tblTempUsageDetail_20' ) start [2025-01-14 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244717', 'tblTempUsageDetail_20' ) end [2025-01-14 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244717', 'tblTempVendorCDR_20' ) start [2025-01-14 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244717', 'tblTempVendorCDR_20' ) end [2025-01-14 07:21:19] Production.INFO: ProcessCDR(1,14244717,1,1,2) [2025-01-14 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244717', 'tblTempUsageDetail_20' ) start [2025-01-14 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244717', 'tblTempUsageDetail_20' ) end [2025-01-14 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:21:23] Production.INFO: ==29821== Releasing lock... [2025-01-14 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:21:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:22:05 [end_date_ymd] => 2025-01-14 07:22:05 [RateCDR] => 1 ) [2025-01-14 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:22:05' and `end` < '2025-01-14 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:22:18] Production.INFO: count ==76 [2025-01-14 07:22:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:22:05 - End Time 2025-01-14 07:22:05 [2025-01-14 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244722', 'tblTempUsageDetail_20' ) start [2025-01-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244722', 'tblTempUsageDetail_20' ) end [2025-01-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244722', 'tblTempVendorCDR_20' ) start [2025-01-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244722', 'tblTempVendorCDR_20' ) end [2025-01-14 07:22:18] Production.INFO: ProcessCDR(1,14244722,1,1,2) [2025-01-14 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244722', 'tblTempUsageDetail_20' ) start [2025-01-14 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244722', 'tblTempUsageDetail_20' ) end [2025-01-14 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:22:23] Production.INFO: ==29897== Releasing lock... [2025-01-14 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:22:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:23:05 [end_date_ymd] => 2025-01-14 07:23:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:23:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:23:18] Production.INFO: count ==81 [2025-01-14 07:23:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:23:05 - End Time 2025-01-14 07:23:05 [2025-01-14 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244727', 'tblTempUsageDetail_20' ) start [2025-01-14 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244727', 'tblTempUsageDetail_20' ) end [2025-01-14 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244727', 'tblTempVendorCDR_20' ) start [2025-01-14 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244727', 'tblTempVendorCDR_20' ) end [2025-01-14 07:23:18] Production.INFO: ProcessCDR(1,14244727,1,1,2) [2025-01-14 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244727', 'tblTempUsageDetail_20' ) start [2025-01-14 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244727', 'tblTempUsageDetail_20' ) end [2025-01-14 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:23:21] Production.INFO: ==29975== Releasing lock... [2025-01-14 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:24:05 [end_date_ymd] => 2025-01-14 07:24:05 [RateCDR] => 1 ) [2025-01-14 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:24:05' and `end` < '2025-01-14 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:24:17] Production.INFO: count ==81 [2025-01-14 07:24:17] Production.ERROR: pbx CDR StartTime 2025-01-14 04:24:05 - End Time 2025-01-14 07:24:05 [2025-01-14 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244732', 'tblTempUsageDetail_20' ) start [2025-01-14 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244732', 'tblTempUsageDetail_20' ) end [2025-01-14 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244732', 'tblTempVendorCDR_20' ) start [2025-01-14 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244732', 'tblTempVendorCDR_20' ) end [2025-01-14 07:24:17] Production.INFO: ProcessCDR(1,14244732,1,1,2) [2025-01-14 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244732', 'tblTempUsageDetail_20' ) start [2025-01-14 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244732', 'tblTempUsageDetail_20' ) end [2025-01-14 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:24:21] Production.INFO: ==30049== Releasing lock... [2025-01-14 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:25:05 [end_date_ymd] => 2025-01-14 07:25:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:25:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:25:18] Production.INFO: count ==81 [2025-01-14 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:25:05 - End Time 2025-01-14 07:25:05 [2025-01-14 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244737', 'tblTempUsageDetail_20' ) start [2025-01-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244737', 'tblTempUsageDetail_20' ) end [2025-01-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244737', 'tblTempVendorCDR_20' ) start [2025-01-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244737', 'tblTempVendorCDR_20' ) end [2025-01-14 07:25:18] Production.INFO: ProcessCDR(1,14244737,1,1,2) [2025-01-14 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244737', 'tblTempUsageDetail_20' ) start [2025-01-14 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244737', 'tblTempUsageDetail_20' ) end [2025-01-14 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:25:21] Production.INFO: ==30125== Releasing lock... [2025-01-14 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:26:05 [end_date_ymd] => 2025-01-14 07:26:05 [RateCDR] => 1 ) [2025-01-14 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:26:05' and `end` < '2025-01-14 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:26:17] Production.INFO: count ==81 [2025-01-14 07:26:17] Production.ERROR: pbx CDR StartTime 2025-01-14 04:26:05 - End Time 2025-01-14 07:26:05 [2025-01-14 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244742', 'tblTempUsageDetail_20' ) start [2025-01-14 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244742', 'tblTempUsageDetail_20' ) end [2025-01-14 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244742', 'tblTempVendorCDR_20' ) start [2025-01-14 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244742', 'tblTempVendorCDR_20' ) end [2025-01-14 07:26:17] Production.INFO: ProcessCDR(1,14244742,1,1,2) [2025-01-14 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244742', 'tblTempUsageDetail_20' ) start [2025-01-14 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244742', 'tblTempUsageDetail_20' ) end [2025-01-14 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:26:21] Production.INFO: ==30243== Releasing lock... [2025-01-14 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:27:06 [end_date_ymd] => 2025-01-14 07:27:06 [RateCDR] => 1 ) [2025-01-14 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:27:06' and `end` < '2025-01-14 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:27:18] Production.INFO: count ==81 [2025-01-14 07:27:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:27:06 - End Time 2025-01-14 07:27:06 [2025-01-14 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244747', 'tblTempUsageDetail_20' ) start [2025-01-14 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244747', 'tblTempUsageDetail_20' ) end [2025-01-14 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244747', 'tblTempVendorCDR_20' ) start [2025-01-14 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244747', 'tblTempVendorCDR_20' ) end [2025-01-14 07:27:18] Production.INFO: ProcessCDR(1,14244747,1,1,2) [2025-01-14 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244747', 'tblTempUsageDetail_20' ) start [2025-01-14 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244747', 'tblTempUsageDetail_20' ) end [2025-01-14 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:27:22] Production.INFO: ==30318== Releasing lock... [2025-01-14 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:28:05 [end_date_ymd] => 2025-01-14 07:28:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:28:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:28:18] Production.INFO: count ==82 [2025-01-14 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:28:05 - End Time 2025-01-14 07:28:05 [2025-01-14 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244752', 'tblTempUsageDetail_20' ) start [2025-01-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244752', 'tblTempUsageDetail_20' ) end [2025-01-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244752', 'tblTempVendorCDR_20' ) start [2025-01-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244752', 'tblTempVendorCDR_20' ) end [2025-01-14 07:28:18] Production.INFO: ProcessCDR(1,14244752,1,1,2) [2025-01-14 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244752', 'tblTempUsageDetail_20' ) start [2025-01-14 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244752', 'tblTempUsageDetail_20' ) end [2025-01-14 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:28:22] Production.INFO: ==30389== Releasing lock... [2025-01-14 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:29:05 [end_date_ymd] => 2025-01-14 07:29:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:29:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:29:17] Production.INFO: count ==82 [2025-01-14 07:29:17] Production.ERROR: pbx CDR StartTime 2025-01-14 04:29:05 - End Time 2025-01-14 07:29:05 [2025-01-14 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244757', 'tblTempUsageDetail_20' ) start [2025-01-14 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244757', 'tblTempUsageDetail_20' ) end [2025-01-14 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244757', 'tblTempVendorCDR_20' ) start [2025-01-14 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244757', 'tblTempVendorCDR_20' ) end [2025-01-14 07:29:17] Production.INFO: ProcessCDR(1,14244757,1,1,2) [2025-01-14 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244757', 'tblTempUsageDetail_20' ) start [2025-01-14 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244757', 'tblTempUsageDetail_20' ) end [2025-01-14 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:29:21] Production.INFO: ==30470== Releasing lock... [2025-01-14 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:30:06 [end_date_ymd] => 2025-01-14 07:30:06 [RateCDR] => 1 ) [2025-01-14 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:30:06' and `end` < '2025-01-14 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:30:19] Production.INFO: count ==85 [2025-01-14 07:30:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:30:06 - End Time 2025-01-14 07:30:06 [2025-01-14 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244762', 'tblTempUsageDetail_20' ) start [2025-01-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244762', 'tblTempUsageDetail_20' ) end [2025-01-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244762', 'tblTempVendorCDR_20' ) start [2025-01-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244762', 'tblTempVendorCDR_20' ) end [2025-01-14 07:30:19] Production.INFO: ProcessCDR(1,14244762,1,1,2) [2025-01-14 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244762', 'tblTempUsageDetail_20' ) start [2025-01-14 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244762', 'tblTempUsageDetail_20' ) end [2025-01-14 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:30:22] Production.INFO: ==30544== Releasing lock... [2025-01-14 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:31:06 [end_date_ymd] => 2025-01-14 07:31:06 [RateCDR] => 1 ) [2025-01-14 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:31:06' and `end` < '2025-01-14 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:31:19] Production.INFO: count ==92 [2025-01-14 07:31:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:31:06 - End Time 2025-01-14 07:31:06 [2025-01-14 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244768', 'tblTempUsageDetail_20' ) start [2025-01-14 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244768', 'tblTempUsageDetail_20' ) end [2025-01-14 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244768', 'tblTempVendorCDR_20' ) start [2025-01-14 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244768', 'tblTempVendorCDR_20' ) end [2025-01-14 07:31:19] Production.INFO: ProcessCDR(1,14244768,1,1,2) [2025-01-14 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244768', 'tblTempUsageDetail_20' ) start [2025-01-14 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244768', 'tblTempUsageDetail_20' ) end [2025-01-14 07:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:31:23] Production.INFO: ==30625== Releasing lock... [2025-01-14 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:31:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:32:05 [end_date_ymd] => 2025-01-14 07:32:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:32:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:32:17] Production.INFO: count ==92 [2025-01-14 07:32:17] Production.ERROR: pbx CDR StartTime 2025-01-14 04:32:05 - End Time 2025-01-14 07:32:05 [2025-01-14 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244773', 'tblTempUsageDetail_20' ) start [2025-01-14 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244773', 'tblTempUsageDetail_20' ) end [2025-01-14 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244773', 'tblTempVendorCDR_20' ) start [2025-01-14 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244773', 'tblTempVendorCDR_20' ) end [2025-01-14 07:32:17] Production.INFO: ProcessCDR(1,14244773,1,1,2) [2025-01-14 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244773', 'tblTempUsageDetail_20' ) start [2025-01-14 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244773', 'tblTempUsageDetail_20' ) end [2025-01-14 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:32:21] Production.INFO: ==30697== Releasing lock... [2025-01-14 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:33:05 [end_date_ymd] => 2025-01-14 07:33:05 [RateCDR] => 1 ) [2025-01-14 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:33:05' and `end` < '2025-01-14 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:33:17] Production.INFO: count ==92 [2025-01-14 07:33:17] Production.ERROR: pbx CDR StartTime 2025-01-14 04:33:05 - End Time 2025-01-14 07:33:05 [2025-01-14 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244778', 'tblTempUsageDetail_20' ) start [2025-01-14 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244778', 'tblTempUsageDetail_20' ) end [2025-01-14 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244778', 'tblTempVendorCDR_20' ) start [2025-01-14 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244778', 'tblTempVendorCDR_20' ) end [2025-01-14 07:33:17] Production.INFO: ProcessCDR(1,14244778,1,1,2) [2025-01-14 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244778', 'tblTempUsageDetail_20' ) start [2025-01-14 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244778', 'tblTempUsageDetail_20' ) end [2025-01-14 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:33:21] Production.INFO: ==30767== Releasing lock... [2025-01-14 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:34:05 [end_date_ymd] => 2025-01-14 07:34:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:34:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:34:18] Production.INFO: count ==92 [2025-01-14 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:34:05 - End Time 2025-01-14 07:34:05 [2025-01-14 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244783', 'tblTempUsageDetail_20' ) start [2025-01-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244783', 'tblTempUsageDetail_20' ) end [2025-01-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244783', 'tblTempVendorCDR_20' ) start [2025-01-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244783', 'tblTempVendorCDR_20' ) end [2025-01-14 07:34:18] Production.INFO: ProcessCDR(1,14244783,1,1,2) [2025-01-14 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244783', 'tblTempUsageDetail_20' ) start [2025-01-14 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244783', 'tblTempUsageDetail_20' ) end [2025-01-14 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:34:21] Production.INFO: ==30856== Releasing lock... [2025-01-14 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:35:05 [end_date_ymd] => 2025-01-14 07:35:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:35:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:35:18] Production.INFO: count ==92 [2025-01-14 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:35:05 - End Time 2025-01-14 07:35:05 [2025-01-14 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244788', 'tblTempUsageDetail_20' ) start [2025-01-14 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244788', 'tblTempUsageDetail_20' ) end [2025-01-14 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244788', 'tblTempVendorCDR_20' ) start [2025-01-14 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244788', 'tblTempVendorCDR_20' ) end [2025-01-14 07:35:18] Production.INFO: ProcessCDR(1,14244788,1,1,2) [2025-01-14 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244788', 'tblTempUsageDetail_20' ) start [2025-01-14 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244788', 'tblTempUsageDetail_20' ) end [2025-01-14 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:35:21] Production.INFO: ==30930== Releasing lock... [2025-01-14 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:36:05 [end_date_ymd] => 2025-01-14 07:36:05 [RateCDR] => 1 ) [2025-01-14 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:36:05' and `end` < '2025-01-14 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:36:18] Production.INFO: count ==92 [2025-01-14 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:36:05 - End Time 2025-01-14 07:36:05 [2025-01-14 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244793', 'tblTempUsageDetail_20' ) start [2025-01-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244793', 'tblTempUsageDetail_20' ) end [2025-01-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244793', 'tblTempVendorCDR_20' ) start [2025-01-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244793', 'tblTempVendorCDR_20' ) end [2025-01-14 07:36:18] Production.INFO: ProcessCDR(1,14244793,1,1,2) [2025-01-14 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244793', 'tblTempUsageDetail_20' ) start [2025-01-14 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244793', 'tblTempUsageDetail_20' ) end [2025-01-14 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:36:22] Production.INFO: ==31002== Releasing lock... [2025-01-14 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:37:05 [end_date_ymd] => 2025-01-14 07:37:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:37:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:37:19] Production.INFO: count ==92 [2025-01-14 07:37:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:37:05 - End Time 2025-01-14 07:37:05 [2025-01-14 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244798', 'tblTempUsageDetail_20' ) start [2025-01-14 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244798', 'tblTempUsageDetail_20' ) end [2025-01-14 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244798', 'tblTempVendorCDR_20' ) start [2025-01-14 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244798', 'tblTempVendorCDR_20' ) end [2025-01-14 07:37:19] Production.INFO: ProcessCDR(1,14244798,1,1,2) [2025-01-14 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244798', 'tblTempUsageDetail_20' ) start [2025-01-14 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244798', 'tblTempUsageDetail_20' ) end [2025-01-14 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:37:22] Production.INFO: ==31074== Releasing lock... [2025-01-14 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:37:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:38:05 [end_date_ymd] => 2025-01-14 07:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:38:17] Production.INFO: count ==93 [2025-01-14 07:38:17] Production.ERROR: pbx CDR StartTime 2025-01-14 04:38:05 - End Time 2025-01-14 07:38:05 [2025-01-14 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244803', 'tblTempUsageDetail_20' ) start [2025-01-14 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244803', 'tblTempUsageDetail_20' ) end [2025-01-14 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244803', 'tblTempVendorCDR_20' ) start [2025-01-14 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244803', 'tblTempVendorCDR_20' ) end [2025-01-14 07:38:17] Production.INFO: ProcessCDR(1,14244803,1,1,2) [2025-01-14 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244803', 'tblTempUsageDetail_20' ) start [2025-01-14 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244803', 'tblTempUsageDetail_20' ) end [2025-01-14 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:38:21] Production.INFO: ==31146== Releasing lock... [2025-01-14 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:39:05 [end_date_ymd] => 2025-01-14 07:39:05 [RateCDR] => 1 ) [2025-01-14 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:39:05' and `end` < '2025-01-14 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:39:19] Production.INFO: count ==93 [2025-01-14 07:39:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:39:05 - End Time 2025-01-14 07:39:05 [2025-01-14 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244808', 'tblTempUsageDetail_20' ) start [2025-01-14 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244808', 'tblTempUsageDetail_20' ) end [2025-01-14 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244808', 'tblTempVendorCDR_20' ) start [2025-01-14 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244808', 'tblTempVendorCDR_20' ) end [2025-01-14 07:39:19] Production.INFO: ProcessCDR(1,14244808,1,1,2) [2025-01-14 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244808', 'tblTempUsageDetail_20' ) start [2025-01-14 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244808', 'tblTempUsageDetail_20' ) end [2025-01-14 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:39:22] Production.INFO: ==31220== Releasing lock... [2025-01-14 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-14 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:40:05 [end_date_ymd] => 2025-01-14 07:40:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:40:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:40:19] Production.INFO: count ==100 [2025-01-14 07:40:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:40:05 - End Time 2025-01-14 07:40:05 [2025-01-14 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244814', 'tblTempUsageDetail_20' ) start [2025-01-14 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244814', 'tblTempUsageDetail_20' ) end [2025-01-14 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244814', 'tblTempVendorCDR_20' ) start [2025-01-14 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244814', 'tblTempVendorCDR_20' ) end [2025-01-14 07:40:19] Production.INFO: ProcessCDR(1,14244814,1,1,2) [2025-01-14 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244814', 'tblTempUsageDetail_20' ) start [2025-01-14 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244814', 'tblTempUsageDetail_20' ) end [2025-01-14 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:40:22] Production.INFO: ==31295== Releasing lock... [2025-01-14 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:41:05 [end_date_ymd] => 2025-01-14 07:41:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:41:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:41:18] Production.INFO: count ==102 [2025-01-14 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:41:05 - End Time 2025-01-14 07:41:05 [2025-01-14 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244819', 'tblTempUsageDetail_20' ) start [2025-01-14 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244819', 'tblTempUsageDetail_20' ) end [2025-01-14 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244819', 'tblTempVendorCDR_20' ) start [2025-01-14 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244819', 'tblTempVendorCDR_20' ) end [2025-01-14 07:41:18] Production.INFO: ProcessCDR(1,14244819,1,1,2) [2025-01-14 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244819', 'tblTempUsageDetail_20' ) start [2025-01-14 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244819', 'tblTempUsageDetail_20' ) end [2025-01-14 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:41:21] Production.INFO: ==31368== Releasing lock... [2025-01-14 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 07:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:42:04 [end_date_ymd] => 2025-01-14 07:42:04 [RateCDR] => 1 ) [2025-01-14 07:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:42:04' and `end` < '2025-01-14 07:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:42:17] Production.INFO: count ==102 [2025-01-14 07:42:17] Production.ERROR: pbx CDR StartTime 2025-01-14 04:42:04 - End Time 2025-01-14 07:42:04 [2025-01-14 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244824', 'tblTempUsageDetail_20' ) start [2025-01-14 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244824', 'tblTempUsageDetail_20' ) end [2025-01-14 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244824', 'tblTempVendorCDR_20' ) start [2025-01-14 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244824', 'tblTempVendorCDR_20' ) end [2025-01-14 07:42:17] Production.INFO: ProcessCDR(1,14244824,1,1,2) [2025-01-14 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244824', 'tblTempUsageDetail_20' ) start [2025-01-14 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244824', 'tblTempUsageDetail_20' ) end [2025-01-14 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:42:20] Production.INFO: ==31479== Releasing lock... [2025-01-14 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:42:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:43:05 [end_date_ymd] => 2025-01-14 07:43:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:43:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:43:18] Production.INFO: count ==101 [2025-01-14 07:43:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:43:05 - End Time 2025-01-14 07:43:05 [2025-01-14 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244829', 'tblTempUsageDetail_20' ) start [2025-01-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244829', 'tblTempUsageDetail_20' ) end [2025-01-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244829', 'tblTempVendorCDR_20' ) start [2025-01-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244829', 'tblTempVendorCDR_20' ) end [2025-01-14 07:43:18] Production.INFO: ProcessCDR(1,14244829,1,1,2) [2025-01-14 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244829', 'tblTempUsageDetail_20' ) start [2025-01-14 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244829', 'tblTempUsageDetail_20' ) end [2025-01-14 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:43:21] Production.INFO: ==31552== Releasing lock... [2025-01-14 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:44:05 [end_date_ymd] => 2025-01-14 07:44:05 [RateCDR] => 1 ) [2025-01-14 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:44:05' and `end` < '2025-01-14 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:44:18] Production.INFO: count ==108 [2025-01-14 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:44:05 - End Time 2025-01-14 07:44:05 [2025-01-14 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244834', 'tblTempUsageDetail_20' ) start [2025-01-14 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244834', 'tblTempUsageDetail_20' ) end [2025-01-14 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244834', 'tblTempVendorCDR_20' ) start [2025-01-14 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244834', 'tblTempVendorCDR_20' ) end [2025-01-14 07:44:18] Production.INFO: ProcessCDR(1,14244834,1,1,2) [2025-01-14 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244834', 'tblTempUsageDetail_20' ) start [2025-01-14 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244834', 'tblTempUsageDetail_20' ) end [2025-01-14 07:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:44:23] Production.INFO: ==31628== Releasing lock... [2025-01-14 07:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:44:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:45:06 [end_date_ymd] => 2025-01-14 07:45:06 [RateCDR] => 1 ) [2025-01-14 07:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:45:06' and `end` < '2025-01-14 07:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:45:19] Production.INFO: count ==108 [2025-01-14 07:45:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:45:06 - End Time 2025-01-14 07:45:06 [2025-01-14 07:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244839', 'tblTempUsageDetail_20' ) start [2025-01-14 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244839', 'tblTempUsageDetail_20' ) end [2025-01-14 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244839', 'tblTempVendorCDR_20' ) start [2025-01-14 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244839', 'tblTempVendorCDR_20' ) end [2025-01-14 07:45:19] Production.INFO: ProcessCDR(1,14244839,1,1,2) [2025-01-14 07:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244839', 'tblTempUsageDetail_20' ) start [2025-01-14 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244839', 'tblTempUsageDetail_20' ) end [2025-01-14 07:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:45:23] Production.INFO: ==31702== Releasing lock... [2025-01-14 07:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:45:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:46:05 [end_date_ymd] => 2025-01-14 07:46:05 [RateCDR] => 1 ) [2025-01-14 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:46:05' and `end` < '2025-01-14 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:46:18] Production.INFO: count ==108 [2025-01-14 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:46:05 - End Time 2025-01-14 07:46:05 [2025-01-14 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244844', 'tblTempUsageDetail_20' ) start [2025-01-14 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244844', 'tblTempUsageDetail_20' ) end [2025-01-14 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244844', 'tblTempVendorCDR_20' ) start [2025-01-14 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244844', 'tblTempVendorCDR_20' ) end [2025-01-14 07:46:18] Production.INFO: ProcessCDR(1,14244844,1,1,2) [2025-01-14 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244844', 'tblTempUsageDetail_20' ) start [2025-01-14 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244844', 'tblTempUsageDetail_20' ) end [2025-01-14 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:46:22] Production.INFO: ==31775== Releasing lock... [2025-01-14 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:46:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-14 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:47:05 [end_date_ymd] => 2025-01-14 07:47:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:47:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:47:17] Production.INFO: count ==123 [2025-01-14 07:47:17] Production.ERROR: pbx CDR StartTime 2025-01-14 04:47:05 - End Time 2025-01-14 07:47:05 [2025-01-14 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244849', 'tblTempUsageDetail_20' ) start [2025-01-14 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244849', 'tblTempUsageDetail_20' ) end [2025-01-14 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244849', 'tblTempVendorCDR_20' ) start [2025-01-14 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244849', 'tblTempVendorCDR_20' ) end [2025-01-14 07:47:17] Production.INFO: ProcessCDR(1,14244849,1,1,2) [2025-01-14 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244849', 'tblTempUsageDetail_20' ) start [2025-01-14 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244849', 'tblTempUsageDetail_20' ) end [2025-01-14 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:47:21] Production.INFO: ==31848== Releasing lock... [2025-01-14 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:48:05 [end_date_ymd] => 2025-01-14 07:48:05 [RateCDR] => 1 ) [2025-01-14 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:48:05' and `end` < '2025-01-14 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:48:18] Production.INFO: count ==124 [2025-01-14 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:48:05 - End Time 2025-01-14 07:48:05 [2025-01-14 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244854', 'tblTempUsageDetail_20' ) start [2025-01-14 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244854', 'tblTempUsageDetail_20' ) end [2025-01-14 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244854', 'tblTempVendorCDR_20' ) start [2025-01-14 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244854', 'tblTempVendorCDR_20' ) end [2025-01-14 07:48:18] Production.INFO: ProcessCDR(1,14244854,1,1,2) [2025-01-14 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244854', 'tblTempUsageDetail_20' ) start [2025-01-14 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244854', 'tblTempUsageDetail_20' ) end [2025-01-14 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:48:23] Production.INFO: ==31922== Releasing lock... [2025-01-14 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:48:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:49:05 [end_date_ymd] => 2025-01-14 07:49:05 [RateCDR] => 1 ) [2025-01-14 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:49:05' and `end` < '2025-01-14 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:49:18] Production.INFO: count ==124 [2025-01-14 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:49:05 - End Time 2025-01-14 07:49:05 [2025-01-14 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244859', 'tblTempUsageDetail_20' ) start [2025-01-14 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244859', 'tblTempUsageDetail_20' ) end [2025-01-14 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244859', 'tblTempVendorCDR_20' ) start [2025-01-14 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244859', 'tblTempVendorCDR_20' ) end [2025-01-14 07:49:18] Production.INFO: ProcessCDR(1,14244859,1,1,2) [2025-01-14 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244859', 'tblTempUsageDetail_20' ) start [2025-01-14 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244859', 'tblTempUsageDetail_20' ) end [2025-01-14 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:49:22] Production.INFO: ==31994== Releasing lock... [2025-01-14 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:50:05 [end_date_ymd] => 2025-01-14 07:50:05 [RateCDR] => 1 ) [2025-01-14 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:50:05' and `end` < '2025-01-14 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:50:18] Production.INFO: count ==124 [2025-01-14 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:50:05 - End Time 2025-01-14 07:50:05 [2025-01-14 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244865', 'tblTempUsageDetail_20' ) start [2025-01-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244865', 'tblTempUsageDetail_20' ) end [2025-01-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244865', 'tblTempVendorCDR_20' ) start [2025-01-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244865', 'tblTempVendorCDR_20' ) end [2025-01-14 07:50:18] Production.INFO: ProcessCDR(1,14244865,1,1,2) [2025-01-14 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244865', 'tblTempUsageDetail_20' ) start [2025-01-14 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244865', 'tblTempUsageDetail_20' ) end [2025-01-14 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:50:21] Production.INFO: ==32066== Releasing lock... [2025-01-14 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:51:05 [end_date_ymd] => 2025-01-14 07:51:05 [RateCDR] => 1 ) [2025-01-14 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:51:05' and `end` < '2025-01-14 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:51:18] Production.INFO: count ==124 [2025-01-14 07:51:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:51:05 - End Time 2025-01-14 07:51:05 [2025-01-14 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244870', 'tblTempUsageDetail_20' ) start [2025-01-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244870', 'tblTempUsageDetail_20' ) end [2025-01-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244870', 'tblTempVendorCDR_20' ) start [2025-01-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244870', 'tblTempVendorCDR_20' ) end [2025-01-14 07:51:18] Production.INFO: ProcessCDR(1,14244870,1,1,2) [2025-01-14 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244870', 'tblTempUsageDetail_20' ) start [2025-01-14 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244870', 'tblTempUsageDetail_20' ) end [2025-01-14 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:51:22] Production.INFO: ==32140== Releasing lock... [2025-01-14 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:52:05 [end_date_ymd] => 2025-01-14 07:52:05 [RateCDR] => 1 ) [2025-01-14 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:52:05' and `end` < '2025-01-14 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:52:18] Production.INFO: count ==124 [2025-01-14 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:52:05 - End Time 2025-01-14 07:52:05 [2025-01-14 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244875', 'tblTempUsageDetail_20' ) start [2025-01-14 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244875', 'tblTempUsageDetail_20' ) end [2025-01-14 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244875', 'tblTempVendorCDR_20' ) start [2025-01-14 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244875', 'tblTempVendorCDR_20' ) end [2025-01-14 07:52:18] Production.INFO: ProcessCDR(1,14244875,1,1,2) [2025-01-14 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244875', 'tblTempUsageDetail_20' ) start [2025-01-14 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244875', 'tblTempUsageDetail_20' ) end [2025-01-14 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:52:22] Production.INFO: ==32217== Releasing lock... [2025-01-14 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:53:05 [end_date_ymd] => 2025-01-14 07:53:05 [RateCDR] => 1 ) [2025-01-14 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:53:05' and `end` < '2025-01-14 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:53:18] Production.INFO: count ==124 [2025-01-14 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:53:05 - End Time 2025-01-14 07:53:05 [2025-01-14 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244880', 'tblTempUsageDetail_20' ) start [2025-01-14 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244880', 'tblTempUsageDetail_20' ) end [2025-01-14 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244880', 'tblTempVendorCDR_20' ) start [2025-01-14 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244880', 'tblTempVendorCDR_20' ) end [2025-01-14 07:53:18] Production.INFO: ProcessCDR(1,14244880,1,1,2) [2025-01-14 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244880', 'tblTempUsageDetail_20' ) start [2025-01-14 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244880', 'tblTempUsageDetail_20' ) end [2025-01-14 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:53:21] Production.INFO: ==32289== Releasing lock... [2025-01-14 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:54:06 [end_date_ymd] => 2025-01-14 07:54:06 [RateCDR] => 1 ) [2025-01-14 07:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:54:06' and `end` < '2025-01-14 07:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:54:18] Production.INFO: count ==124 [2025-01-14 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:54:06 - End Time 2025-01-14 07:54:06 [2025-01-14 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244885', 'tblTempUsageDetail_20' ) start [2025-01-14 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244885', 'tblTempUsageDetail_20' ) end [2025-01-14 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244885', 'tblTempVendorCDR_20' ) start [2025-01-14 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244885', 'tblTempVendorCDR_20' ) end [2025-01-14 07:54:18] Production.INFO: ProcessCDR(1,14244885,1,1,2) [2025-01-14 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244885', 'tblTempUsageDetail_20' ) start [2025-01-14 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244885', 'tblTempUsageDetail_20' ) end [2025-01-14 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:54:21] Production.INFO: ==32359== Releasing lock... [2025-01-14 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:55:06 [end_date_ymd] => 2025-01-14 07:55:06 [RateCDR] => 1 ) [2025-01-14 07:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:55:06' and `end` < '2025-01-14 07:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:55:19] Production.INFO: count ==124 [2025-01-14 07:55:19] Production.ERROR: pbx CDR StartTime 2025-01-14 04:55:06 - End Time 2025-01-14 07:55:06 [2025-01-14 07:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244890', 'tblTempUsageDetail_20' ) start [2025-01-14 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244890', 'tblTempUsageDetail_20' ) end [2025-01-14 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244890', 'tblTempVendorCDR_20' ) start [2025-01-14 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244890', 'tblTempVendorCDR_20' ) end [2025-01-14 07:55:19] Production.INFO: ProcessCDR(1,14244890,1,1,2) [2025-01-14 07:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244890', 'tblTempUsageDetail_20' ) start [2025-01-14 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244890', 'tblTempUsageDetail_20' ) end [2025-01-14 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:55:22] Production.INFO: ==32431== Releasing lock... [2025-01-14 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:55:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:56:05 [end_date_ymd] => 2025-01-14 07:56:05 [RateCDR] => 1 ) [2025-01-14 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:56:05' and `end` < '2025-01-14 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:56:18] Production.INFO: count ==124 [2025-01-14 07:56:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:56:05 - End Time 2025-01-14 07:56:05 [2025-01-14 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244895', 'tblTempUsageDetail_20' ) start [2025-01-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244895', 'tblTempUsageDetail_20' ) end [2025-01-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244895', 'tblTempVendorCDR_20' ) start [2025-01-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244895', 'tblTempVendorCDR_20' ) end [2025-01-14 07:56:18] Production.INFO: ProcessCDR(1,14244895,1,1,2) [2025-01-14 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244895', 'tblTempUsageDetail_20' ) start [2025-01-14 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244895', 'tblTempUsageDetail_20' ) end [2025-01-14 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:56:21] Production.INFO: ==32503== Releasing lock... [2025-01-14 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:57:05 [end_date_ymd] => 2025-01-14 07:57:05 [RateCDR] => 1 ) [2025-01-14 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 04:57:05' and `end` < '2025-01-14 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 07:57:18] Production.INFO: count ==126 [2025-01-14 07:57:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:57:05 - End Time 2025-01-14 07:57:05 [2025-01-14 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244900', 'tblTempUsageDetail_20' ) start [2025-01-14 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244900', 'tblTempUsageDetail_20' ) end [2025-01-14 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244900', 'tblTempVendorCDR_20' ) start [2025-01-14 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244900', 'tblTempVendorCDR_20' ) end [2025-01-14 07:57:18] Production.INFO: ProcessCDR(1,14244900,1,1,2) [2025-01-14 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244900', 'tblTempUsageDetail_20' ) start [2025-01-14 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244900', 'tblTempUsageDetail_20' ) end [2025-01-14 07:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:57:23] Production.INFO: ==32621== Releasing lock... [2025-01-14 07:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:57:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-14 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:58:05 [end_date_ymd] => 2025-01-14 07:58:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:58:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:58:18] Production.INFO: count ==131 [2025-01-14 07:58:18] Production.ERROR: pbx CDR StartTime 2025-01-14 04:58:05 - End Time 2025-01-14 07:58:05 [2025-01-14 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244905', 'tblTempUsageDetail_20' ) start [2025-01-14 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244905', 'tblTempUsageDetail_20' ) end [2025-01-14 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244905', 'tblTempVendorCDR_20' ) start [2025-01-14 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244905', 'tblTempVendorCDR_20' ) end [2025-01-14 07:58:18] Production.INFO: ProcessCDR(1,14244905,1,1,2) [2025-01-14 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244905', 'tblTempUsageDetail_20' ) start [2025-01-14 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244905', 'tblTempUsageDetail_20' ) end [2025-01-14 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:58:21] Production.INFO: ==32697== Releasing lock... [2025-01-14 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:58:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 04:59:05 [end_date_ymd] => 2025-01-14 07:59:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 04:59:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 07:59:17] Production.INFO: count ==137 [2025-01-14 07:59:17] Production.ERROR: pbx CDR StartTime 2025-01-14 04:59:05 - End Time 2025-01-14 07:59:05 [2025-01-14 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244910', 'tblTempUsageDetail_20' ) start [2025-01-14 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244910', 'tblTempUsageDetail_20' ) end [2025-01-14 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244910', 'tblTempVendorCDR_20' ) start [2025-01-14 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244910', 'tblTempVendorCDR_20' ) end [2025-01-14 07:59:17] Production.INFO: ProcessCDR(1,14244910,1,1,2) [2025-01-14 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244910', 'tblTempUsageDetail_20' ) start [2025-01-14 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244910', 'tblTempUsageDetail_20' ) end [2025-01-14 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 07:59:21] Production.INFO: ==302== Releasing lock... [2025-01-14 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 07:59:21] Production.INFO: 29 MB #Memory Used# [2025-01-14 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:00:07 [end_date_ymd] => 2025-01-14 08:00:07 [RateCDR] => 1 ) [2025-01-14 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:00:07' and `end` < '2025-01-14 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:00:19] Production.INFO: count ==145 [2025-01-14 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-14 05:00:07 - End Time 2025-01-14 08:00:07 [2025-01-14 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244916', 'tblTempUsageDetail_20' ) start [2025-01-14 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244916', 'tblTempUsageDetail_20' ) end [2025-01-14 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244916', 'tblTempVendorCDR_20' ) start [2025-01-14 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244916', 'tblTempVendorCDR_20' ) end [2025-01-14 08:00:19] Production.INFO: ProcessCDR(1,14244916,1,1,2) [2025-01-14 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244916', 'tblTempUsageDetail_20' ) start [2025-01-14 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244916', 'tblTempUsageDetail_20' ) end [2025-01-14 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:00:23] Production.INFO: ==399== Releasing lock... [2025-01-14 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:00:23] Production.INFO: 29 MB #Memory Used# [2025-01-14 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:01:05 [end_date_ymd] => 2025-01-14 08:01:05 [RateCDR] => 1 ) [2025-01-14 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:01:05' and `end` < '2025-01-14 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:01:18] Production.INFO: count ==166 [2025-01-14 08:01:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:01:05 - End Time 2025-01-14 08:01:05 [2025-01-14 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244921', 'tblTempUsageDetail_20' ) start [2025-01-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244921', 'tblTempUsageDetail_20' ) end [2025-01-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244921', 'tblTempVendorCDR_20' ) start [2025-01-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244921', 'tblTempVendorCDR_20' ) end [2025-01-14 08:01:18] Production.INFO: ProcessCDR(1,14244921,1,1,2) [2025-01-14 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244921', 'tblTempUsageDetail_20' ) start [2025-01-14 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244921', 'tblTempUsageDetail_20' ) end [2025-01-14 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:01:23] Production.INFO: ==487== Releasing lock... [2025-01-14 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:01:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:02:06 [end_date_ymd] => 2025-01-14 08:02:06 [RateCDR] => 1 ) [2025-01-14 08:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:02:06' and `end` < '2025-01-14 08:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:02:18] Production.INFO: count ==171 [2025-01-14 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:02:06 - End Time 2025-01-14 08:02:06 [2025-01-14 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244926', 'tblTempUsageDetail_20' ) start [2025-01-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244926', 'tblTempUsageDetail_20' ) end [2025-01-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244926', 'tblTempVendorCDR_20' ) start [2025-01-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244926', 'tblTempVendorCDR_20' ) end [2025-01-14 08:02:18] Production.INFO: ProcessCDR(1,14244926,1,1,2) [2025-01-14 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244926', 'tblTempUsageDetail_20' ) start [2025-01-14 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244926', 'tblTempUsageDetail_20' ) end [2025-01-14 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:02:22] Production.INFO: ==559== Releasing lock... [2025-01-14 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:03:05 [end_date_ymd] => 2025-01-14 08:03:05 [RateCDR] => 1 ) [2025-01-14 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:03:05' and `end` < '2025-01-14 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:03:17] Production.INFO: count ==176 [2025-01-14 08:03:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:03:05 - End Time 2025-01-14 08:03:05 [2025-01-14 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244931', 'tblTempUsageDetail_20' ) start [2025-01-14 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244931', 'tblTempUsageDetail_20' ) end [2025-01-14 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244931', 'tblTempVendorCDR_20' ) start [2025-01-14 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244931', 'tblTempVendorCDR_20' ) end [2025-01-14 08:03:17] Production.INFO: ProcessCDR(1,14244931,1,1,2) [2025-01-14 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244931', 'tblTempUsageDetail_20' ) start [2025-01-14 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244931', 'tblTempUsageDetail_20' ) end [2025-01-14 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:03:21] Production.INFO: ==642== Releasing lock... [2025-01-14 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:04:05 [end_date_ymd] => 2025-01-14 08:04:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 05:04:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 08:04:18] Production.INFO: count ==181 [2025-01-14 08:04:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:04:05 - End Time 2025-01-14 08:04:05 [2025-01-14 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244936', 'tblTempUsageDetail_20' ) start [2025-01-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244936', 'tblTempUsageDetail_20' ) end [2025-01-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244936', 'tblTempVendorCDR_20' ) start [2025-01-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244936', 'tblTempVendorCDR_20' ) end [2025-01-14 08:04:18] Production.INFO: ProcessCDR(1,14244936,1,1,2) [2025-01-14 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244936', 'tblTempUsageDetail_20' ) start [2025-01-14 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244936', 'tblTempUsageDetail_20' ) end [2025-01-14 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:04:21] Production.INFO: ==738== Releasing lock... [2025-01-14 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-14 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:05:05 [end_date_ymd] => 2025-01-14 08:05:05 [RateCDR] => 1 ) [2025-01-14 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:05:05' and `end` < '2025-01-14 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:05:18] Production.INFO: count ==182 [2025-01-14 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:05:05 - End Time 2025-01-14 08:05:05 [2025-01-14 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244941', 'tblTempUsageDetail_20' ) start [2025-01-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244941', 'tblTempUsageDetail_20' ) end [2025-01-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244941', 'tblTempVendorCDR_20' ) start [2025-01-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244941', 'tblTempVendorCDR_20' ) end [2025-01-14 08:05:18] Production.INFO: ProcessCDR(1,14244941,1,1,2) [2025-01-14 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244941', 'tblTempUsageDetail_20' ) start [2025-01-14 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244941', 'tblTempUsageDetail_20' ) end [2025-01-14 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:05:23] Production.INFO: ==817== Releasing lock... [2025-01-14 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:05:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:06:05 [end_date_ymd] => 2025-01-14 08:06:05 [RateCDR] => 1 ) [2025-01-14 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:06:05' and `end` < '2025-01-14 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:06:18] Production.INFO: count ==189 [2025-01-14 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:06:05 - End Time 2025-01-14 08:06:05 [2025-01-14 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244946', 'tblTempUsageDetail_20' ) start [2025-01-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244946', 'tblTempUsageDetail_20' ) end [2025-01-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244946', 'tblTempVendorCDR_20' ) start [2025-01-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244946', 'tblTempVendorCDR_20' ) end [2025-01-14 08:06:18] Production.INFO: ProcessCDR(1,14244946,1,1,2) [2025-01-14 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244946', 'tblTempUsageDetail_20' ) start [2025-01-14 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244946', 'tblTempUsageDetail_20' ) end [2025-01-14 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:06:22] Production.INFO: ==889== Releasing lock... [2025-01-14 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:07:04 [end_date_ymd] => 2025-01-14 08:07:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 05:07:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 08:07:17] Production.INFO: count ==196 [2025-01-14 08:07:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:07:04 - End Time 2025-01-14 08:07:04 [2025-01-14 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244951', 'tblTempUsageDetail_20' ) start [2025-01-14 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244951', 'tblTempUsageDetail_20' ) end [2025-01-14 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244951', 'tblTempVendorCDR_20' ) start [2025-01-14 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244951', 'tblTempVendorCDR_20' ) end [2025-01-14 08:07:17] Production.INFO: ProcessCDR(1,14244951,1,1,2) [2025-01-14 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244951', 'tblTempUsageDetail_20' ) start [2025-01-14 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244951', 'tblTempUsageDetail_20' ) end [2025-01-14 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:07:21] Production.INFO: ==961== Releasing lock... [2025-01-14 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:08:05 [end_date_ymd] => 2025-01-14 08:08:05 [RateCDR] => 1 ) [2025-01-14 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:08:05' and `end` < '2025-01-14 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:08:19] Production.INFO: count ==196 [2025-01-14 08:08:19] Production.ERROR: pbx CDR StartTime 2025-01-14 05:08:05 - End Time 2025-01-14 08:08:05 [2025-01-14 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244956', 'tblTempUsageDetail_20' ) start [2025-01-14 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244956', 'tblTempUsageDetail_20' ) end [2025-01-14 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244956', 'tblTempVendorCDR_20' ) start [2025-01-14 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244956', 'tblTempVendorCDR_20' ) end [2025-01-14 08:08:19] Production.INFO: ProcessCDR(1,14244956,1,1,2) [2025-01-14 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244956', 'tblTempUsageDetail_20' ) start [2025-01-14 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244956', 'tblTempUsageDetail_20' ) end [2025-01-14 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:08:22] Production.INFO: ==1035== Releasing lock... [2025-01-14 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-14 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:09:04 [end_date_ymd] => 2025-01-14 08:09:04 [RateCDR] => 1 ) [2025-01-14 08:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:09:04' and `end` < '2025-01-14 08:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:09:17] Production.INFO: count ==209 [2025-01-14 08:09:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:09:04 - End Time 2025-01-14 08:09:04 [2025-01-14 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244961', 'tblTempUsageDetail_20' ) start [2025-01-14 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244961', 'tblTempUsageDetail_20' ) end [2025-01-14 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244961', 'tblTempVendorCDR_20' ) start [2025-01-14 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244961', 'tblTempVendorCDR_20' ) end [2025-01-14 08:09:17] Production.INFO: ProcessCDR(1,14244961,1,1,2) [2025-01-14 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244961', 'tblTempUsageDetail_20' ) start [2025-01-14 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244961', 'tblTempUsageDetail_20' ) end [2025-01-14 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:09:22] Production.INFO: ==1113== Releasing lock... [2025-01-14 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:09:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:10:06 [end_date_ymd] => 2025-01-14 08:10:06 [RateCDR] => 1 ) [2025-01-14 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:10:06' and `end` < '2025-01-14 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:10:18] Production.INFO: count ==223 [2025-01-14 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:10:06 - End Time 2025-01-14 08:10:06 [2025-01-14 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244967', 'tblTempUsageDetail_20' ) start [2025-01-14 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244967', 'tblTempUsageDetail_20' ) end [2025-01-14 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244967', 'tblTempVendorCDR_20' ) start [2025-01-14 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244967', 'tblTempVendorCDR_20' ) end [2025-01-14 08:10:18] Production.INFO: ProcessCDR(1,14244967,1,1,2) [2025-01-14 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244967', 'tblTempUsageDetail_20' ) start [2025-01-14 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244967', 'tblTempUsageDetail_20' ) end [2025-01-14 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:10:22] Production.INFO: ==1193== Releasing lock... [2025-01-14 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-14 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:11:05 [end_date_ymd] => 2025-01-14 08:11:05 [RateCDR] => 1 ) [2025-01-14 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:11:05' and `end` < '2025-01-14 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:11:17] Production.INFO: count ==258 [2025-01-14 08:11:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:11:05 - End Time 2025-01-14 08:11:05 [2025-01-14 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244972', 'tblTempUsageDetail_20' ) start [2025-01-14 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244972', 'tblTempUsageDetail_20' ) end [2025-01-14 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244972', 'tblTempVendorCDR_20' ) start [2025-01-14 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244972', 'tblTempVendorCDR_20' ) end [2025-01-14 08:11:17] Production.INFO: ProcessCDR(1,14244972,1,1,2) [2025-01-14 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244972', 'tblTempUsageDetail_20' ) start [2025-01-14 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244972', 'tblTempUsageDetail_20' ) end [2025-01-14 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:11:21] Production.INFO: ==1280== Releasing lock... [2025-01-14 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:12:05 [end_date_ymd] => 2025-01-14 08:12:05 [RateCDR] => 1 ) [2025-01-14 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:12:05' and `end` < '2025-01-14 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:12:18] Production.INFO: count ==258 [2025-01-14 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:12:05 - End Time 2025-01-14 08:12:05 [2025-01-14 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244977', 'tblTempUsageDetail_20' ) start [2025-01-14 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244977', 'tblTempUsageDetail_20' ) end [2025-01-14 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244977', 'tblTempVendorCDR_20' ) start [2025-01-14 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244977', 'tblTempVendorCDR_20' ) end [2025-01-14 08:12:18] Production.INFO: ProcessCDR(1,14244977,1,1,2) [2025-01-14 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244977', 'tblTempUsageDetail_20' ) start [2025-01-14 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244977', 'tblTempUsageDetail_20' ) end [2025-01-14 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:12:21] Production.INFO: ==1352== Releasing lock... [2025-01-14 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:13:05 [end_date_ymd] => 2025-01-14 08:13:05 [RateCDR] => 1 ) [2025-01-14 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:13:05' and `end` < '2025-01-14 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:13:18] Production.INFO: count ==258 [2025-01-14 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:13:05 - End Time 2025-01-14 08:13:05 [2025-01-14 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244982', 'tblTempUsageDetail_20' ) start [2025-01-14 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244982', 'tblTempUsageDetail_20' ) end [2025-01-14 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244982', 'tblTempVendorCDR_20' ) start [2025-01-14 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244982', 'tblTempVendorCDR_20' ) end [2025-01-14 08:13:18] Production.INFO: ProcessCDR(1,14244982,1,1,2) [2025-01-14 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244982', 'tblTempUsageDetail_20' ) start [2025-01-14 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244982', 'tblTempUsageDetail_20' ) end [2025-01-14 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:13:22] Production.INFO: ==1462== Releasing lock... [2025-01-14 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:14:05 [end_date_ymd] => 2025-01-14 08:14:05 [RateCDR] => 1 ) [2025-01-14 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:14:05' and `end` < '2025-01-14 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:14:18] Production.INFO: count ==259 [2025-01-14 08:14:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:14:05 - End Time 2025-01-14 08:14:05 [2025-01-14 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244987', 'tblTempUsageDetail_20' ) start [2025-01-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244987', 'tblTempUsageDetail_20' ) end [2025-01-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244987', 'tblTempVendorCDR_20' ) start [2025-01-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244987', 'tblTempVendorCDR_20' ) end [2025-01-14 08:14:18] Production.INFO: ProcessCDR(1,14244987,1,1,2) [2025-01-14 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244987', 'tblTempUsageDetail_20' ) start [2025-01-14 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244987', 'tblTempUsageDetail_20' ) end [2025-01-14 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:14:23] Production.INFO: ==1572== Releasing lock... [2025-01-14 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:14:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-14 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:15:05 [end_date_ymd] => 2025-01-14 08:15:05 [RateCDR] => 1 ) [2025-01-14 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:15:05' and `end` < '2025-01-14 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:15:17] Production.INFO: count ==280 [2025-01-14 08:15:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:15:05 - End Time 2025-01-14 08:15:05 [2025-01-14 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244992', 'tblTempUsageDetail_20' ) start [2025-01-14 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244992', 'tblTempUsageDetail_20' ) end [2025-01-14 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244992', 'tblTempVendorCDR_20' ) start [2025-01-14 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244992', 'tblTempVendorCDR_20' ) end [2025-01-14 08:15:17] Production.INFO: ProcessCDR(1,14244992,1,1,2) [2025-01-14 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244992', 'tblTempUsageDetail_20' ) start [2025-01-14 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244992', 'tblTempUsageDetail_20' ) end [2025-01-14 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:15:21] Production.INFO: ==1642== Releasing lock... [2025-01-14 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-14 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:16:05 [end_date_ymd] => 2025-01-14 08:16:05 [RateCDR] => 1 ) [2025-01-14 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:16:05' and `end` < '2025-01-14 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:16:17] Production.INFO: count ==280 [2025-01-14 08:16:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:16:05 - End Time 2025-01-14 08:16:05 [2025-01-14 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244997', 'tblTempUsageDetail_20' ) start [2025-01-14 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14244997', 'tblTempUsageDetail_20' ) end [2025-01-14 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244997', 'tblTempVendorCDR_20' ) start [2025-01-14 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14244997', 'tblTempVendorCDR_20' ) end [2025-01-14 08:16:17] Production.INFO: ProcessCDR(1,14244997,1,1,2) [2025-01-14 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14244997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14244997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14244997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14244997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244997', 'tblTempUsageDetail_20' ) start [2025-01-14 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14244997', 'tblTempUsageDetail_20' ) end [2025-01-14 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:16:21] Production.INFO: ==1717== Releasing lock... [2025-01-14 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-14 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:17:04 [end_date_ymd] => 2025-01-14 08:17:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 05:17:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 08:17:17] Production.INFO: count ==280 [2025-01-14 08:17:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:17:04 - End Time 2025-01-14 08:17:04 [2025-01-14 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245002', 'tblTempUsageDetail_20' ) start [2025-01-14 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245002', 'tblTempUsageDetail_20' ) end [2025-01-14 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245002', 'tblTempVendorCDR_20' ) start [2025-01-14 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245002', 'tblTempVendorCDR_20' ) end [2025-01-14 08:17:18] Production.INFO: ProcessCDR(1,14245002,1,1,2) [2025-01-14 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245002', 'tblTempUsageDetail_20' ) start [2025-01-14 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245002', 'tblTempUsageDetail_20' ) end [2025-01-14 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:17:21] Production.INFO: ==1792== Releasing lock... [2025-01-14 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-14 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:18:05 [end_date_ymd] => 2025-01-14 08:18:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 05:18:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 08:18:18] Production.INFO: count ==289 [2025-01-14 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:18:05 - End Time 2025-01-14 08:18:05 [2025-01-14 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245007', 'tblTempUsageDetail_20' ) start [2025-01-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245007', 'tblTempUsageDetail_20' ) end [2025-01-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245007', 'tblTempVendorCDR_20' ) start [2025-01-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245007', 'tblTempVendorCDR_20' ) end [2025-01-14 08:18:18] Production.INFO: ProcessCDR(1,14245007,1,1,2) [2025-01-14 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245007', 'tblTempUsageDetail_20' ) start [2025-01-14 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245007', 'tblTempUsageDetail_20' ) end [2025-01-14 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:18:21] Production.INFO: ==1879== Releasing lock... [2025-01-14 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-14 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:19:06 [end_date_ymd] => 2025-01-14 08:19:06 [RateCDR] => 1 ) [2025-01-14 08:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:19:06' and `end` < '2025-01-14 08:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:19:18] Production.INFO: count ==290 [2025-01-14 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:19:06 - End Time 2025-01-14 08:19:06 [2025-01-14 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245012', 'tblTempUsageDetail_20' ) start [2025-01-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245012', 'tblTempUsageDetail_20' ) end [2025-01-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245012', 'tblTempVendorCDR_20' ) start [2025-01-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245012', 'tblTempVendorCDR_20' ) end [2025-01-14 08:19:18] Production.INFO: ProcessCDR(1,14245012,1,1,2) [2025-01-14 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245012', 'tblTempUsageDetail_20' ) start [2025-01-14 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245012', 'tblTempUsageDetail_20' ) end [2025-01-14 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:19:22] Production.INFO: ==1950== Releasing lock... [2025-01-14 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-14 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:20:06 [end_date_ymd] => 2025-01-14 08:20:06 [RateCDR] => 1 ) [2025-01-14 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:20:06' and `end` < '2025-01-14 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:20:19] Production.INFO: count ==305 [2025-01-14 08:20:19] Production.ERROR: pbx CDR StartTime 2025-01-14 05:20:06 - End Time 2025-01-14 08:20:06 [2025-01-14 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245018', 'tblTempUsageDetail_20' ) start [2025-01-14 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245018', 'tblTempUsageDetail_20' ) end [2025-01-14 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245018', 'tblTempVendorCDR_20' ) start [2025-01-14 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245018', 'tblTempVendorCDR_20' ) end [2025-01-14 08:20:19] Production.INFO: ProcessCDR(1,14245018,1,1,2) [2025-01-14 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245018', 'tblTempUsageDetail_20' ) start [2025-01-14 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245018', 'tblTempUsageDetail_20' ) end [2025-01-14 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:20:22] Production.INFO: ==2025== Releasing lock... [2025-01-14 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-14 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:21:05 [end_date_ymd] => 2025-01-14 08:21:05 [RateCDR] => 1 ) [2025-01-14 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:21:05' and `end` < '2025-01-14 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:21:18] Production.INFO: count ==325 [2025-01-14 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:21:05 - End Time 2025-01-14 08:21:05 [2025-01-14 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245023', 'tblTempUsageDetail_20' ) start [2025-01-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245023', 'tblTempUsageDetail_20' ) end [2025-01-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245023', 'tblTempVendorCDR_20' ) start [2025-01-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245023', 'tblTempVendorCDR_20' ) end [2025-01-14 08:21:18] Production.INFO: ProcessCDR(1,14245023,1,1,2) [2025-01-14 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245023', 'tblTempUsageDetail_20' ) start [2025-01-14 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245023', 'tblTempUsageDetail_20' ) end [2025-01-14 08:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:21:24] Production.INFO: ==2101== Releasing lock... [2025-01-14 08:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:21:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-14 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:22:05 [end_date_ymd] => 2025-01-14 08:22:05 [RateCDR] => 1 ) [2025-01-14 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:22:05' and `end` < '2025-01-14 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:22:18] Production.INFO: count ==340 [2025-01-14 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:22:05 - End Time 2025-01-14 08:22:05 [2025-01-14 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245028', 'tblTempUsageDetail_20' ) start [2025-01-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245028', 'tblTempUsageDetail_20' ) end [2025-01-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245028', 'tblTempVendorCDR_20' ) start [2025-01-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245028', 'tblTempVendorCDR_20' ) end [2025-01-14 08:22:18] Production.INFO: ProcessCDR(1,14245028,1,1,2) [2025-01-14 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245028', 'tblTempUsageDetail_20' ) start [2025-01-14 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245028', 'tblTempUsageDetail_20' ) end [2025-01-14 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:22:23] Production.INFO: ==2173== Releasing lock... [2025-01-14 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:22:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-14 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:23:05 [end_date_ymd] => 2025-01-14 08:23:05 [RateCDR] => 1 ) [2025-01-14 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:23:05' and `end` < '2025-01-14 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:23:17] Production.INFO: count ==346 [2025-01-14 08:23:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:23:05 - End Time 2025-01-14 08:23:05 [2025-01-14 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245033', 'tblTempUsageDetail_20' ) start [2025-01-14 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245033', 'tblTempUsageDetail_20' ) end [2025-01-14 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245033', 'tblTempVendorCDR_20' ) start [2025-01-14 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245033', 'tblTempVendorCDR_20' ) end [2025-01-14 08:23:17] Production.INFO: ProcessCDR(1,14245033,1,1,2) [2025-01-14 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245033', 'tblTempUsageDetail_20' ) start [2025-01-14 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245033', 'tblTempUsageDetail_20' ) end [2025-01-14 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:23:22] Production.INFO: ==2246== Releasing lock... [2025-01-14 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:23:22] Production.INFO: 31 MB #Memory Used# [2025-01-14 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:24:05 [end_date_ymd] => 2025-01-14 08:24:05 [RateCDR] => 1 ) [2025-01-14 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:24:05' and `end` < '2025-01-14 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:24:18] Production.INFO: count ==356 [2025-01-14 08:24:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:24:05 - End Time 2025-01-14 08:24:05 [2025-01-14 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245038', 'tblTempUsageDetail_20' ) start [2025-01-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245038', 'tblTempUsageDetail_20' ) end [2025-01-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245038', 'tblTempVendorCDR_20' ) start [2025-01-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245038', 'tblTempVendorCDR_20' ) end [2025-01-14 08:24:18] Production.INFO: ProcessCDR(1,14245038,1,1,2) [2025-01-14 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245038', 'tblTempUsageDetail_20' ) start [2025-01-14 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245038', 'tblTempUsageDetail_20' ) end [2025-01-14 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:24:23] Production.INFO: ==2317== Releasing lock... [2025-01-14 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:24:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-14 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:25:05 [end_date_ymd] => 2025-01-14 08:25:05 [RateCDR] => 1 ) [2025-01-14 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:25:05' and `end` < '2025-01-14 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:25:17] Production.INFO: count ==375 [2025-01-14 08:25:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:25:05 - End Time 2025-01-14 08:25:05 [2025-01-14 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245043', 'tblTempUsageDetail_20' ) start [2025-01-14 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245043', 'tblTempUsageDetail_20' ) end [2025-01-14 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245043', 'tblTempVendorCDR_20' ) start [2025-01-14 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245043', 'tblTempVendorCDR_20' ) end [2025-01-14 08:25:18] Production.INFO: ProcessCDR(1,14245043,1,1,2) [2025-01-14 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245043', 'tblTempUsageDetail_20' ) start [2025-01-14 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245043', 'tblTempUsageDetail_20' ) end [2025-01-14 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:25:23] Production.INFO: ==2395== Releasing lock... [2025-01-14 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:25:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-14 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:26:04 [end_date_ymd] => 2025-01-14 08:26:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 05:26:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 08:26:17] Production.INFO: count ==394 [2025-01-14 08:26:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:26:04 - End Time 2025-01-14 08:26:04 [2025-01-14 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245048', 'tblTempUsageDetail_20' ) start [2025-01-14 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245048', 'tblTempUsageDetail_20' ) end [2025-01-14 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245048', 'tblTempVendorCDR_20' ) start [2025-01-14 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245048', 'tblTempVendorCDR_20' ) end [2025-01-14 08:26:17] Production.INFO: ProcessCDR(1,14245048,1,1,2) [2025-01-14 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245048', 'tblTempUsageDetail_20' ) start [2025-01-14 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245048', 'tblTempUsageDetail_20' ) end [2025-01-14 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:26:21] Production.INFO: ==2469== Releasing lock... [2025-01-14 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-14 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:27:05 [end_date_ymd] => 2025-01-14 08:27:05 [RateCDR] => 1 ) [2025-01-14 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:27:05' and `end` < '2025-01-14 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:27:19] Production.INFO: count ==402 [2025-01-14 08:27:19] Production.ERROR: pbx CDR StartTime 2025-01-14 05:27:05 - End Time 2025-01-14 08:27:05 [2025-01-14 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245053', 'tblTempUsageDetail_20' ) start [2025-01-14 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245053', 'tblTempUsageDetail_20' ) end [2025-01-14 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245053', 'tblTempVendorCDR_20' ) start [2025-01-14 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245053', 'tblTempVendorCDR_20' ) end [2025-01-14 08:27:19] Production.INFO: ProcessCDR(1,14245053,1,1,2) [2025-01-14 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245053', 'tblTempUsageDetail_20' ) start [2025-01-14 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245053', 'tblTempUsageDetail_20' ) end [2025-01-14 08:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:27:24] Production.INFO: ==2542== Releasing lock... [2025-01-14 08:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:27:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-14 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:28:05 [end_date_ymd] => 2025-01-14 08:28:05 [RateCDR] => 1 ) [2025-01-14 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:28:05' and `end` < '2025-01-14 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:28:18] Production.INFO: count ==403 [2025-01-14 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:28:05 - End Time 2025-01-14 08:28:05 [2025-01-14 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245058', 'tblTempUsageDetail_20' ) start [2025-01-14 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245058', 'tblTempUsageDetail_20' ) end [2025-01-14 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245058', 'tblTempVendorCDR_20' ) start [2025-01-14 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245058', 'tblTempVendorCDR_20' ) end [2025-01-14 08:28:18] Production.INFO: ProcessCDR(1,14245058,1,1,2) [2025-01-14 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245058', 'tblTempUsageDetail_20' ) start [2025-01-14 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245058', 'tblTempUsageDetail_20' ) end [2025-01-14 08:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:28:24] Production.INFO: ==2613== Releasing lock... [2025-01-14 08:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:28:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-14 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:29:05 [end_date_ymd] => 2025-01-14 08:29:05 [RateCDR] => 1 ) [2025-01-14 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:29:05' and `end` < '2025-01-14 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:29:17] Production.INFO: count ==408 [2025-01-14 08:29:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:29:05 - End Time 2025-01-14 08:29:05 [2025-01-14 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245063', 'tblTempUsageDetail_20' ) start [2025-01-14 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245063', 'tblTempUsageDetail_20' ) end [2025-01-14 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245063', 'tblTempVendorCDR_20' ) start [2025-01-14 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245063', 'tblTempVendorCDR_20' ) end [2025-01-14 08:29:17] Production.INFO: ProcessCDR(1,14245063,1,1,2) [2025-01-14 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245063', 'tblTempUsageDetail_20' ) start [2025-01-14 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245063', 'tblTempUsageDetail_20' ) end [2025-01-14 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:29:21] Production.INFO: ==2727== Releasing lock... [2025-01-14 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-14 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:30:06 [end_date_ymd] => 2025-01-14 08:30:06 [RateCDR] => 1 ) [2025-01-14 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:30:06' and `end` < '2025-01-14 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:30:20] Production.INFO: count ==416 [2025-01-14 08:30:20] Production.ERROR: pbx CDR StartTime 2025-01-14 05:30:06 - End Time 2025-01-14 08:30:06 [2025-01-14 08:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245069', 'tblTempUsageDetail_20' ) start [2025-01-14 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245069', 'tblTempUsageDetail_20' ) end [2025-01-14 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245069', 'tblTempVendorCDR_20' ) start [2025-01-14 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245069', 'tblTempVendorCDR_20' ) end [2025-01-14 08:30:20] Production.INFO: ProcessCDR(1,14245069,1,1,2) [2025-01-14 08:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245069', 'tblTempUsageDetail_20' ) start [2025-01-14 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245069', 'tblTempUsageDetail_20' ) end [2025-01-14 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:30:24] Production.INFO: ==2803== Releasing lock... [2025-01-14 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:30:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:31:05 [end_date_ymd] => 2025-01-14 08:31:05 [RateCDR] => 1 ) [2025-01-14 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:31:05' and `end` < '2025-01-14 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:31:17] Production.INFO: count ==435 [2025-01-14 08:31:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:31:05 - End Time 2025-01-14 08:31:05 [2025-01-14 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245074', 'tblTempUsageDetail_20' ) start [2025-01-14 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245074', 'tblTempUsageDetail_20' ) end [2025-01-14 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245074', 'tblTempVendorCDR_20' ) start [2025-01-14 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245074', 'tblTempVendorCDR_20' ) end [2025-01-14 08:31:17] Production.INFO: ProcessCDR(1,14245074,1,1,2) [2025-01-14 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245074', 'tblTempUsageDetail_20' ) start [2025-01-14 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245074', 'tblTempUsageDetail_20' ) end [2025-01-14 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:31:23] Production.INFO: ==2877== Releasing lock... [2025-01-14 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:31:23] Production.INFO: 32 MB #Memory Used# [2025-01-14 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:32:05 [end_date_ymd] => 2025-01-14 08:32:05 [RateCDR] => 1 ) [2025-01-14 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:32:05' and `end` < '2025-01-14 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:32:20] Production.INFO: count ==435 [2025-01-14 08:32:20] Production.ERROR: pbx CDR StartTime 2025-01-14 05:32:05 - End Time 2025-01-14 08:32:05 [2025-01-14 08:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245079', 'tblTempUsageDetail_20' ) start [2025-01-14 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245079', 'tblTempUsageDetail_20' ) end [2025-01-14 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245079', 'tblTempVendorCDR_20' ) start [2025-01-14 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245079', 'tblTempVendorCDR_20' ) end [2025-01-14 08:32:20] Production.INFO: ProcessCDR(1,14245079,1,1,2) [2025-01-14 08:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245079', 'tblTempUsageDetail_20' ) start [2025-01-14 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245079', 'tblTempUsageDetail_20' ) end [2025-01-14 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:32:23] Production.INFO: ==2947== Releasing lock... [2025-01-14 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:32:23] Production.INFO: 32 MB #Memory Used# [2025-01-14 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:33:04 [end_date_ymd] => 2025-01-14 08:33:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 05:33:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 08:33:18] Production.INFO: count ==436 [2025-01-14 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:33:04 - End Time 2025-01-14 08:33:04 [2025-01-14 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245084', 'tblTempUsageDetail_20' ) start [2025-01-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245084', 'tblTempUsageDetail_20' ) end [2025-01-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245084', 'tblTempVendorCDR_20' ) start [2025-01-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245084', 'tblTempVendorCDR_20' ) end [2025-01-14 08:33:18] Production.INFO: ProcessCDR(1,14245084,1,1,2) [2025-01-14 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245084', 'tblTempUsageDetail_20' ) start [2025-01-14 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245084', 'tblTempUsageDetail_20' ) end [2025-01-14 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:33:21] Production.INFO: ==3018== Releasing lock... [2025-01-14 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:33:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-14 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:34:05 [end_date_ymd] => 2025-01-14 08:34:05 [RateCDR] => 1 ) [2025-01-14 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:34:05' and `end` < '2025-01-14 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:34:19] Production.INFO: count ==449 [2025-01-14 08:34:19] Production.ERROR: pbx CDR StartTime 2025-01-14 05:34:05 - End Time 2025-01-14 08:34:05 [2025-01-14 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245089', 'tblTempUsageDetail_20' ) start [2025-01-14 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245089', 'tblTempUsageDetail_20' ) end [2025-01-14 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245089', 'tblTempVendorCDR_20' ) start [2025-01-14 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245089', 'tblTempVendorCDR_20' ) end [2025-01-14 08:34:19] Production.INFO: ProcessCDR(1,14245089,1,1,2) [2025-01-14 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245089', 'tblTempUsageDetail_20' ) start [2025-01-14 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245089', 'tblTempUsageDetail_20' ) end [2025-01-14 08:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:34:24] Production.INFO: ==3092== Releasing lock... [2025-01-14 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:34:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:35:04 [end_date_ymd] => 2025-01-14 08:35:04 [RateCDR] => 1 ) [2025-01-14 08:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:35:04' and `end` < '2025-01-14 08:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:35:17] Production.INFO: count ==449 [2025-01-14 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:35:04 - End Time 2025-01-14 08:35:04 [2025-01-14 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245094', 'tblTempUsageDetail_20' ) start [2025-01-14 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245094', 'tblTempUsageDetail_20' ) end [2025-01-14 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245094', 'tblTempVendorCDR_20' ) start [2025-01-14 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245094', 'tblTempVendorCDR_20' ) end [2025-01-14 08:35:17] Production.INFO: ProcessCDR(1,14245094,1,1,2) [2025-01-14 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245094', 'tblTempUsageDetail_20' ) start [2025-01-14 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245094', 'tblTempUsageDetail_20' ) end [2025-01-14 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:35:20] Production.INFO: ==3165== Releasing lock... [2025-01-14 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:35:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:36:05 [end_date_ymd] => 2025-01-14 08:36:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 05:36:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 08:36:18] Production.INFO: count ==450 [2025-01-14 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:36:05 - End Time 2025-01-14 08:36:05 [2025-01-14 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245099', 'tblTempUsageDetail_20' ) start [2025-01-14 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245099', 'tblTempUsageDetail_20' ) end [2025-01-14 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245099', 'tblTempVendorCDR_20' ) start [2025-01-14 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245099', 'tblTempVendorCDR_20' ) end [2025-01-14 08:36:18] Production.INFO: ProcessCDR(1,14245099,1,1,2) [2025-01-14 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245099', 'tblTempUsageDetail_20' ) start [2025-01-14 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245099', 'tblTempUsageDetail_20' ) end [2025-01-14 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:36:21] Production.INFO: ==3235== Releasing lock... [2025-01-14 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:36:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:37:06 [end_date_ymd] => 2025-01-14 08:37:06 [RateCDR] => 1 ) [2025-01-14 08:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:37:06' and `end` < '2025-01-14 08:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:37:19] Production.INFO: count ==462 [2025-01-14 08:37:19] Production.ERROR: pbx CDR StartTime 2025-01-14 05:37:06 - End Time 2025-01-14 08:37:06 [2025-01-14 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245104', 'tblTempUsageDetail_20' ) start [2025-01-14 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245104', 'tblTempUsageDetail_20' ) end [2025-01-14 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245104', 'tblTempVendorCDR_20' ) start [2025-01-14 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245104', 'tblTempVendorCDR_20' ) end [2025-01-14 08:37:19] Production.INFO: ProcessCDR(1,14245104,1,1,2) [2025-01-14 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245104', 'tblTempUsageDetail_20' ) start [2025-01-14 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245104', 'tblTempUsageDetail_20' ) end [2025-01-14 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:37:22] Production.INFO: ==3309== Releasing lock... [2025-01-14 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-14 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:38:05 [end_date_ymd] => 2025-01-14 08:38:05 [RateCDR] => 1 ) [2025-01-14 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:38:05' and `end` < '2025-01-14 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:38:19] Production.INFO: count ==468 [2025-01-14 08:38:19] Production.ERROR: pbx CDR StartTime 2025-01-14 05:38:05 - End Time 2025-01-14 08:38:05 [2025-01-14 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245109', 'tblTempUsageDetail_20' ) start [2025-01-14 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245109', 'tblTempUsageDetail_20' ) end [2025-01-14 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245109', 'tblTempVendorCDR_20' ) start [2025-01-14 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245109', 'tblTempVendorCDR_20' ) end [2025-01-14 08:38:19] Production.INFO: ProcessCDR(1,14245109,1,1,2) [2025-01-14 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245109', 'tblTempUsageDetail_20' ) start [2025-01-14 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245109', 'tblTempUsageDetail_20' ) end [2025-01-14 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:38:23] Production.INFO: ==3381== Releasing lock... [2025-01-14 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:38:23] Production.INFO: 32 MB #Memory Used# [2025-01-14 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:39:05 [end_date_ymd] => 2025-01-14 08:39:05 [RateCDR] => 1 ) [2025-01-14 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:39:05' and `end` < '2025-01-14 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:39:19] Production.INFO: count ==470 [2025-01-14 08:39:20] Production.ERROR: pbx CDR StartTime 2025-01-14 05:39:05 - End Time 2025-01-14 08:39:05 [2025-01-14 08:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245114', 'tblTempUsageDetail_20' ) start [2025-01-14 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245114', 'tblTempUsageDetail_20' ) end [2025-01-14 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245114', 'tblTempVendorCDR_20' ) start [2025-01-14 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245114', 'tblTempVendorCDR_20' ) end [2025-01-14 08:39:20] Production.INFO: ProcessCDR(1,14245114,1,1,2) [2025-01-14 08:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245114', 'tblTempUsageDetail_20' ) start [2025-01-14 08:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245114', 'tblTempUsageDetail_20' ) end [2025-01-14 08:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:39:25] Production.INFO: ==3461== Releasing lock... [2025-01-14 08:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:39:25] Production.INFO: 32 MB #Memory Used# [2025-01-14 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:40:06 [end_date_ymd] => 2025-01-14 08:40:06 [RateCDR] => 1 ) [2025-01-14 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:40:06' and `end` < '2025-01-14 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:40:18] Production.INFO: count ==476 [2025-01-14 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:40:06 - End Time 2025-01-14 08:40:06 [2025-01-14 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245120', 'tblTempUsageDetail_20' ) start [2025-01-14 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245120', 'tblTempUsageDetail_20' ) end [2025-01-14 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245120', 'tblTempVendorCDR_20' ) start [2025-01-14 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245120', 'tblTempVendorCDR_20' ) end [2025-01-14 08:40:18] Production.INFO: ProcessCDR(1,14245120,1,1,2) [2025-01-14 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245120', 'tblTempUsageDetail_20' ) start [2025-01-14 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245120', 'tblTempUsageDetail_20' ) end [2025-01-14 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:40:22] Production.INFO: ==3532== Releasing lock... [2025-01-14 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:41:05 [end_date_ymd] => 2025-01-14 08:41:05 [RateCDR] => 1 ) [2025-01-14 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:41:05' and `end` < '2025-01-14 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:41:20] Production.INFO: count ==509 [2025-01-14 08:41:20] Production.ERROR: pbx CDR StartTime 2025-01-14 05:41:05 - End Time 2025-01-14 08:41:05 [2025-01-14 08:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245125', 'tblTempUsageDetail_20' ) start [2025-01-14 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245125', 'tblTempUsageDetail_20' ) end [2025-01-14 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245125', 'tblTempVendorCDR_20' ) start [2025-01-14 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245125', 'tblTempVendorCDR_20' ) end [2025-01-14 08:41:20] Production.INFO: ProcessCDR(1,14245125,1,1,2) [2025-01-14 08:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245125', 'tblTempUsageDetail_20' ) start [2025-01-14 08:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245125', 'tblTempUsageDetail_20' ) end [2025-01-14 08:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:41:25] Production.INFO: ==3607== Releasing lock... [2025-01-14 08:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:41:25] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:42:05 [end_date_ymd] => 2025-01-14 08:42:05 [RateCDR] => 1 ) [2025-01-14 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:42:05' and `end` < '2025-01-14 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:42:19] Production.INFO: count ==512 [2025-01-14 08:42:19] Production.ERROR: pbx CDR StartTime 2025-01-14 05:42:05 - End Time 2025-01-14 08:42:05 [2025-01-14 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245130', 'tblTempUsageDetail_20' ) start [2025-01-14 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245130', 'tblTempUsageDetail_20' ) end [2025-01-14 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245130', 'tblTempVendorCDR_20' ) start [2025-01-14 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245130', 'tblTempVendorCDR_20' ) end [2025-01-14 08:42:19] Production.INFO: ProcessCDR(1,14245130,1,1,2) [2025-01-14 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245130', 'tblTempUsageDetail_20' ) start [2025-01-14 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245130', 'tblTempUsageDetail_20' ) end [2025-01-14 08:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:42:24] Production.INFO: ==3680== Releasing lock... [2025-01-14 08:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:42:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:43:05 [end_date_ymd] => 2025-01-14 08:43:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 05:43:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 08:43:18] Production.INFO: count ==513 [2025-01-14 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:43:05 - End Time 2025-01-14 08:43:05 [2025-01-14 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245135', 'tblTempUsageDetail_20' ) start [2025-01-14 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245135', 'tblTempUsageDetail_20' ) end [2025-01-14 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245135', 'tblTempVendorCDR_20' ) start [2025-01-14 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245135', 'tblTempVendorCDR_20' ) end [2025-01-14 08:43:18] Production.INFO: ProcessCDR(1,14245135,1,1,2) [2025-01-14 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245135', 'tblTempUsageDetail_20' ) start [2025-01-14 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245135', 'tblTempUsageDetail_20' ) end [2025-01-14 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:43:23] Production.INFO: ==3754== Releasing lock... [2025-01-14 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:43:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:44:05 [end_date_ymd] => 2025-01-14 08:44:05 [RateCDR] => 1 ) [2025-01-14 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:44:05' and `end` < '2025-01-14 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:44:17] Production.INFO: count ==515 [2025-01-14 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:44:05 - End Time 2025-01-14 08:44:05 [2025-01-14 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245140', 'tblTempUsageDetail_20' ) start [2025-01-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245140', 'tblTempUsageDetail_20' ) end [2025-01-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245140', 'tblTempVendorCDR_20' ) start [2025-01-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245140', 'tblTempVendorCDR_20' ) end [2025-01-14 08:44:18] Production.INFO: ProcessCDR(1,14245140,1,1,2) [2025-01-14 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245140', 'tblTempUsageDetail_20' ) start [2025-01-14 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245140', 'tblTempUsageDetail_20' ) end [2025-01-14 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:44:22] Production.INFO: ==3866== Releasing lock... [2025-01-14 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:45:05 [end_date_ymd] => 2025-01-14 08:45:05 [RateCDR] => 1 ) [2025-01-14 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:45:05' and `end` < '2025-01-14 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:45:17] Production.INFO: count ==514 [2025-01-14 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:45:05 - End Time 2025-01-14 08:45:05 [2025-01-14 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245145', 'tblTempUsageDetail_20' ) start [2025-01-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245145', 'tblTempUsageDetail_20' ) end [2025-01-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245145', 'tblTempVendorCDR_20' ) start [2025-01-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245145', 'tblTempVendorCDR_20' ) end [2025-01-14 08:45:18] Production.INFO: ProcessCDR(1,14245145,1,1,2) [2025-01-14 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245145', 'tblTempUsageDetail_20' ) start [2025-01-14 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245145', 'tblTempUsageDetail_20' ) end [2025-01-14 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:45:21] Production.INFO: ==3936== Releasing lock... [2025-01-14 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:46:05 [end_date_ymd] => 2025-01-14 08:46:05 [RateCDR] => 1 ) [2025-01-14 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:46:05' and `end` < '2025-01-14 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:46:17] Production.INFO: count ==521 [2025-01-14 08:46:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:46:05 - End Time 2025-01-14 08:46:05 [2025-01-14 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245150', 'tblTempUsageDetail_20' ) start [2025-01-14 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245150', 'tblTempUsageDetail_20' ) end [2025-01-14 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245150', 'tblTempVendorCDR_20' ) start [2025-01-14 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245150', 'tblTempVendorCDR_20' ) end [2025-01-14 08:46:17] Production.INFO: ProcessCDR(1,14245150,1,1,2) [2025-01-14 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245150', 'tblTempUsageDetail_20' ) start [2025-01-14 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245150', 'tblTempUsageDetail_20' ) end [2025-01-14 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:46:21] Production.INFO: ==4008== Releasing lock... [2025-01-14 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:46:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:47:05 [end_date_ymd] => 2025-01-14 08:47:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 05:47:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 08:47:18] Production.INFO: count ==524 [2025-01-14 08:47:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:47:05 - End Time 2025-01-14 08:47:05 [2025-01-14 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245155', 'tblTempUsageDetail_20' ) start [2025-01-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245155', 'tblTempUsageDetail_20' ) end [2025-01-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245155', 'tblTempVendorCDR_20' ) start [2025-01-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245155', 'tblTempVendorCDR_20' ) end [2025-01-14 08:47:18] Production.INFO: ProcessCDR(1,14245155,1,1,2) [2025-01-14 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245155', 'tblTempUsageDetail_20' ) start [2025-01-14 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245155', 'tblTempUsageDetail_20' ) end [2025-01-14 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:47:23] Production.INFO: ==4081== Releasing lock... [2025-01-14 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:47:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:48:04 [end_date_ymd] => 2025-01-14 08:48:04 [RateCDR] => 1 ) [2025-01-14 08:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:48:04' and `end` < '2025-01-14 08:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:48:17] Production.INFO: count ==543 [2025-01-14 08:48:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:48:04 - End Time 2025-01-14 08:48:04 [2025-01-14 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245157', 'tblTempUsageDetail_20' ) start [2025-01-14 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245157', 'tblTempUsageDetail_20' ) end [2025-01-14 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245157', 'tblTempVendorCDR_20' ) start [2025-01-14 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245157', 'tblTempVendorCDR_20' ) end [2025-01-14 08:48:17] Production.INFO: ProcessCDR(1,14245157,1,1,2) [2025-01-14 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245157', 'tblTempUsageDetail_20' ) start [2025-01-14 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245157', 'tblTempUsageDetail_20' ) end [2025-01-14 08:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:48:20] Production.INFO: ==4155== Releasing lock... [2025-01-14 08:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:48:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:49:05 [end_date_ymd] => 2025-01-14 08:49:05 [RateCDR] => 1 ) [2025-01-14 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:49:05' and `end` < '2025-01-14 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:49:18] Production.INFO: count ==544 [2025-01-14 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:49:05 - End Time 2025-01-14 08:49:05 [2025-01-14 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245165', 'tblTempUsageDetail_20' ) start [2025-01-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245165', 'tblTempUsageDetail_20' ) end [2025-01-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245165', 'tblTempVendorCDR_20' ) start [2025-01-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245165', 'tblTempVendorCDR_20' ) end [2025-01-14 08:49:18] Production.INFO: ProcessCDR(1,14245165,1,1,2) [2025-01-14 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245165', 'tblTempUsageDetail_20' ) start [2025-01-14 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245165', 'tblTempUsageDetail_20' ) end [2025-01-14 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:49:21] Production.INFO: ==4225== Releasing lock... [2025-01-14 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:50:06 [end_date_ymd] => 2025-01-14 08:50:06 [RateCDR] => 1 ) [2025-01-14 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:50:06' and `end` < '2025-01-14 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:50:19] Production.INFO: count ==550 [2025-01-14 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-14 05:50:06 - End Time 2025-01-14 08:50:06 [2025-01-14 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245171', 'tblTempUsageDetail_20' ) start [2025-01-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245171', 'tblTempUsageDetail_20' ) end [2025-01-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245171', 'tblTempVendorCDR_20' ) start [2025-01-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245171', 'tblTempVendorCDR_20' ) end [2025-01-14 08:50:19] Production.INFO: ProcessCDR(1,14245171,1,1,2) [2025-01-14 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245171', 'tblTempUsageDetail_20' ) start [2025-01-14 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245171', 'tblTempUsageDetail_20' ) end [2025-01-14 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:50:22] Production.INFO: ==4301== Releasing lock... [2025-01-14 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:50:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:51:05 [end_date_ymd] => 2025-01-14 08:51:05 [RateCDR] => 1 ) [2025-01-14 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:51:05' and `end` < '2025-01-14 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:51:17] Production.INFO: count ==561 [2025-01-14 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:51:05 - End Time 2025-01-14 08:51:05 [2025-01-14 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245176', 'tblTempUsageDetail_20' ) start [2025-01-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245176', 'tblTempUsageDetail_20' ) end [2025-01-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245176', 'tblTempVendorCDR_20' ) start [2025-01-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245176', 'tblTempVendorCDR_20' ) end [2025-01-14 08:51:18] Production.INFO: ProcessCDR(1,14245176,1,1,2) [2025-01-14 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245176', 'tblTempUsageDetail_20' ) start [2025-01-14 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245176', 'tblTempUsageDetail_20' ) end [2025-01-14 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:51:22] Production.INFO: ==4376== Releasing lock... [2025-01-14 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:51:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:52:05 [end_date_ymd] => 2025-01-14 08:52:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 05:52:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 08:52:18] Production.INFO: count ==561 [2025-01-14 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:52:05 - End Time 2025-01-14 08:52:05 [2025-01-14 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245181', 'tblTempUsageDetail_20' ) start [2025-01-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245181', 'tblTempUsageDetail_20' ) end [2025-01-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245181', 'tblTempVendorCDR_20' ) start [2025-01-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245181', 'tblTempVendorCDR_20' ) end [2025-01-14 08:52:18] Production.INFO: ProcessCDR(1,14245181,1,1,2) [2025-01-14 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245181', 'tblTempUsageDetail_20' ) start [2025-01-14 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245181', 'tblTempUsageDetail_20' ) end [2025-01-14 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:52:21] Production.INFO: ==4447== Releasing lock... [2025-01-14 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:52:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:53:05 [end_date_ymd] => 2025-01-14 08:53:05 [RateCDR] => 1 ) [2025-01-14 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:53:05' and `end` < '2025-01-14 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:53:17] Production.INFO: count ==561 [2025-01-14 08:53:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:53:05 - End Time 2025-01-14 08:53:05 [2025-01-14 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245186', 'tblTempUsageDetail_20' ) start [2025-01-14 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245186', 'tblTempUsageDetail_20' ) end [2025-01-14 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245186', 'tblTempVendorCDR_20' ) start [2025-01-14 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245186', 'tblTempVendorCDR_20' ) end [2025-01-14 08:53:17] Production.INFO: ProcessCDR(1,14245186,1,1,2) [2025-01-14 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245186', 'tblTempUsageDetail_20' ) start [2025-01-14 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245186', 'tblTempUsageDetail_20' ) end [2025-01-14 08:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:53:21] Production.INFO: ==4523== Releasing lock... [2025-01-14 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:53:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:54:05 [end_date_ymd] => 2025-01-14 08:54:05 [RateCDR] => 1 ) [2025-01-14 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:54:05' and `end` < '2025-01-14 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:54:19] Production.INFO: count ==562 [2025-01-14 08:54:20] Production.ERROR: pbx CDR StartTime 2025-01-14 05:54:05 - End Time 2025-01-14 08:54:05 [2025-01-14 08:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245191', 'tblTempUsageDetail_20' ) start [2025-01-14 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245191', 'tblTempUsageDetail_20' ) end [2025-01-14 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245191', 'tblTempVendorCDR_20' ) start [2025-01-14 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245191', 'tblTempVendorCDR_20' ) end [2025-01-14 08:54:20] Production.INFO: ProcessCDR(1,14245191,1,1,2) [2025-01-14 08:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245191', 'tblTempUsageDetail_20' ) start [2025-01-14 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245191', 'tblTempUsageDetail_20' ) end [2025-01-14 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:54:23] Production.INFO: ==4604== Releasing lock... [2025-01-14 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:54:23] Production.INFO: 33 MB #Memory Used# [2025-01-14 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:55:05 [end_date_ymd] => 2025-01-14 08:55:05 [RateCDR] => 1 ) [2025-01-14 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:55:05' and `end` < '2025-01-14 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:55:17] Production.INFO: count ==562 [2025-01-14 08:55:17] Production.ERROR: pbx CDR StartTime 2025-01-14 05:55:05 - End Time 2025-01-14 08:55:05 [2025-01-14 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245196', 'tblTempUsageDetail_20' ) start [2025-01-14 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245196', 'tblTempUsageDetail_20' ) end [2025-01-14 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245196', 'tblTempVendorCDR_20' ) start [2025-01-14 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245196', 'tblTempVendorCDR_20' ) end [2025-01-14 08:55:17] Production.INFO: ProcessCDR(1,14245196,1,1,2) [2025-01-14 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245196', 'tblTempUsageDetail_20' ) start [2025-01-14 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245196', 'tblTempUsageDetail_20' ) end [2025-01-14 08:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:55:20] Production.INFO: ==4680== Releasing lock... [2025-01-14 08:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:55:20] Production.INFO: 33 MB #Memory Used# [2025-01-14 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:56:05 [end_date_ymd] => 2025-01-14 08:56:05 [RateCDR] => 1 ) [2025-01-14 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:56:05' and `end` < '2025-01-14 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:56:18] Production.INFO: count ==568 [2025-01-14 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:56:05 - End Time 2025-01-14 08:56:05 [2025-01-14 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245201', 'tblTempUsageDetail_20' ) start [2025-01-14 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245201', 'tblTempUsageDetail_20' ) end [2025-01-14 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245201', 'tblTempVendorCDR_20' ) start [2025-01-14 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245201', 'tblTempVendorCDR_20' ) end [2025-01-14 08:56:18] Production.INFO: ProcessCDR(1,14245201,1,1,2) [2025-01-14 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245201', 'tblTempUsageDetail_20' ) start [2025-01-14 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245201', 'tblTempUsageDetail_20' ) end [2025-01-14 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:56:21] Production.INFO: ==4756== Releasing lock... [2025-01-14 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:56:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:57:04 [end_date_ymd] => 2025-01-14 08:57:04 [RateCDR] => 1 ) [2025-01-14 08: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` >= '2025-01-14 05:57:04' and `end` < '2025-01-14 08: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 ,'') [2025-01-14 08:57:18] Production.INFO: count ==571 [2025-01-14 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:57:04 - End Time 2025-01-14 08:57:04 [2025-01-14 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245206', 'tblTempUsageDetail_20' ) start [2025-01-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245206', 'tblTempUsageDetail_20' ) end [2025-01-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245206', 'tblTempVendorCDR_20' ) start [2025-01-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245206', 'tblTempVendorCDR_20' ) end [2025-01-14 08:57:18] Production.INFO: ProcessCDR(1,14245206,1,1,2) [2025-01-14 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245206', 'tblTempUsageDetail_20' ) start [2025-01-14 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245206', 'tblTempUsageDetail_20' ) end [2025-01-14 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:57:21] Production.INFO: ==4826== Releasing lock... [2025-01-14 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:58:05 [end_date_ymd] => 2025-01-14 08:58:05 [RateCDR] => 1 ) [2025-01-14 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:58:05' and `end` < '2025-01-14 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:58:18] Production.INFO: count ==592 [2025-01-14 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-14 05:58:05 - End Time 2025-01-14 08:58:05 [2025-01-14 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245211', 'tblTempUsageDetail_20' ) start [2025-01-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245211', 'tblTempUsageDetail_20' ) end [2025-01-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245211', 'tblTempVendorCDR_20' ) start [2025-01-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245211', 'tblTempVendorCDR_20' ) end [2025-01-14 08:58:18] Production.INFO: ProcessCDR(1,14245211,1,1,2) [2025-01-14 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245211', 'tblTempUsageDetail_20' ) start [2025-01-14 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245211', 'tblTempUsageDetail_20' ) end [2025-01-14 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:58:21] Production.INFO: ==4899== Releasing lock... [2025-01-14 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:58:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 05:59:05 [end_date_ymd] => 2025-01-14 08:59:05 [RateCDR] => 1 ) [2025-01-14 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 05:59:05' and `end` < '2025-01-14 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 08:59:19] Production.INFO: count ==592 [2025-01-14 08:59:19] Production.ERROR: pbx CDR StartTime 2025-01-14 05:59:05 - End Time 2025-01-14 08:59:05 [2025-01-14 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245216', 'tblTempUsageDetail_20' ) start [2025-01-14 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245216', 'tblTempUsageDetail_20' ) end [2025-01-14 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245216', 'tblTempVendorCDR_20' ) start [2025-01-14 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245216', 'tblTempVendorCDR_20' ) end [2025-01-14 08:59:19] Production.INFO: ProcessCDR(1,14245216,1,1,2) [2025-01-14 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245216', 'tblTempUsageDetail_20' ) start [2025-01-14 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245216', 'tblTempUsageDetail_20' ) end [2025-01-14 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 08:59:22] Production.INFO: ==4976== Releasing lock... [2025-01-14 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 08:59:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:00:05 [end_date_ymd] => 2025-01-14 09:00:05 [RateCDR] => 1 ) [2025-01-14 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:00:05' and `end` < '2025-01-14 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:00:18] Production.INFO: count ==596 [2025-01-14 09:00:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:00:05 - End Time 2025-01-14 09:00:05 [2025-01-14 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245221', 'tblTempUsageDetail_20' ) start [2025-01-14 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245221', 'tblTempUsageDetail_20' ) end [2025-01-14 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245221', 'tblTempVendorCDR_20' ) start [2025-01-14 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245221', 'tblTempVendorCDR_20' ) end [2025-01-14 09:00:18] Production.INFO: ProcessCDR(1,14245221,1,1,2) [2025-01-14 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245221', 'tblTempUsageDetail_20' ) start [2025-01-14 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245221', 'tblTempUsageDetail_20' ) end [2025-01-14 09:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:00:21] Production.INFO: ==5096== Releasing lock... [2025-01-14 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:00:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:01:05 [end_date_ymd] => 2025-01-14 09:01:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:01:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:01:18] Production.INFO: count ==639 [2025-01-14 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:01:05 - End Time 2025-01-14 09:01:05 [2025-01-14 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245227', 'tblTempUsageDetail_20' ) start [2025-01-14 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245227', 'tblTempUsageDetail_20' ) end [2025-01-14 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245227', 'tblTempVendorCDR_20' ) start [2025-01-14 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245227', 'tblTempVendorCDR_20' ) end [2025-01-14 09:01:18] Production.INFO: ProcessCDR(1,14245227,1,1,2) [2025-01-14 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245227', 'tblTempUsageDetail_20' ) start [2025-01-14 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245227', 'tblTempUsageDetail_20' ) end [2025-01-14 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:01:21] Production.INFO: ==5191== Releasing lock... [2025-01-14 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:01:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:02:05 [end_date_ymd] => 2025-01-14 09:02:05 [RateCDR] => 1 ) [2025-01-14 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:02:05' and `end` < '2025-01-14 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:02:18] Production.INFO: count ==663 [2025-01-14 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:02:05 - End Time 2025-01-14 09:02:05 [2025-01-14 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245232', 'tblTempUsageDetail_20' ) start [2025-01-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245232', 'tblTempUsageDetail_20' ) end [2025-01-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245232', 'tblTempVendorCDR_20' ) start [2025-01-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245232', 'tblTempVendorCDR_20' ) end [2025-01-14 09:02:18] Production.INFO: ProcessCDR(1,14245232,1,1,2) [2025-01-14 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245232', 'tblTempUsageDetail_20' ) start [2025-01-14 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245232', 'tblTempUsageDetail_20' ) end [2025-01-14 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:02:23] Production.INFO: ==5271== Releasing lock... [2025-01-14 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:02:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:03:05 [end_date_ymd] => 2025-01-14 09:03:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:03:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:03:18] Production.INFO: count ==684 [2025-01-14 09:03:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:03:05 - End Time 2025-01-14 09:03:05 [2025-01-14 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245237', 'tblTempUsageDetail_20' ) start [2025-01-14 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245237', 'tblTempUsageDetail_20' ) end [2025-01-14 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245237', 'tblTempVendorCDR_20' ) start [2025-01-14 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245237', 'tblTempVendorCDR_20' ) end [2025-01-14 09:03:18] Production.INFO: ProcessCDR(1,14245237,1,1,2) [2025-01-14 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245237', 'tblTempUsageDetail_20' ) start [2025-01-14 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245237', 'tblTempUsageDetail_20' ) end [2025-01-14 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:03:21] Production.INFO: ==5353== Releasing lock... [2025-01-14 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:03:21] Production.INFO: 34 MB #Memory Used# [2025-01-14 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:04:04 [end_date_ymd] => 2025-01-14 09:04:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:04:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:04:17] Production.INFO: count ==693 [2025-01-14 09:04:17] Production.ERROR: pbx CDR StartTime 2025-01-14 06:04:04 - End Time 2025-01-14 09:04:04 [2025-01-14 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245238', 'tblTempUsageDetail_20' ) start [2025-01-14 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245238', 'tblTempUsageDetail_20' ) end [2025-01-14 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245238', 'tblTempVendorCDR_20' ) start [2025-01-14 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245238', 'tblTempVendorCDR_20' ) end [2025-01-14 09:04:17] Production.INFO: ProcessCDR(1,14245238,1,1,2) [2025-01-14 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245238', 'tblTempUsageDetail_20' ) start [2025-01-14 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245238', 'tblTempUsageDetail_20' ) end [2025-01-14 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:04:22] Production.INFO: ==5437== Releasing lock... [2025-01-14 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:04:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:05:05 [end_date_ymd] => 2025-01-14 09:05:05 [RateCDR] => 1 ) [2025-01-14 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:05:05' and `end` < '2025-01-14 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:05:18] Production.INFO: count ==706 [2025-01-14 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:05:05 - End Time 2025-01-14 09:05:05 [2025-01-14 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245247', 'tblTempUsageDetail_20' ) start [2025-01-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245247', 'tblTempUsageDetail_20' ) end [2025-01-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245247', 'tblTempVendorCDR_20' ) start [2025-01-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245247', 'tblTempVendorCDR_20' ) end [2025-01-14 09:05:18] Production.INFO: ProcessCDR(1,14245247,1,1,2) [2025-01-14 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245247', 'tblTempUsageDetail_20' ) start [2025-01-14 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245247', 'tblTempUsageDetail_20' ) end [2025-01-14 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:05:22] Production.INFO: ==5522== Releasing lock... [2025-01-14 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:05:22] Production.INFO: 34 MB #Memory Used# [2025-01-14 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:06:05 [end_date_ymd] => 2025-01-14 09:06:05 [RateCDR] => 1 ) [2025-01-14 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:06:05' and `end` < '2025-01-14 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:06:19] Production.INFO: count ==729 [2025-01-14 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-14 06:06:05 - End Time 2025-01-14 09:06:05 [2025-01-14 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245252', 'tblTempUsageDetail_20' ) start [2025-01-14 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245252', 'tblTempUsageDetail_20' ) end [2025-01-14 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245252', 'tblTempVendorCDR_20' ) start [2025-01-14 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245252', 'tblTempVendorCDR_20' ) end [2025-01-14 09:06:19] Production.INFO: ProcessCDR(1,14245252,1,1,2) [2025-01-14 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245252', 'tblTempUsageDetail_20' ) start [2025-01-14 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245252', 'tblTempUsageDetail_20' ) end [2025-01-14 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:06:24] Production.INFO: ==5608== Releasing lock... [2025-01-14 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:06:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:07:05 [end_date_ymd] => 2025-01-14 09:07:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:07:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:07:18] Production.INFO: count ==730 [2025-01-14 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:07:05 - End Time 2025-01-14 09:07:05 [2025-01-14 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245257', 'tblTempUsageDetail_20' ) start [2025-01-14 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245257', 'tblTempUsageDetail_20' ) end [2025-01-14 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245257', 'tblTempVendorCDR_20' ) start [2025-01-14 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245257', 'tblTempVendorCDR_20' ) end [2025-01-14 09:07:18] Production.INFO: ProcessCDR(1,14245257,1,1,2) [2025-01-14 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245257', 'tblTempUsageDetail_20' ) start [2025-01-14 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245257', 'tblTempUsageDetail_20' ) end [2025-01-14 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:07:21] Production.INFO: ==5692== Releasing lock... [2025-01-14 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:07:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-14 09:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:08:04 [end_date_ymd] => 2025-01-14 09:08:04 [RateCDR] => 1 ) [2025-01-14 09:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:08:04' and `end` < '2025-01-14 09:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:08:17] Production.INFO: count ==756 [2025-01-14 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:08:04 - End Time 2025-01-14 09:08:04 [2025-01-14 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245262', 'tblTempUsageDetail_20' ) start [2025-01-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245262', 'tblTempUsageDetail_20' ) end [2025-01-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245262', 'tblTempVendorCDR_20' ) start [2025-01-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245262', 'tblTempVendorCDR_20' ) end [2025-01-14 09:08:18] Production.INFO: ProcessCDR(1,14245262,1,1,2) [2025-01-14 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245262', 'tblTempUsageDetail_20' ) start [2025-01-14 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245262', 'tblTempUsageDetail_20' ) end [2025-01-14 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:08:22] Production.INFO: ==5777== Releasing lock... [2025-01-14 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-14 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:09:05 [end_date_ymd] => 2025-01-14 09:09:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:09:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:09:17] Production.INFO: count ==780 [2025-01-14 09:09:17] Production.ERROR: pbx CDR StartTime 2025-01-14 06:09:05 - End Time 2025-01-14 09:09:05 [2025-01-14 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245267', 'tblTempUsageDetail_20' ) start [2025-01-14 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245267', 'tblTempUsageDetail_20' ) end [2025-01-14 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245267', 'tblTempVendorCDR_20' ) start [2025-01-14 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245267', 'tblTempVendorCDR_20' ) end [2025-01-14 09:09:17] Production.INFO: ProcessCDR(1,14245267,1,1,2) [2025-01-14 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245267', 'tblTempUsageDetail_20' ) start [2025-01-14 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245267', 'tblTempUsageDetail_20' ) end [2025-01-14 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:09:22] Production.INFO: ==5879== Releasing lock... [2025-01-14 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-14 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:10:06 [end_date_ymd] => 2025-01-14 09:10:06 [RateCDR] => 1 ) [2025-01-14 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:10:06' and `end` < '2025-01-14 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:10:19] Production.INFO: count ==804 [2025-01-14 09:10:19] Production.ERROR: pbx CDR StartTime 2025-01-14 06:10:06 - End Time 2025-01-14 09:10:06 [2025-01-14 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245273', 'tblTempUsageDetail_20' ) start [2025-01-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245273', 'tblTempUsageDetail_20' ) end [2025-01-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245273', 'tblTempVendorCDR_20' ) start [2025-01-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245273', 'tblTempVendorCDR_20' ) end [2025-01-14 09:10:19] Production.INFO: ProcessCDR(1,14245273,1,1,2) [2025-01-14 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245273', 'tblTempUsageDetail_20' ) start [2025-01-14 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245273', 'tblTempUsageDetail_20' ) end [2025-01-14 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:10:22] Production.INFO: ==5986== Releasing lock... [2025-01-14 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:10:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-14 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:11:05 [end_date_ymd] => 2025-01-14 09:11:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:11:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:11:18] Production.INFO: count ==854 [2025-01-14 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:11:05 - End Time 2025-01-14 09:11:05 [2025-01-14 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245278', 'tblTempUsageDetail_20' ) start [2025-01-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245278', 'tblTempUsageDetail_20' ) end [2025-01-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245278', 'tblTempVendorCDR_20' ) start [2025-01-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245278', 'tblTempVendorCDR_20' ) end [2025-01-14 09:11:18] Production.INFO: ProcessCDR(1,14245278,1,1,2) [2025-01-14 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245278', 'tblTempUsageDetail_20' ) start [2025-01-14 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245278', 'tblTempUsageDetail_20' ) end [2025-01-14 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:11:23] Production.INFO: ==6098== Releasing lock... [2025-01-14 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:11:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-14 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:12:05 [end_date_ymd] => 2025-01-14 09:12:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:12:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:12:18] Production.INFO: count ==868 [2025-01-14 09:12:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:12:05 - End Time 2025-01-14 09:12:05 [2025-01-14 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245283', 'tblTempUsageDetail_20' ) start [2025-01-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245283', 'tblTempUsageDetail_20' ) end [2025-01-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245283', 'tblTempVendorCDR_20' ) start [2025-01-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245283', 'tblTempVendorCDR_20' ) end [2025-01-14 09:12:18] Production.INFO: ProcessCDR(1,14245283,1,1,2) [2025-01-14 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245283', 'tblTempUsageDetail_20' ) start [2025-01-14 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245283', 'tblTempUsageDetail_20' ) end [2025-01-14 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:12:23] Production.INFO: ==6206== Releasing lock... [2025-01-14 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:12:23] Production.INFO: 35 MB #Memory Used# [2025-01-14 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:13:05 [end_date_ymd] => 2025-01-14 09:13:05 [RateCDR] => 1 ) [2025-01-14 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:13:05' and `end` < '2025-01-14 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:13:17] Production.INFO: count ==879 [2025-01-14 09:13:17] Production.ERROR: pbx CDR StartTime 2025-01-14 06:13:05 - End Time 2025-01-14 09:13:05 [2025-01-14 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245288', 'tblTempUsageDetail_20' ) start [2025-01-14 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245288', 'tblTempUsageDetail_20' ) end [2025-01-14 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245288', 'tblTempVendorCDR_20' ) start [2025-01-14 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245288', 'tblTempVendorCDR_20' ) end [2025-01-14 09:13:17] Production.INFO: ProcessCDR(1,14245288,1,1,2) [2025-01-14 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245288', 'tblTempUsageDetail_20' ) start [2025-01-14 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245288', 'tblTempUsageDetail_20' ) end [2025-01-14 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:13:21] Production.INFO: ==6315== Releasing lock... [2025-01-14 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:13:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-14 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:14:05 [end_date_ymd] => 2025-01-14 09:14:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:14:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:14:17] Production.INFO: count ==886 [2025-01-14 09:14:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:14:05 - End Time 2025-01-14 09:14:05 [2025-01-14 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245293', 'tblTempUsageDetail_20' ) start [2025-01-14 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245293', 'tblTempUsageDetail_20' ) end [2025-01-14 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245293', 'tblTempVendorCDR_20' ) start [2025-01-14 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245293', 'tblTempVendorCDR_20' ) end [2025-01-14 09:14:18] Production.INFO: ProcessCDR(1,14245293,1,1,2) [2025-01-14 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245293', 'tblTempUsageDetail_20' ) start [2025-01-14 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245293', 'tblTempUsageDetail_20' ) end [2025-01-14 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:14:22] Production.INFO: ==6417== Releasing lock... [2025-01-14 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:14:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-14 09:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:15:04 [end_date_ymd] => 2025-01-14 09:15:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:15:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:15:17] Production.INFO: count ==902 [2025-01-14 09:15:17] Production.ERROR: pbx CDR StartTime 2025-01-14 06:15:04 - End Time 2025-01-14 09:15:04 [2025-01-14 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245298', 'tblTempUsageDetail_20' ) start [2025-01-14 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245298', 'tblTempUsageDetail_20' ) end [2025-01-14 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245298', 'tblTempVendorCDR_20' ) start [2025-01-14 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245298', 'tblTempVendorCDR_20' ) end [2025-01-14 09:15:17] Production.INFO: ProcessCDR(1,14245298,1,1,2) [2025-01-14 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245298', 'tblTempUsageDetail_20' ) start [2025-01-14 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245298', 'tblTempUsageDetail_20' ) end [2025-01-14 09:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:15:22] Production.INFO: ==6529== Releasing lock... [2025-01-14 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:15:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-14 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:16:05 [end_date_ymd] => 2025-01-14 09:16:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:16:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:16:17] Production.INFO: count ==918 [2025-01-14 09:16:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:16:05 - End Time 2025-01-14 09:16:05 [2025-01-14 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245303', 'tblTempUsageDetail_20' ) start [2025-01-14 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245303', 'tblTempUsageDetail_20' ) end [2025-01-14 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245303', 'tblTempVendorCDR_20' ) start [2025-01-14 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245303', 'tblTempVendorCDR_20' ) end [2025-01-14 09:16:18] Production.INFO: ProcessCDR(1,14245303,1,1,2) [2025-01-14 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245303', 'tblTempUsageDetail_20' ) start [2025-01-14 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245303', 'tblTempUsageDetail_20' ) end [2025-01-14 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:16:23] Production.INFO: ==6670== Releasing lock... [2025-01-14 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:16:23] Production.INFO: 35 MB #Memory Used# [2025-01-14 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:17:05 [end_date_ymd] => 2025-01-14 09:17:05 [RateCDR] => 1 ) [2025-01-14 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:17:05' and `end` < '2025-01-14 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:17:18] Production.INFO: count ==922 [2025-01-14 09:17:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:17:05 - End Time 2025-01-14 09:17:05 [2025-01-14 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245308', 'tblTempUsageDetail_20' ) start [2025-01-14 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245308', 'tblTempUsageDetail_20' ) end [2025-01-14 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245308', 'tblTempVendorCDR_20' ) start [2025-01-14 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245308', 'tblTempVendorCDR_20' ) end [2025-01-14 09:17:18] Production.INFO: ProcessCDR(1,14245308,1,1,2) [2025-01-14 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245308', 'tblTempUsageDetail_20' ) start [2025-01-14 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245308', 'tblTempUsageDetail_20' ) end [2025-01-14 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:17:23] Production.INFO: ==6776== Releasing lock... [2025-01-14 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:17:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-14 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:18:05 [end_date_ymd] => 2025-01-14 09:18:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:18:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:18:18] Production.INFO: count ==928 [2025-01-14 09:18:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:18:05 - End Time 2025-01-14 09:18:05 [2025-01-14 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245313', 'tblTempUsageDetail_20' ) start [2025-01-14 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245313', 'tblTempUsageDetail_20' ) end [2025-01-14 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245313', 'tblTempVendorCDR_20' ) start [2025-01-14 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245313', 'tblTempVendorCDR_20' ) end [2025-01-14 09:18:18] Production.INFO: ProcessCDR(1,14245313,1,1,2) [2025-01-14 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245313', 'tblTempUsageDetail_20' ) start [2025-01-14 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245313', 'tblTempUsageDetail_20' ) end [2025-01-14 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:18:22] Production.INFO: ==6874== Releasing lock... [2025-01-14 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:18:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-14 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:19:05 [end_date_ymd] => 2025-01-14 09:19:05 [RateCDR] => 1 ) [2025-01-14 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:19:05' and `end` < '2025-01-14 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:19:17] Production.INFO: count ==950 [2025-01-14 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:19:05 - End Time 2025-01-14 09:19:05 [2025-01-14 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245318', 'tblTempUsageDetail_20' ) start [2025-01-14 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245318', 'tblTempUsageDetail_20' ) end [2025-01-14 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245318', 'tblTempVendorCDR_20' ) start [2025-01-14 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245318', 'tblTempVendorCDR_20' ) end [2025-01-14 09:19:18] Production.INFO: ProcessCDR(1,14245318,1,1,2) [2025-01-14 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245318', 'tblTempUsageDetail_20' ) start [2025-01-14 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245318', 'tblTempUsageDetail_20' ) end [2025-01-14 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:19:23] Production.INFO: ==6979== Releasing lock... [2025-01-14 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:19:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-14 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:20:05 [end_date_ymd] => 2025-01-14 09:20:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:20:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:20:18] Production.INFO: count ==981 [2025-01-14 09:20:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:20:05 - End Time 2025-01-14 09:20:05 [2025-01-14 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245324', 'tblTempUsageDetail_20' ) start [2025-01-14 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245324', 'tblTempUsageDetail_20' ) end [2025-01-14 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245324', 'tblTempVendorCDR_20' ) start [2025-01-14 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245324', 'tblTempVendorCDR_20' ) end [2025-01-14 09:20:19] Production.INFO: ProcessCDR(1,14245324,1,1,2) [2025-01-14 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245324', 'tblTempUsageDetail_20' ) start [2025-01-14 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245324', 'tblTempUsageDetail_20' ) end [2025-01-14 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:20:23] Production.INFO: ==7085== Releasing lock... [2025-01-14 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:20:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-14 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:21:05 [end_date_ymd] => 2025-01-14 09:21:05 [RateCDR] => 1 ) [2025-01-14 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:21:05' and `end` < '2025-01-14 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:21:18] Production.INFO: count ==1069 [2025-01-14 09:21:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:21:05 - End Time 2025-01-14 09:21:05 [2025-01-14 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245329', 'tblTempUsageDetail_20' ) start [2025-01-14 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245329', 'tblTempUsageDetail_20' ) end [2025-01-14 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245329', 'tblTempVendorCDR_20' ) start [2025-01-14 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245329', 'tblTempVendorCDR_20' ) end [2025-01-14 09:21:18] Production.INFO: ProcessCDR(1,14245329,1,1,2) [2025-01-14 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245329', 'tblTempUsageDetail_20' ) start [2025-01-14 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245329', 'tblTempUsageDetail_20' ) end [2025-01-14 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:21:23] Production.INFO: ==7193== Releasing lock... [2025-01-14 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:21:23] Production.INFO: 36 MB #Memory Used# [2025-01-14 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:22:05 [end_date_ymd] => 2025-01-14 09:22:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:22:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:22:18] Production.INFO: count ==1074 [2025-01-14 09:22:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:22:05 - End Time 2025-01-14 09:22:05 [2025-01-14 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245334', 'tblTempUsageDetail_20' ) start [2025-01-14 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245334', 'tblTempUsageDetail_20' ) end [2025-01-14 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245334', 'tblTempVendorCDR_20' ) start [2025-01-14 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245334', 'tblTempVendorCDR_20' ) end [2025-01-14 09:22:18] Production.INFO: ProcessCDR(1,14245334,1,1,2) [2025-01-14 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245334', 'tblTempUsageDetail_20' ) start [2025-01-14 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245334', 'tblTempUsageDetail_20' ) end [2025-01-14 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:22:23] Production.INFO: ==7290== Releasing lock... [2025-01-14 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:22:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-14 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:23:04 [end_date_ymd] => 2025-01-14 09:23:04 [RateCDR] => 1 ) [2025-01-14 09:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:23:04' and `end` < '2025-01-14 09:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:23:17] Production.INFO: count ==1081 [2025-01-14 09:23:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:23:04 - End Time 2025-01-14 09:23:04 [2025-01-14 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245339', 'tblTempUsageDetail_20' ) start [2025-01-14 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245339', 'tblTempUsageDetail_20' ) end [2025-01-14 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245339', 'tblTempVendorCDR_20' ) start [2025-01-14 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245339', 'tblTempVendorCDR_20' ) end [2025-01-14 09:23:18] Production.INFO: ProcessCDR(1,14245339,1,1,2) [2025-01-14 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245339', 'tblTempUsageDetail_20' ) start [2025-01-14 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245339', 'tblTempUsageDetail_20' ) end [2025-01-14 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:23:22] Production.INFO: ==7396== Releasing lock... [2025-01-14 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:23:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-14 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:24:05 [end_date_ymd] => 2025-01-14 09:24:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:24:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:24:18] Production.INFO: count ==1097 [2025-01-14 09:24:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:24:05 - End Time 2025-01-14 09:24:05 [2025-01-14 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245344', 'tblTempUsageDetail_20' ) start [2025-01-14 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245344', 'tblTempUsageDetail_20' ) end [2025-01-14 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245344', 'tblTempVendorCDR_20' ) start [2025-01-14 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245344', 'tblTempVendorCDR_20' ) end [2025-01-14 09:24:18] Production.INFO: ProcessCDR(1,14245344,1,1,2) [2025-01-14 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245344', 'tblTempUsageDetail_20' ) start [2025-01-14 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245344', 'tblTempUsageDetail_20' ) end [2025-01-14 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:24:23] Production.INFO: ==7492== Releasing lock... [2025-01-14 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:24:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-14 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:25:05 [end_date_ymd] => 2025-01-14 09:25:05 [RateCDR] => 1 ) [2025-01-14 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:25:05' and `end` < '2025-01-14 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:25:18] Production.INFO: count ==1121 [2025-01-14 09:25:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:25:05 - End Time 2025-01-14 09:25:05 [2025-01-14 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245349', 'tblTempUsageDetail_20' ) start [2025-01-14 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245349', 'tblTempUsageDetail_20' ) end [2025-01-14 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245349', 'tblTempVendorCDR_20' ) start [2025-01-14 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245349', 'tblTempVendorCDR_20' ) end [2025-01-14 09:25:18] Production.INFO: ProcessCDR(1,14245349,1,1,2) [2025-01-14 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245349', 'tblTempUsageDetail_20' ) start [2025-01-14 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245349', 'tblTempUsageDetail_20' ) end [2025-01-14 09:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:25:22] Production.INFO: ==7591== Releasing lock... [2025-01-14 09:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:25:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-14 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:26:06 [end_date_ymd] => 2025-01-14 09:26:06 [RateCDR] => 1 ) [2025-01-14 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:26:06' and `end` < '2025-01-14 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:26:20] Production.INFO: count ==1137 [2025-01-14 09:26:20] Production.ERROR: pbx CDR StartTime 2025-01-14 06:26:06 - End Time 2025-01-14 09:26:06 [2025-01-14 09:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245354', 'tblTempUsageDetail_20' ) start [2025-01-14 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245354', 'tblTempUsageDetail_20' ) end [2025-01-14 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245354', 'tblTempVendorCDR_20' ) start [2025-01-14 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245354', 'tblTempVendorCDR_20' ) end [2025-01-14 09:26:20] Production.INFO: ProcessCDR(1,14245354,1,1,2) [2025-01-14 09:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245354', 'tblTempUsageDetail_20' ) start [2025-01-14 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245354', 'tblTempUsageDetail_20' ) end [2025-01-14 09:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:26:25] Production.INFO: ==7681== Releasing lock... [2025-01-14 09:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:26:25] Production.INFO: 36.5 MB #Memory Used# [2025-01-14 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:27:05 [end_date_ymd] => 2025-01-14 09:27:05 [RateCDR] => 1 ) [2025-01-14 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:27:05' and `end` < '2025-01-14 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:27:20] Production.INFO: count ==1147 [2025-01-14 09:27:20] Production.ERROR: pbx CDR StartTime 2025-01-14 06:27:05 - End Time 2025-01-14 09:27:05 [2025-01-14 09:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245359', 'tblTempUsageDetail_20' ) start [2025-01-14 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245359', 'tblTempUsageDetail_20' ) end [2025-01-14 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245359', 'tblTempVendorCDR_20' ) start [2025-01-14 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245359', 'tblTempVendorCDR_20' ) end [2025-01-14 09:27:20] Production.INFO: ProcessCDR(1,14245359,1,1,2) [2025-01-14 09:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245359', 'tblTempUsageDetail_20' ) start [2025-01-14 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245359', 'tblTempUsageDetail_20' ) end [2025-01-14 09:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:27:25] Production.INFO: ==7763== Releasing lock... [2025-01-14 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:27:25] Production.INFO: 37 MB #Memory Used# [2025-01-14 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:28:05 [end_date_ymd] => 2025-01-14 09:28:05 [RateCDR] => 1 ) [2025-01-14 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:28:05' and `end` < '2025-01-14 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:28:19] Production.INFO: count ==1149 [2025-01-14 09:28:19] Production.ERROR: pbx CDR StartTime 2025-01-14 06:28:05 - End Time 2025-01-14 09:28:05 [2025-01-14 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245364', 'tblTempUsageDetail_20' ) start [2025-01-14 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245364', 'tblTempUsageDetail_20' ) end [2025-01-14 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245364', 'tblTempVendorCDR_20' ) start [2025-01-14 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245364', 'tblTempVendorCDR_20' ) end [2025-01-14 09:28:19] Production.INFO: ProcessCDR(1,14245364,1,1,2) [2025-01-14 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245364', 'tblTempUsageDetail_20' ) start [2025-01-14 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245364', 'tblTempUsageDetail_20' ) end [2025-01-14 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:28:24] Production.INFO: ==7847== Releasing lock... [2025-01-14 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:28:24] Production.INFO: 37 MB #Memory Used# [2025-01-14 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:29:05 [end_date_ymd] => 2025-01-14 09:29:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:29:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:29:20] Production.INFO: count ==1163 [2025-01-14 09:29:20] Production.ERROR: pbx CDR StartTime 2025-01-14 06:29:05 - End Time 2025-01-14 09:29:05 [2025-01-14 09:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245369', 'tblTempUsageDetail_20' ) start [2025-01-14 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245369', 'tblTempUsageDetail_20' ) end [2025-01-14 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245369', 'tblTempVendorCDR_20' ) start [2025-01-14 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245369', 'tblTempVendorCDR_20' ) end [2025-01-14 09:29:20] Production.INFO: ProcessCDR(1,14245369,1,1,2) [2025-01-14 09:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245369', 'tblTempUsageDetail_20' ) start [2025-01-14 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245369', 'tblTempUsageDetail_20' ) end [2025-01-14 09:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:29:25] Production.INFO: ==7931== Releasing lock... [2025-01-14 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:29:25] Production.INFO: 36.75 MB #Memory Used# [2025-01-14 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:30:05 [end_date_ymd] => 2025-01-14 09:30:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:30:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:30:25] Production.INFO: count ==1182 [2025-01-14 09:30:25] Production.ERROR: pbx CDR StartTime 2025-01-14 06:30:05 - End Time 2025-01-14 09:30:05 [2025-01-14 09:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245375', 'tblTempUsageDetail_20' ) start [2025-01-14 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245375', 'tblTempUsageDetail_20' ) end [2025-01-14 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245375', 'tblTempVendorCDR_20' ) start [2025-01-14 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245375', 'tblTempVendorCDR_20' ) end [2025-01-14 09:30:25] Production.INFO: ProcessCDR(1,14245375,1,1,2) [2025-01-14 09:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245375', 'tblTempUsageDetail_20' ) start [2025-01-14 09:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245375', 'tblTempUsageDetail_20' ) end [2025-01-14 09:30:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:30:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:30:30] Production.INFO: ==8011== Releasing lock... [2025-01-14 09:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:30:30] Production.INFO: 37.25 MB #Memory Used# [2025-01-14 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:31:05 [end_date_ymd] => 2025-01-14 09:31:05 [RateCDR] => 1 ) [2025-01-14 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:31:05' and `end` < '2025-01-14 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:31:22] Production.INFO: count ==1273 [2025-01-14 09:31:22] Production.ERROR: pbx CDR StartTime 2025-01-14 06:31:05 - End Time 2025-01-14 09:31:05 [2025-01-14 09:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245380', 'tblTempUsageDetail_20' ) start [2025-01-14 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245380', 'tblTempUsageDetail_20' ) end [2025-01-14 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245380', 'tblTempVendorCDR_20' ) start [2025-01-14 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245380', 'tblTempVendorCDR_20' ) end [2025-01-14 09:31:22] Production.INFO: ProcessCDR(1,14245380,1,1,2) [2025-01-14 09:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245380', 'tblTempUsageDetail_20' ) start [2025-01-14 09:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245380', 'tblTempUsageDetail_20' ) end [2025-01-14 09:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:31:27] Production.INFO: ==8130== Releasing lock... [2025-01-14 09:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:31:27] Production.INFO: 37.5 MB #Memory Used# [2025-01-14 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:32:06 [end_date_ymd] => 2025-01-14 09:32:06 [RateCDR] => 1 ) [2025-01-14 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:32:06' and `end` < '2025-01-14 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:32:26] Production.INFO: count ==1278 [2025-01-14 09:32:27] Production.ERROR: pbx CDR StartTime 2025-01-14 06:32:06 - End Time 2025-01-14 09:32:06 [2025-01-14 09:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245385', 'tblTempUsageDetail_20' ) start [2025-01-14 09:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245385', 'tblTempUsageDetail_20' ) end [2025-01-14 09:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245385', 'tblTempVendorCDR_20' ) start [2025-01-14 09:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245385', 'tblTempVendorCDR_20' ) end [2025-01-14 09:32:27] Production.INFO: ProcessCDR(1,14245385,1,1,2) [2025-01-14 09:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245385', 'tblTempUsageDetail_20' ) start [2025-01-14 09:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245385', 'tblTempUsageDetail_20' ) end [2025-01-14 09:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:32:32] Production.INFO: ==8207== Releasing lock... [2025-01-14 09:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:32:32] Production.INFO: 37.75 MB #Memory Used# [2025-01-14 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:33:05 [end_date_ymd] => 2025-01-14 09:33:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:33:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:33:24] Production.INFO: count ==1290 [2025-01-14 09:33:24] Production.ERROR: pbx CDR StartTime 2025-01-14 06:33:05 - End Time 2025-01-14 09:33:05 [2025-01-14 09:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245390', 'tblTempUsageDetail_20' ) start [2025-01-14 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245390', 'tblTempUsageDetail_20' ) end [2025-01-14 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245390', 'tblTempVendorCDR_20' ) start [2025-01-14 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245390', 'tblTempVendorCDR_20' ) end [2025-01-14 09:33:24] Production.INFO: ProcessCDR(1,14245390,1,1,2) [2025-01-14 09:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245390', 'tblTempUsageDetail_20' ) start [2025-01-14 09:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245390', 'tblTempUsageDetail_20' ) end [2025-01-14 09:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:33:29] Production.INFO: ==8285== Releasing lock... [2025-01-14 09:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:33:29] Production.INFO: 37.75 MB #Memory Used# [2025-01-14 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:34:05 [end_date_ymd] => 2025-01-14 09:34:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:34:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:34:23] Production.INFO: count ==1318 [2025-01-14 09:34:24] Production.ERROR: pbx CDR StartTime 2025-01-14 06:34:05 - End Time 2025-01-14 09:34:05 [2025-01-14 09:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245395', 'tblTempUsageDetail_20' ) start [2025-01-14 09:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245395', 'tblTempUsageDetail_20' ) end [2025-01-14 09:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245395', 'tblTempVendorCDR_20' ) start [2025-01-14 09:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245395', 'tblTempVendorCDR_20' ) end [2025-01-14 09:34:24] Production.INFO: ProcessCDR(1,14245395,1,1,2) [2025-01-14 09:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245395', 'tblTempUsageDetail_20' ) start [2025-01-14 09:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245395', 'tblTempUsageDetail_20' ) end [2025-01-14 09:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:34:29] Production.INFO: ==8360== Releasing lock... [2025-01-14 09:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:34:29] Production.INFO: 38 MB #Memory Used# [2025-01-14 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:35:05 [end_date_ymd] => 2025-01-14 09:35:05 [RateCDR] => 1 ) [2025-01-14 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:35:05' and `end` < '2025-01-14 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:35:32] Production.INFO: count ==1354 [2025-01-14 09:35:33] Production.ERROR: pbx CDR StartTime 2025-01-14 06:35:05 - End Time 2025-01-14 09:35:05 [2025-01-14 09:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245400', 'tblTempUsageDetail_20' ) start [2025-01-14 09:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245400', 'tblTempUsageDetail_20' ) end [2025-01-14 09:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245400', 'tblTempVendorCDR_20' ) start [2025-01-14 09:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245400', 'tblTempVendorCDR_20' ) end [2025-01-14 09:35:33] Production.INFO: ProcessCDR(1,14245400,1,1,2) [2025-01-14 09:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245400', 'tblTempUsageDetail_20' ) start [2025-01-14 09:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245400', 'tblTempUsageDetail_20' ) end [2025-01-14 09:35:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:35:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:35:38] Production.INFO: ==8433== Releasing lock... [2025-01-14 09:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:35:38] Production.INFO: 38.25 MB #Memory Used# [2025-01-14 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:36:06 [end_date_ymd] => 2025-01-14 09:36:06 [RateCDR] => 1 ) [2025-01-14 09:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:36:06' and `end` < '2025-01-14 09:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:36:23] Production.INFO: count ==1370 [2025-01-14 09:36:24] Production.ERROR: pbx CDR StartTime 2025-01-14 06:36:06 - End Time 2025-01-14 09:36:06 [2025-01-14 09:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245405', 'tblTempUsageDetail_20' ) start [2025-01-14 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245405', 'tblTempUsageDetail_20' ) end [2025-01-14 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245405', 'tblTempVendorCDR_20' ) start [2025-01-14 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245405', 'tblTempVendorCDR_20' ) end [2025-01-14 09:36:24] Production.INFO: ProcessCDR(1,14245405,1,1,2) [2025-01-14 09:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245405', 'tblTempUsageDetail_20' ) start [2025-01-14 09:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245405', 'tblTempUsageDetail_20' ) end [2025-01-14 09:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:36:28] Production.INFO: ==8510== Releasing lock... [2025-01-14 09:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:36:28] Production.INFO: 38.25 MB #Memory Used# [2025-01-14 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:37:05 [end_date_ymd] => 2025-01-14 09:37:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:37:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:37:19] Production.INFO: count ==1392 [2025-01-14 09:37:19] Production.ERROR: pbx CDR StartTime 2025-01-14 06:37:05 - End Time 2025-01-14 09:37:05 [2025-01-14 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245410', 'tblTempUsageDetail_20' ) start [2025-01-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245410', 'tblTempUsageDetail_20' ) end [2025-01-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245410', 'tblTempVendorCDR_20' ) start [2025-01-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245410', 'tblTempVendorCDR_20' ) end [2025-01-14 09:37:19] Production.INFO: ProcessCDR(1,14245410,1,1,2) [2025-01-14 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245410', 'tblTempUsageDetail_20' ) start [2025-01-14 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245410', 'tblTempUsageDetail_20' ) end [2025-01-14 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:37:24] Production.INFO: ==8582== Releasing lock... [2025-01-14 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:37:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-14 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:38:05 [end_date_ymd] => 2025-01-14 09:38:05 [RateCDR] => 1 ) [2025-01-14 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:38:05' and `end` < '2025-01-14 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:38:19] Production.INFO: count ==1407 [2025-01-14 09:38:20] Production.ERROR: pbx CDR StartTime 2025-01-14 06:38:05 - End Time 2025-01-14 09:38:05 [2025-01-14 09:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245415', 'tblTempUsageDetail_20' ) start [2025-01-14 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245415', 'tblTempUsageDetail_20' ) end [2025-01-14 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245415', 'tblTempVendorCDR_20' ) start [2025-01-14 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245415', 'tblTempVendorCDR_20' ) end [2025-01-14 09:38:20] Production.INFO: ProcessCDR(1,14245415,1,1,2) [2025-01-14 09:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245415', 'tblTempUsageDetail_20' ) start [2025-01-14 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245415', 'tblTempUsageDetail_20' ) end [2025-01-14 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:38:24] Production.INFO: ==8656== Releasing lock... [2025-01-14 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:38:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-14 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:39:05 [end_date_ymd] => 2025-01-14 09:39:05 [RateCDR] => 1 ) [2025-01-14 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:39:05' and `end` < '2025-01-14 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:39:18] Production.INFO: count ==1439 [2025-01-14 09:39:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:39:05 - End Time 2025-01-14 09:39:05 [2025-01-14 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245420', 'tblTempUsageDetail_20' ) start [2025-01-14 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245420', 'tblTempUsageDetail_20' ) end [2025-01-14 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245420', 'tblTempVendorCDR_20' ) start [2025-01-14 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245420', 'tblTempVendorCDR_20' ) end [2025-01-14 09:39:18] Production.INFO: ProcessCDR(1,14245420,1,1,2) [2025-01-14 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245420', 'tblTempUsageDetail_20' ) start [2025-01-14 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245420', 'tblTempUsageDetail_20' ) end [2025-01-14 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:39:23] Production.INFO: ==8733== Releasing lock... [2025-01-14 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:39:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-14 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:40:06 [end_date_ymd] => 2025-01-14 09:40:06 [RateCDR] => 1 ) [2025-01-14 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:40:06' and `end` < '2025-01-14 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:40:20] Production.INFO: count ==1452 [2025-01-14 09:40:20] Production.ERROR: pbx CDR StartTime 2025-01-14 06:40:06 - End Time 2025-01-14 09:40:06 [2025-01-14 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245425', 'tblTempUsageDetail_20' ) start [2025-01-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245425', 'tblTempUsageDetail_20' ) end [2025-01-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245425', 'tblTempVendorCDR_20' ) start [2025-01-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245425', 'tblTempVendorCDR_20' ) end [2025-01-14 09:40:20] Production.INFO: ProcessCDR(1,14245425,1,1,2) [2025-01-14 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245425', 'tblTempUsageDetail_20' ) start [2025-01-14 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245425', 'tblTempUsageDetail_20' ) end [2025-01-14 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:40:25] Production.INFO: ==8810== Releasing lock... [2025-01-14 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:40:25] Production.INFO: 39 MB #Memory Used# [2025-01-14 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:41:05 [end_date_ymd] => 2025-01-14 09:41:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:41:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:41:19] Production.INFO: count ==1560 [2025-01-14 09:41:20] Production.ERROR: pbx CDR StartTime 2025-01-14 06:41:05 - End Time 2025-01-14 09:41:05 [2025-01-14 09:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245431', 'tblTempUsageDetail_20' ) start [2025-01-14 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245431', 'tblTempUsageDetail_20' ) end [2025-01-14 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245431', 'tblTempVendorCDR_20' ) start [2025-01-14 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245431', 'tblTempVendorCDR_20' ) end [2025-01-14 09:41:20] Production.INFO: ProcessCDR(1,14245431,1,1,2) [2025-01-14 09:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245431', 'tblTempUsageDetail_20' ) start [2025-01-14 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245431', 'tblTempUsageDetail_20' ) end [2025-01-14 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:41:24] Production.INFO: ==8894== Releasing lock... [2025-01-14 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:41:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-14 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:42:05 [end_date_ymd] => 2025-01-14 09:42:05 [RateCDR] => 1 ) [2025-01-14 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:42:05' and `end` < '2025-01-14 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:42:19] Production.INFO: count ==1581 [2025-01-14 09:42:20] Production.ERROR: pbx CDR StartTime 2025-01-14 06:42:05 - End Time 2025-01-14 09:42:05 [2025-01-14 09:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245436', 'tblTempUsageDetail_20' ) start [2025-01-14 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245436', 'tblTempUsageDetail_20' ) end [2025-01-14 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245436', 'tblTempVendorCDR_20' ) start [2025-01-14 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245436', 'tblTempVendorCDR_20' ) end [2025-01-14 09:42:20] Production.INFO: ProcessCDR(1,14245436,1,1,2) [2025-01-14 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245436', 'tblTempUsageDetail_20' ) start [2025-01-14 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245436', 'tblTempUsageDetail_20' ) end [2025-01-14 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:42:24] Production.INFO: ==8968== Releasing lock... [2025-01-14 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:42:24] Production.INFO: 40 MB #Memory Used# [2025-01-14 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:43:04 [end_date_ymd] => 2025-01-14 09:43:04 [RateCDR] => 1 ) [2025-01-14 09:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:43:04' and `end` < '2025-01-14 09:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:43:24] Production.INFO: count ==1607 [2025-01-14 09:43:25] Production.ERROR: pbx CDR StartTime 2025-01-14 06:43:04 - End Time 2025-01-14 09:43:04 [2025-01-14 09:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245441', 'tblTempUsageDetail_20' ) start [2025-01-14 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245441', 'tblTempUsageDetail_20' ) end [2025-01-14 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245441', 'tblTempVendorCDR_20' ) start [2025-01-14 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245441', 'tblTempVendorCDR_20' ) end [2025-01-14 09:43:25] Production.INFO: ProcessCDR(1,14245441,1,1,2) [2025-01-14 09:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245441', 'tblTempUsageDetail_20' ) start [2025-01-14 09:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245441', 'tblTempUsageDetail_20' ) end [2025-01-14 09:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:43:30] Production.INFO: ==9043== Releasing lock... [2025-01-14 09:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:43:30] Production.INFO: 40.25 MB #Memory Used# [2025-01-14 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:44:05 [end_date_ymd] => 2025-01-14 09:44:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:44:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:44:23] Production.INFO: count ==1625 [2025-01-14 09:44:24] Production.ERROR: pbx CDR StartTime 2025-01-14 06:44:05 - End Time 2025-01-14 09:44:05 [2025-01-14 09:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245446', 'tblTempUsageDetail_20' ) start [2025-01-14 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245446', 'tblTempUsageDetail_20' ) end [2025-01-14 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245446', 'tblTempVendorCDR_20' ) start [2025-01-14 09:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245446', 'tblTempVendorCDR_20' ) end [2025-01-14 09:44:24] Production.INFO: ProcessCDR(1,14245446,1,1,2) [2025-01-14 09:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245446', 'tblTempUsageDetail_20' ) start [2025-01-14 09:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245446', 'tblTempUsageDetail_20' ) end [2025-01-14 09:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:44:28] Production.INFO: ==9114== Releasing lock... [2025-01-14 09:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:44:28] Production.INFO: 40.25 MB #Memory Used# [2025-01-14 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:45:04 [end_date_ymd] => 2025-01-14 09:45:04 [RateCDR] => 1 ) [2025-01-14 09: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` >= '2025-01-14 06:45:04' and `end` < '2025-01-14 09: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 ,'') [2025-01-14 09:45:20] Production.INFO: count ==1642 [2025-01-14 09:45:20] Production.ERROR: pbx CDR StartTime 2025-01-14 06:45:04 - End Time 2025-01-14 09:45:04 [2025-01-14 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245451', 'tblTempUsageDetail_20' ) start [2025-01-14 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245451', 'tblTempUsageDetail_20' ) end [2025-01-14 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245451', 'tblTempVendorCDR_20' ) start [2025-01-14 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245451', 'tblTempVendorCDR_20' ) end [2025-01-14 09:45:20] Production.INFO: ProcessCDR(1,14245451,1,1,2) [2025-01-14 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245451', 'tblTempUsageDetail_20' ) start [2025-01-14 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245451', 'tblTempUsageDetail_20' ) end [2025-01-14 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:45:25] Production.INFO: ==9189== Releasing lock... [2025-01-14 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:45:25] Production.INFO: 40.25 MB #Memory Used# [2025-01-14 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:46:05 [end_date_ymd] => 2025-01-14 09:46:05 [RateCDR] => 1 ) [2025-01-14 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:46:05' and `end` < '2025-01-14 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:46:20] Production.INFO: count ==1660 [2025-01-14 09:46:21] Production.ERROR: pbx CDR StartTime 2025-01-14 06:46:05 - End Time 2025-01-14 09:46:05 [2025-01-14 09:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245456', 'tblTempUsageDetail_20' ) start [2025-01-14 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245456', 'tblTempUsageDetail_20' ) end [2025-01-14 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245456', 'tblTempVendorCDR_20' ) start [2025-01-14 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245456', 'tblTempVendorCDR_20' ) end [2025-01-14 09:46:21] Production.INFO: ProcessCDR(1,14245456,1,1,2) [2025-01-14 09:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245456', 'tblTempUsageDetail_20' ) start [2025-01-14 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245456', 'tblTempUsageDetail_20' ) end [2025-01-14 09:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:46:26] Production.INFO: ==9265== Releasing lock... [2025-01-14 09:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:46:26] Production.INFO: 40.75 MB #Memory Used# [2025-01-14 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:47:04 [end_date_ymd] => 2025-01-14 09:47:04 [RateCDR] => 1 ) [2025-01-14 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:47:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:47:19] Production.INFO: count ==1689 [2025-01-14 09:47:19] Production.ERROR: pbx CDR StartTime 2025-01-14 06:47:04 - End Time 2025-01-14 09:47:04 [2025-01-14 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245461', 'tblTempUsageDetail_20' ) start [2025-01-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245461', 'tblTempUsageDetail_20' ) end [2025-01-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245461', 'tblTempVendorCDR_20' ) start [2025-01-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245461', 'tblTempVendorCDR_20' ) end [2025-01-14 09:47:19] Production.INFO: ProcessCDR(1,14245461,1,1,2) [2025-01-14 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245461', 'tblTempUsageDetail_20' ) start [2025-01-14 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245461', 'tblTempUsageDetail_20' ) end [2025-01-14 09:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:47:22] Production.INFO: ==9379== Releasing lock... [2025-01-14 09:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:47:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-14 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:48:05 [end_date_ymd] => 2025-01-14 09:48:05 [RateCDR] => 1 ) [2025-01-14 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:48:05' and `end` < '2025-01-14 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:48:18] Production.INFO: count ==1713 [2025-01-14 09:48:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:48:05 - End Time 2025-01-14 09:48:05 [2025-01-14 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245466', 'tblTempUsageDetail_20' ) start [2025-01-14 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245466', 'tblTempUsageDetail_20' ) end [2025-01-14 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245466', 'tblTempVendorCDR_20' ) start [2025-01-14 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245466', 'tblTempVendorCDR_20' ) end [2025-01-14 09:48:18] Production.INFO: ProcessCDR(1,14245466,1,1,2) [2025-01-14 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245466', 'tblTempUsageDetail_20' ) start [2025-01-14 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245466', 'tblTempUsageDetail_20' ) end [2025-01-14 09:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:48:21] Production.INFO: ==9455== Releasing lock... [2025-01-14 09:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:48:21] Production.INFO: 41 MB #Memory Used# [2025-01-14 09:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:49:04 [end_date_ymd] => 2025-01-14 09:49:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:49:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:49:18] Production.INFO: count ==1730 [2025-01-14 09:49:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:49:04 - End Time 2025-01-14 09:49:04 [2025-01-14 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245471', 'tblTempUsageDetail_20' ) start [2025-01-14 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245471', 'tblTempUsageDetail_20' ) end [2025-01-14 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245471', 'tblTempVendorCDR_20' ) start [2025-01-14 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245471', 'tblTempVendorCDR_20' ) end [2025-01-14 09:49:18] Production.INFO: ProcessCDR(1,14245471,1,1,2) [2025-01-14 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245471', 'tblTempUsageDetail_20' ) start [2025-01-14 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245471', 'tblTempUsageDetail_20' ) end [2025-01-14 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:49:23] Production.INFO: ==9538== Releasing lock... [2025-01-14 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:49:23] Production.INFO: 41 MB #Memory Used# [2025-01-14 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:50:06 [end_date_ymd] => 2025-01-14 09:50:06 [RateCDR] => 1 ) [2025-01-14 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:50:06' and `end` < '2025-01-14 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:50:23] Production.INFO: count ==1744 [2025-01-14 09:50:24] Production.ERROR: pbx CDR StartTime 2025-01-14 06:50:06 - End Time 2025-01-14 09:50:06 [2025-01-14 09:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245477', 'tblTempUsageDetail_20' ) start [2025-01-14 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245477', 'tblTempUsageDetail_20' ) end [2025-01-14 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245477', 'tblTempVendorCDR_20' ) start [2025-01-14 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245477', 'tblTempVendorCDR_20' ) end [2025-01-14 09:50:24] Production.INFO: ProcessCDR(1,14245477,1,1,2) [2025-01-14 09:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245477', 'tblTempUsageDetail_20' ) start [2025-01-14 09:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245477', 'tblTempUsageDetail_20' ) end [2025-01-14 09:50:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:50:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:50:29] Production.INFO: ==9627== Releasing lock... [2025-01-14 09:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:50:29] Production.INFO: 41.5 MB #Memory Used# [2025-01-14 09:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:51:04 [end_date_ymd] => 2025-01-14 09:51:04 [RateCDR] => 1 ) [2025-01-14 09: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` >= '2025-01-14 06:51:04' and `end` < '2025-01-14 09: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 ,'') [2025-01-14 09:51:20] Production.INFO: count ==1848 [2025-01-14 09:51:21] Production.ERROR: pbx CDR StartTime 2025-01-14 06:51:04 - End Time 2025-01-14 09:51:04 [2025-01-14 09:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245482', 'tblTempUsageDetail_20' ) start [2025-01-14 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245482', 'tblTempUsageDetail_20' ) end [2025-01-14 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245482', 'tblTempVendorCDR_20' ) start [2025-01-14 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245482', 'tblTempVendorCDR_20' ) end [2025-01-14 09:51:21] Production.INFO: ProcessCDR(1,14245482,1,1,2) [2025-01-14 09:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245482', 'tblTempUsageDetail_20' ) start [2025-01-14 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245482', 'tblTempUsageDetail_20' ) end [2025-01-14 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:51:25] Production.INFO: ==9712== Releasing lock... [2025-01-14 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:51:25] Production.INFO: 42 MB #Memory Used# [2025-01-14 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:52:05 [end_date_ymd] => 2025-01-14 09:52:05 [RateCDR] => 1 ) [2025-01-14 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:52:05' and `end` < '2025-01-14 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:52:23] Production.INFO: count ==1860 [2025-01-14 09:52:23] Production.ERROR: pbx CDR StartTime 2025-01-14 06:52:05 - End Time 2025-01-14 09:52:05 [2025-01-14 09:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245487', 'tblTempUsageDetail_20' ) start [2025-01-14 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245487', 'tblTempUsageDetail_20' ) end [2025-01-14 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245487', 'tblTempVendorCDR_20' ) start [2025-01-14 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245487', 'tblTempVendorCDR_20' ) end [2025-01-14 09:52:23] Production.INFO: ProcessCDR(1,14245487,1,1,2) [2025-01-14 09:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245487', 'tblTempUsageDetail_20' ) start [2025-01-14 09:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245487', 'tblTempUsageDetail_20' ) end [2025-01-14 09:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:52:28] Production.INFO: ==9796== Releasing lock... [2025-01-14 09:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:52:28] Production.INFO: 42.25 MB #Memory Used# [2025-01-14 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:53:05 [end_date_ymd] => 2025-01-14 09:53:05 [RateCDR] => 1 ) [2025-01-14 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:53:05' and `end` < '2025-01-14 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:53:21] Production.INFO: count ==1873 [2025-01-14 09:53:21] Production.ERROR: pbx CDR StartTime 2025-01-14 06:53:05 - End Time 2025-01-14 09:53:05 [2025-01-14 09:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245492', 'tblTempUsageDetail_20' ) start [2025-01-14 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245492', 'tblTempUsageDetail_20' ) end [2025-01-14 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245492', 'tblTempVendorCDR_20' ) start [2025-01-14 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245492', 'tblTempVendorCDR_20' ) end [2025-01-14 09:53:21] Production.INFO: ProcessCDR(1,14245492,1,1,2) [2025-01-14 09:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245492', 'tblTempUsageDetail_20' ) start [2025-01-14 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245492', 'tblTempUsageDetail_20' ) end [2025-01-14 09:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:53:26] Production.INFO: ==9879== Releasing lock... [2025-01-14 09:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:53:26] Production.INFO: 42 MB #Memory Used# [2025-01-14 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:54:04 [end_date_ymd] => 2025-01-14 09:54:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:54:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:54:17] Production.INFO: count ==1878 [2025-01-14 09:54:18] Production.ERROR: pbx CDR StartTime 2025-01-14 06:54:04 - End Time 2025-01-14 09:54:04 [2025-01-14 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245497', 'tblTempUsageDetail_20' ) start [2025-01-14 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245497', 'tblTempUsageDetail_20' ) end [2025-01-14 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245497', 'tblTempVendorCDR_20' ) start [2025-01-14 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245497', 'tblTempVendorCDR_20' ) end [2025-01-14 09:54:18] Production.INFO: ProcessCDR(1,14245497,1,1,2) [2025-01-14 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245497', 'tblTempUsageDetail_20' ) start [2025-01-14 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245497', 'tblTempUsageDetail_20' ) end [2025-01-14 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:54:23] Production.INFO: ==9965== Releasing lock... [2025-01-14 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:54:23] Production.INFO: 42 MB #Memory Used# [2025-01-14 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:55:05 [end_date_ymd] => 2025-01-14 09:55:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 06:55:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 09:55:20] Production.INFO: count ==1900 [2025-01-14 09:55:20] Production.ERROR: pbx CDR StartTime 2025-01-14 06:55:05 - End Time 2025-01-14 09:55:05 [2025-01-14 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245502', 'tblTempUsageDetail_20' ) start [2025-01-14 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245502', 'tblTempUsageDetail_20' ) end [2025-01-14 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245502', 'tblTempVendorCDR_20' ) start [2025-01-14 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245502', 'tblTempVendorCDR_20' ) end [2025-01-14 09:55:20] Production.INFO: ProcessCDR(1,14245502,1,1,2) [2025-01-14 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245502', 'tblTempUsageDetail_20' ) start [2025-01-14 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245502', 'tblTempUsageDetail_20' ) end [2025-01-14 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:55:25] Production.INFO: ==10050== Releasing lock... [2025-01-14 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:55:25] Production.INFO: 42.25 MB #Memory Used# [2025-01-14 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:56:05 [end_date_ymd] => 2025-01-14 09:56:05 [RateCDR] => 1 ) [2025-01-14 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:56:05' and `end` < '2025-01-14 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:56:19] Production.INFO: count ==1924 [2025-01-14 09:56:20] Production.ERROR: pbx CDR StartTime 2025-01-14 06:56:05 - End Time 2025-01-14 09:56:05 [2025-01-14 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245507', 'tblTempUsageDetail_20' ) start [2025-01-14 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245507', 'tblTempUsageDetail_20' ) end [2025-01-14 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245507', 'tblTempVendorCDR_20' ) start [2025-01-14 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245507', 'tblTempVendorCDR_20' ) end [2025-01-14 09:56:20] Production.INFO: ProcessCDR(1,14245507,1,1,2) [2025-01-14 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245507', 'tblTempUsageDetail_20' ) start [2025-01-14 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245507', 'tblTempUsageDetail_20' ) end [2025-01-14 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:56:25] Production.INFO: ==10135== Releasing lock... [2025-01-14 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:56:25] Production.INFO: 42.5 MB #Memory Used# [2025-01-14 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:57:05 [end_date_ymd] => 2025-01-14 09:57:05 [RateCDR] => 1 ) [2025-01-14 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:57:05' and `end` < '2025-01-14 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:57:25] Production.INFO: count ==1953 [2025-01-14 09:57:26] Production.ERROR: pbx CDR StartTime 2025-01-14 06:57:05 - End Time 2025-01-14 09:57:05 [2025-01-14 09:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245512', 'tblTempUsageDetail_20' ) start [2025-01-14 09:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245512', 'tblTempUsageDetail_20' ) end [2025-01-14 09:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245512', 'tblTempVendorCDR_20' ) start [2025-01-14 09:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245512', 'tblTempVendorCDR_20' ) end [2025-01-14 09:57:26] Production.INFO: ProcessCDR(1,14245512,1,1,2) [2025-01-14 09:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245512', 'tblTempUsageDetail_20' ) start [2025-01-14 09:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245512', 'tblTempUsageDetail_20' ) end [2025-01-14 09:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:57:30] Production.INFO: ==10229== Releasing lock... [2025-01-14 09:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:57:30] Production.INFO: 42.75 MB #Memory Used# [2025-01-14 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:58:05 [end_date_ymd] => 2025-01-14 09:58:05 [RateCDR] => 1 ) [2025-01-14 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:58:05' and `end` < '2025-01-14 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:58:25] Production.INFO: count ==1978 [2025-01-14 09:58:25] Production.ERROR: pbx CDR StartTime 2025-01-14 06:58:05 - End Time 2025-01-14 09:58:05 [2025-01-14 09:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245517', 'tblTempUsageDetail_20' ) start [2025-01-14 09:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245517', 'tblTempUsageDetail_20' ) end [2025-01-14 09:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245517', 'tblTempVendorCDR_20' ) start [2025-01-14 09:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245517', 'tblTempVendorCDR_20' ) end [2025-01-14 09:58:25] Production.INFO: ProcessCDR(1,14245517,1,1,2) [2025-01-14 09:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245517', 'tblTempUsageDetail_20' ) start [2025-01-14 09:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245517', 'tblTempUsageDetail_20' ) end [2025-01-14 09:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:58:31] Production.INFO: ==10313== Releasing lock... [2025-01-14 09:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:58:31] Production.INFO: 43 MB #Memory Used# [2025-01-14 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 06:59:05 [end_date_ymd] => 2025-01-14 09:59:05 [RateCDR] => 1 ) [2025-01-14 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 06:59:05' and `end` < '2025-01-14 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 09:59:24] Production.INFO: count ==2004 [2025-01-14 09:59:25] Production.ERROR: pbx CDR StartTime 2025-01-14 06:59:05 - End Time 2025-01-14 09:59:05 [2025-01-14 09:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245522', 'tblTempUsageDetail_20' ) start [2025-01-14 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245522', 'tblTempUsageDetail_20' ) end [2025-01-14 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245522', 'tblTempVendorCDR_20' ) start [2025-01-14 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245522', 'tblTempVendorCDR_20' ) end [2025-01-14 09:59:25] Production.INFO: ProcessCDR(1,14245522,1,1,2) [2025-01-14 09:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 09:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 09:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245522', 'tblTempUsageDetail_20' ) start [2025-01-14 09:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245522', 'tblTempUsageDetail_20' ) end [2025-01-14 09:59:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 09:59:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 09:59:29] Production.INFO: ==10400== Releasing lock... [2025-01-14 09:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 09:59:29] Production.INFO: 43 MB #Memory Used# [2025-01-14 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:00:05 [end_date_ymd] => 2025-01-14 10:00:05 [RateCDR] => 1 ) [2025-01-14 10: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` >= '2025-01-14 07:00:05' and `end` < '2025-01-14 10: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 ,'') [2025-01-14 10:00:21] Production.INFO: count ==2025 [2025-01-14 10:00:22] Production.ERROR: pbx CDR StartTime 2025-01-14 07:00:05 - End Time 2025-01-14 10:00:05 [2025-01-14 10:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245528', 'tblTempUsageDetail_20' ) start [2025-01-14 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245528', 'tblTempUsageDetail_20' ) end [2025-01-14 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245528', 'tblTempVendorCDR_20' ) start [2025-01-14 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245528', 'tblTempVendorCDR_20' ) end [2025-01-14 10:00:22] Production.INFO: ProcessCDR(1,14245528,1,1,2) [2025-01-14 10:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245528', 'tblTempUsageDetail_20' ) start [2025-01-14 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245528', 'tblTempUsageDetail_20' ) end [2025-01-14 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:00:25] Production.INFO: ==10484== Releasing lock... [2025-01-14 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:00:25] Production.INFO: 43.5 MB #Memory Used# [2025-01-14 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:01:05 [end_date_ymd] => 2025-01-14 10:01:05 [RateCDR] => 1 ) [2025-01-14 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:01:05' and `end` < '2025-01-14 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:01:21] Production.INFO: count ==2107 [2025-01-14 10:01:22] Production.ERROR: pbx CDR StartTime 2025-01-14 07:01:05 - End Time 2025-01-14 10:01:05 [2025-01-14 10:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245533', 'tblTempUsageDetail_20' ) start [2025-01-14 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245533', 'tblTempUsageDetail_20' ) end [2025-01-14 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245533', 'tblTempVendorCDR_20' ) start [2025-01-14 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245533', 'tblTempVendorCDR_20' ) end [2025-01-14 10:01:22] Production.INFO: ProcessCDR(1,14245533,1,1,2) [2025-01-14 10:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245533', 'tblTempUsageDetail_20' ) start [2025-01-14 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245533', 'tblTempUsageDetail_20' ) end [2025-01-14 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:01:27] Production.INFO: ==10595== Releasing lock... [2025-01-14 10:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:01:27] Production.INFO: 44 MB #Memory Used# [2025-01-14 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:02:05 [end_date_ymd] => 2025-01-14 10:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:02:27] Production.INFO: count ==2131 [2025-01-14 10:02:28] Production.ERROR: pbx CDR StartTime 2025-01-14 07:02:05 - End Time 2025-01-14 10:02:05 [2025-01-14 10:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245538', 'tblTempUsageDetail_20' ) start [2025-01-14 10:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245538', 'tblTempUsageDetail_20' ) end [2025-01-14 10:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245538', 'tblTempVendorCDR_20' ) start [2025-01-14 10:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245538', 'tblTempVendorCDR_20' ) end [2025-01-14 10:02:28] Production.INFO: ProcessCDR(1,14245538,1,1,2) [2025-01-14 10:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245538', 'tblTempUsageDetail_20' ) start [2025-01-14 10:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245538', 'tblTempUsageDetail_20' ) end [2025-01-14 10:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:02:33] Production.INFO: ==10720== Releasing lock... [2025-01-14 10:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:02:33] Production.INFO: 44 MB #Memory Used# [2025-01-14 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:03:05 [end_date_ymd] => 2025-01-14 10:03:05 [RateCDR] => 1 ) [2025-01-14 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:03:05' and `end` < '2025-01-14 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:03:23] Production.INFO: count ==2157 [2025-01-14 10:03:24] Production.ERROR: pbx CDR StartTime 2025-01-14 07:03:05 - End Time 2025-01-14 10:03:05 [2025-01-14 10:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245543', 'tblTempUsageDetail_20' ) start [2025-01-14 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245543', 'tblTempUsageDetail_20' ) end [2025-01-14 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245543', 'tblTempVendorCDR_20' ) start [2025-01-14 10:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245543', 'tblTempVendorCDR_20' ) end [2025-01-14 10:03:24] Production.INFO: ProcessCDR(1,14245543,1,1,2) [2025-01-14 10:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245543', 'tblTempUsageDetail_20' ) start [2025-01-14 10:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245543', 'tblTempUsageDetail_20' ) end [2025-01-14 10:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:03:29] Production.INFO: ==10808== Releasing lock... [2025-01-14 10:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:03:29] Production.INFO: 44.25 MB #Memory Used# [2025-01-14 10:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:04:04 [end_date_ymd] => 2025-01-14 10:04:04 [RateCDR] => 1 ) [2025-01-14 10:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:04:04' and `end` < '2025-01-14 10:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:04:31] Production.INFO: count ==2241 [2025-01-14 10:04:32] Production.ERROR: pbx CDR StartTime 2025-01-14 07:04:04 - End Time 2025-01-14 10:04:04 [2025-01-14 10:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245548', 'tblTempUsageDetail_20' ) start [2025-01-14 10:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245548', 'tblTempUsageDetail_20' ) end [2025-01-14 10:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245548', 'tblTempVendorCDR_20' ) start [2025-01-14 10:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245548', 'tblTempVendorCDR_20' ) end [2025-01-14 10:04:32] Production.INFO: ProcessCDR(1,14245548,1,1,2) [2025-01-14 10:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245548', 'tblTempUsageDetail_20' ) start [2025-01-14 10:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245548', 'tblTempUsageDetail_20' ) end [2025-01-14 10:04:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:04:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:04:37] Production.INFO: ==10890== Releasing lock... [2025-01-14 10:04:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:04:37] Production.INFO: 45 MB #Memory Used# [2025-01-14 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:05:05 [end_date_ymd] => 2025-01-14 10:05:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:05:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:05:25] Production.INFO: count ==2252 [2025-01-14 10:05:26] Production.ERROR: pbx CDR StartTime 2025-01-14 07:05:05 - End Time 2025-01-14 10:05:05 [2025-01-14 10:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245553', 'tblTempUsageDetail_20' ) start [2025-01-14 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245553', 'tblTempUsageDetail_20' ) end [2025-01-14 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245553', 'tblTempVendorCDR_20' ) start [2025-01-14 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245553', 'tblTempVendorCDR_20' ) end [2025-01-14 10:05:26] Production.INFO: ProcessCDR(1,14245553,1,1,2) [2025-01-14 10:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245553', 'tblTempUsageDetail_20' ) start [2025-01-14 10:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245553', 'tblTempUsageDetail_20' ) end [2025-01-14 10:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:05:30] Production.INFO: ==10968== Releasing lock... [2025-01-14 10:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:05:30] Production.INFO: 45 MB #Memory Used# [2025-01-14 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:06:05 [end_date_ymd] => 2025-01-14 10:06:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:06:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:06:22] Production.INFO: count ==2255 [2025-01-14 10:06:23] Production.ERROR: pbx CDR StartTime 2025-01-14 07:06:05 - End Time 2025-01-14 10:06:05 [2025-01-14 10:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245558', 'tblTempUsageDetail_20' ) start [2025-01-14 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245558', 'tblTempUsageDetail_20' ) end [2025-01-14 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245558', 'tblTempVendorCDR_20' ) start [2025-01-14 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245558', 'tblTempVendorCDR_20' ) end [2025-01-14 10:06:23] Production.INFO: ProcessCDR(1,14245558,1,1,2) [2025-01-14 10:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245558', 'tblTempUsageDetail_20' ) start [2025-01-14 10:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245558', 'tblTempUsageDetail_20' ) end [2025-01-14 10:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:06:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:06:28] Production.INFO: ==11058== Releasing lock... [2025-01-14 10:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:06:28] Production.INFO: 45 MB #Memory Used# [2025-01-14 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:07:04 [end_date_ymd] => 2025-01-14 10:07:04 [RateCDR] => 1 ) [2025-01-14 10: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` >= '2025-01-14 07:07:04' and `end` < '2025-01-14 10:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:07:22] Production.INFO: count ==2284 [2025-01-14 10:07:23] Production.ERROR: pbx CDR StartTime 2025-01-14 07:07:04 - End Time 2025-01-14 10:07:04 [2025-01-14 10:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245563', 'tblTempUsageDetail_20' ) start [2025-01-14 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245563', 'tblTempUsageDetail_20' ) end [2025-01-14 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245563', 'tblTempVendorCDR_20' ) start [2025-01-14 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245563', 'tblTempVendorCDR_20' ) end [2025-01-14 10:07:23] Production.INFO: ProcessCDR(1,14245563,1,1,2) [2025-01-14 10:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245563', 'tblTempUsageDetail_20' ) start [2025-01-14 10:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245563', 'tblTempUsageDetail_20' ) end [2025-01-14 10:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:07:28] Production.INFO: ==11137== Releasing lock... [2025-01-14 10:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:07:28] Production.INFO: 45.25 MB #Memory Used# [2025-01-14 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:08:05 [end_date_ymd] => 2025-01-14 10:08:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:08:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:08:21] Production.INFO: count ==2300 [2025-01-14 10:08:22] Production.ERROR: pbx CDR StartTime 2025-01-14 07:08:05 - End Time 2025-01-14 10:08:05 [2025-01-14 10:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245568', 'tblTempUsageDetail_20' ) start [2025-01-14 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245568', 'tblTempUsageDetail_20' ) end [2025-01-14 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245568', 'tblTempVendorCDR_20' ) start [2025-01-14 10:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245568', 'tblTempVendorCDR_20' ) end [2025-01-14 10:08:22] Production.INFO: ProcessCDR(1,14245568,1,1,2) [2025-01-14 10:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245568', 'tblTempUsageDetail_20' ) start [2025-01-14 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245568', 'tblTempUsageDetail_20' ) end [2025-01-14 10:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:08:26] Production.INFO: ==11220== Releasing lock... [2025-01-14 10:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:08:26] Production.INFO: 45.25 MB #Memory Used# [2025-01-14 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:09:05 [end_date_ymd] => 2025-01-14 10:09:05 [RateCDR] => 1 ) [2025-01-14 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:09:05' and `end` < '2025-01-14 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:09:20] Production.INFO: count ==2323 [2025-01-14 10:09:21] Production.ERROR: pbx CDR StartTime 2025-01-14 07:09:05 - End Time 2025-01-14 10:09:05 [2025-01-14 10:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245573', 'tblTempUsageDetail_20' ) start [2025-01-14 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245573', 'tblTempUsageDetail_20' ) end [2025-01-14 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245573', 'tblTempVendorCDR_20' ) start [2025-01-14 10:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245573', 'tblTempVendorCDR_20' ) end [2025-01-14 10:09:21] Production.INFO: ProcessCDR(1,14245573,1,1,2) [2025-01-14 10:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245573', 'tblTempUsageDetail_20' ) start [2025-01-14 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245573', 'tblTempUsageDetail_20' ) end [2025-01-14 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:09:25] Production.INFO: ==11300== Releasing lock... [2025-01-14 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:09:25] Production.INFO: 45.5 MB #Memory Used# [2025-01-14 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:10:05 [end_date_ymd] => 2025-01-14 10:10:05 [RateCDR] => 1 ) [2025-01-14 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:10:05' and `end` < '2025-01-14 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:10:18] Production.INFO: count ==2334 [2025-01-14 10:10:19] Production.ERROR: pbx CDR StartTime 2025-01-14 07:10:05 - End Time 2025-01-14 10:10:05 [2025-01-14 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245579', 'tblTempUsageDetail_20' ) start [2025-01-14 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245579', 'tblTempUsageDetail_20' ) end [2025-01-14 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245579', 'tblTempVendorCDR_20' ) start [2025-01-14 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245579', 'tblTempVendorCDR_20' ) end [2025-01-14 10:10:19] Production.INFO: ProcessCDR(1,14245579,1,1,2) [2025-01-14 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245579', 'tblTempUsageDetail_20' ) start [2025-01-14 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245579', 'tblTempUsageDetail_20' ) end [2025-01-14 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:10:24] Production.INFO: ==11382== Releasing lock... [2025-01-14 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:10:24] Production.INFO: 45.5 MB #Memory Used# [2025-01-14 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:11:05 [end_date_ymd] => 2025-01-14 10:11:05 [RateCDR] => 1 ) [2025-01-14 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:11:05' and `end` < '2025-01-14 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:11:25] Production.INFO: count ==2412 [2025-01-14 10:11:25] Production.ERROR: pbx CDR StartTime 2025-01-14 07:11:05 - End Time 2025-01-14 10:11:05 [2025-01-14 10:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245584', 'tblTempUsageDetail_20' ) start [2025-01-14 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245584', 'tblTempUsageDetail_20' ) end [2025-01-14 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245584', 'tblTempVendorCDR_20' ) start [2025-01-14 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245584', 'tblTempVendorCDR_20' ) end [2025-01-14 10:11:25] Production.INFO: ProcessCDR(1,14245584,1,1,2) [2025-01-14 10:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245584', 'tblTempUsageDetail_20' ) start [2025-01-14 10:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245584', 'tblTempUsageDetail_20' ) end [2025-01-14 10:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:11:30] Production.INFO: ==11463== Releasing lock... [2025-01-14 10:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:11:30] Production.INFO: 46.25 MB #Memory Used# [2025-01-14 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:12:05 [end_date_ymd] => 2025-01-14 10:12:05 [RateCDR] => 1 ) [2025-01-14 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:12:05' and `end` < '2025-01-14 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:12:36] Production.INFO: count ==2455 [2025-01-14 10:12:37] Production.ERROR: pbx CDR StartTime 2025-01-14 07:12:05 - End Time 2025-01-14 10:12:05 [2025-01-14 10:12:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245589', 'tblTempUsageDetail_20' ) start [2025-01-14 10:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245589', 'tblTempUsageDetail_20' ) end [2025-01-14 10:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245589', 'tblTempVendorCDR_20' ) start [2025-01-14 10:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245589', 'tblTempVendorCDR_20' ) end [2025-01-14 10:12:37] Production.INFO: ProcessCDR(1,14245589,1,1,2) [2025-01-14 10:12:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:12:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:12:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:12:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:12:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245589', 'tblTempUsageDetail_20' ) start [2025-01-14 10:12:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245589', 'tblTempUsageDetail_20' ) end [2025-01-14 10:12:42] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:12:42] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:12:42] Production.INFO: ==11544== Releasing lock... [2025-01-14 10:12:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:12:42] Production.INFO: 46.5 MB #Memory Used# [2025-01-14 10:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:13:04 [end_date_ymd] => 2025-01-14 10:13:04 [RateCDR] => 1 ) [2025-01-14 10: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` >= '2025-01-14 07:13:04' and `end` < '2025-01-14 10: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 ,'') [2025-01-14 10:13:24] Production.INFO: count ==2479 [2025-01-14 10:13:25] Production.ERROR: pbx CDR StartTime 2025-01-14 07:13:04 - End Time 2025-01-14 10:13:04 [2025-01-14 10:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245594', 'tblTempUsageDetail_20' ) start [2025-01-14 10:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245594', 'tblTempUsageDetail_20' ) end [2025-01-14 10:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245594', 'tblTempVendorCDR_20' ) start [2025-01-14 10:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245594', 'tblTempVendorCDR_20' ) end [2025-01-14 10:13:25] Production.INFO: ProcessCDR(1,14245594,1,1,2) [2025-01-14 10:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245594', 'tblTempUsageDetail_20' ) start [2025-01-14 10:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245594', 'tblTempUsageDetail_20' ) end [2025-01-14 10:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:13:30] Production.INFO: ==11615== Releasing lock... [2025-01-14 10:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:13:30] Production.INFO: 46.75 MB #Memory Used# [2025-01-14 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:14:05 [end_date_ymd] => 2025-01-14 10:14:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:14:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:14:22] Production.INFO: count ==2491 [2025-01-14 10:14:23] Production.ERROR: pbx CDR StartTime 2025-01-14 07:14:05 - End Time 2025-01-14 10:14:05 [2025-01-14 10:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245599', 'tblTempUsageDetail_20' ) start [2025-01-14 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245599', 'tblTempUsageDetail_20' ) end [2025-01-14 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245599', 'tblTempVendorCDR_20' ) start [2025-01-14 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245599', 'tblTempVendorCDR_20' ) end [2025-01-14 10:14:23] Production.INFO: ProcessCDR(1,14245599,1,1,2) [2025-01-14 10:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245599', 'tblTempUsageDetail_20' ) start [2025-01-14 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245599', 'tblTempUsageDetail_20' ) end [2025-01-14 10:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:14:28] Production.INFO: ==11691== Releasing lock... [2025-01-14 10:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:14:28] Production.INFO: 46.75 MB #Memory Used# [2025-01-14 10:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:15:04 [end_date_ymd] => 2025-01-14 10:15:04 [RateCDR] => 1 ) [2025-01-14 10:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:15:04' and `end` < '2025-01-14 10:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:15:22] Production.INFO: count ==2500 [2025-01-14 10:15:23] Production.ERROR: pbx CDR StartTime 2025-01-14 07:15:04 - End Time 2025-01-14 10:15:04 [2025-01-14 10:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245604', 'tblTempUsageDetail_20' ) start [2025-01-14 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245604', 'tblTempUsageDetail_20' ) end [2025-01-14 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245604', 'tblTempVendorCDR_20' ) start [2025-01-14 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245604', 'tblTempVendorCDR_20' ) end [2025-01-14 10:15:23] Production.INFO: ProcessCDR(1,14245604,1,1,2) [2025-01-14 10:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245604', 'tblTempUsageDetail_20' ) start [2025-01-14 10:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245604', 'tblTempUsageDetail_20' ) end [2025-01-14 10:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:15:28] Production.INFO: ==11766== Releasing lock... [2025-01-14 10:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:15:28] Production.INFO: 46.75 MB #Memory Used# [2025-01-14 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:16:05 [end_date_ymd] => 2025-01-14 10:16:05 [RateCDR] => 1 ) [2025-01-14 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:16:05' and `end` < '2025-01-14 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:16:25] Production.INFO: count ==2509 [2025-01-14 10:16:25] Production.ERROR: pbx CDR StartTime 2025-01-14 07:16:05 - End Time 2025-01-14 10:16:05 [2025-01-14 10:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245609', 'tblTempUsageDetail_20' ) start [2025-01-14 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245609', 'tblTempUsageDetail_20' ) end [2025-01-14 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245609', 'tblTempVendorCDR_20' ) start [2025-01-14 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245609', 'tblTempVendorCDR_20' ) end [2025-01-14 10:16:25] Production.INFO: ProcessCDR(1,14245609,1,1,2) [2025-01-14 10:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245609', 'tblTempUsageDetail_20' ) start [2025-01-14 10:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245609', 'tblTempUsageDetail_20' ) end [2025-01-14 10:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:16:30] Production.INFO: ==11840== Releasing lock... [2025-01-14 10:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:16:30] Production.INFO: 47 MB #Memory Used# [2025-01-14 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:17:05 [end_date_ymd] => 2025-01-14 10:17:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:17:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:17:24] Production.INFO: count ==2519 [2025-01-14 10:17:25] Production.ERROR: pbx CDR StartTime 2025-01-14 07:17:05 - End Time 2025-01-14 10:17:05 [2025-01-14 10:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245614', 'tblTempUsageDetail_20' ) start [2025-01-14 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245614', 'tblTempUsageDetail_20' ) end [2025-01-14 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245614', 'tblTempVendorCDR_20' ) start [2025-01-14 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245614', 'tblTempVendorCDR_20' ) end [2025-01-14 10:17:25] Production.INFO: ProcessCDR(1,14245614,1,1,2) [2025-01-14 10:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245614', 'tblTempUsageDetail_20' ) start [2025-01-14 10:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245614', 'tblTempUsageDetail_20' ) end [2025-01-14 10:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:17:30] Production.INFO: ==11910== Releasing lock... [2025-01-14 10:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:17:30] Production.INFO: 47 MB #Memory Used# [2025-01-14 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:18:05 [end_date_ymd] => 2025-01-14 10:18:05 [RateCDR] => 1 ) [2025-01-14 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:18:05' and `end` < '2025-01-14 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:18:25] Production.INFO: count ==2529 [2025-01-14 10:18:26] Production.ERROR: pbx CDR StartTime 2025-01-14 07:18:05 - End Time 2025-01-14 10:18:05 [2025-01-14 10:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245619', 'tblTempUsageDetail_20' ) start [2025-01-14 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245619', 'tblTempUsageDetail_20' ) end [2025-01-14 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245619', 'tblTempVendorCDR_20' ) start [2025-01-14 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245619', 'tblTempVendorCDR_20' ) end [2025-01-14 10:18:26] Production.INFO: ProcessCDR(1,14245619,1,1,2) [2025-01-14 10:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245619', 'tblTempUsageDetail_20' ) start [2025-01-14 10:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245619', 'tblTempUsageDetail_20' ) end [2025-01-14 10:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:18:31] Production.INFO: ==12022== Releasing lock... [2025-01-14 10:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:18:31] Production.INFO: 47 MB #Memory Used# [2025-01-14 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:19:05 [end_date_ymd] => 2025-01-14 10:19:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:19:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:19:23] Production.INFO: count ==2557 [2025-01-14 10:19:24] Production.ERROR: pbx CDR StartTime 2025-01-14 07:19:05 - End Time 2025-01-14 10:19:05 [2025-01-14 10:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245624', 'tblTempUsageDetail_20' ) start [2025-01-14 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245624', 'tblTempUsageDetail_20' ) end [2025-01-14 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245624', 'tblTempVendorCDR_20' ) start [2025-01-14 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245624', 'tblTempVendorCDR_20' ) end [2025-01-14 10:19:24] Production.INFO: ProcessCDR(1,14245624,1,1,2) [2025-01-14 10:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245624', 'tblTempUsageDetail_20' ) start [2025-01-14 10:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245624', 'tblTempUsageDetail_20' ) end [2025-01-14 10:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:19:28] Production.INFO: ==12096== Releasing lock... [2025-01-14 10:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:19:28] Production.INFO: 47.25 MB #Memory Used# [2025-01-14 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:20:05 [end_date_ymd] => 2025-01-14 10:20:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:20:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:20:23] Production.INFO: count ==2568 [2025-01-14 10:20:24] Production.ERROR: pbx CDR StartTime 2025-01-14 07:20:05 - End Time 2025-01-14 10:20:05 [2025-01-14 10:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245630', 'tblTempUsageDetail_20' ) start [2025-01-14 10:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245630', 'tblTempUsageDetail_20' ) end [2025-01-14 10:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245630', 'tblTempVendorCDR_20' ) start [2025-01-14 10:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245630', 'tblTempVendorCDR_20' ) end [2025-01-14 10:20:24] Production.INFO: ProcessCDR(1,14245630,1,1,2) [2025-01-14 10:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245630', 'tblTempUsageDetail_20' ) start [2025-01-14 10:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245630', 'tblTempUsageDetail_20' ) end [2025-01-14 10:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:20:29] Production.INFO: ==12173== Releasing lock... [2025-01-14 10:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:20:29] Production.INFO: 47.25 MB #Memory Used# [2025-01-14 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:21:05 [end_date_ymd] => 2025-01-14 10:21:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:21:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:21:22] Production.INFO: count ==2651 [2025-01-14 10:21:23] Production.ERROR: pbx CDR StartTime 2025-01-14 07:21:05 - End Time 2025-01-14 10:21:05 [2025-01-14 10:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245635', 'tblTempUsageDetail_20' ) start [2025-01-14 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245635', 'tblTempUsageDetail_20' ) end [2025-01-14 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245635', 'tblTempVendorCDR_20' ) start [2025-01-14 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245635', 'tblTempVendorCDR_20' ) end [2025-01-14 10:21:23] Production.INFO: ProcessCDR(1,14245635,1,1,2) [2025-01-14 10:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245635', 'tblTempUsageDetail_20' ) start [2025-01-14 10:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245635', 'tblTempUsageDetail_20' ) end [2025-01-14 10:21:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:21:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:21:28] Production.INFO: ==12247== Releasing lock... [2025-01-14 10:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:21:28] Production.INFO: 48 MB #Memory Used# [2025-01-14 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:22:05 [end_date_ymd] => 2025-01-14 10:22:05 [RateCDR] => 1 ) [2025-01-14 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:22:05' and `end` < '2025-01-14 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:22:20] Production.INFO: count ==2653 [2025-01-14 10:22:21] Production.ERROR: pbx CDR StartTime 2025-01-14 07:22:05 - End Time 2025-01-14 10:22:05 [2025-01-14 10:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245640', 'tblTempUsageDetail_20' ) start [2025-01-14 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245640', 'tblTempUsageDetail_20' ) end [2025-01-14 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245640', 'tblTempVendorCDR_20' ) start [2025-01-14 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245640', 'tblTempVendorCDR_20' ) end [2025-01-14 10:22:21] Production.INFO: ProcessCDR(1,14245640,1,1,2) [2025-01-14 10:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245640', 'tblTempUsageDetail_20' ) start [2025-01-14 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245640', 'tblTempUsageDetail_20' ) end [2025-01-14 10:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:22:26] Production.INFO: ==12318== Releasing lock... [2025-01-14 10:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:22:26] Production.INFO: 48 MB #Memory Used# [2025-01-14 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:23:04 [end_date_ymd] => 2025-01-14 10:23:04 [RateCDR] => 1 ) [2025-01-14 10:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:23:04' and `end` < '2025-01-14 10:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:23:20] Production.INFO: count ==2680 [2025-01-14 10:23:21] Production.ERROR: pbx CDR StartTime 2025-01-14 07:23:04 - End Time 2025-01-14 10:23:04 [2025-01-14 10:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245645', 'tblTempUsageDetail_20' ) start [2025-01-14 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245645', 'tblTempUsageDetail_20' ) end [2025-01-14 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245645', 'tblTempVendorCDR_20' ) start [2025-01-14 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245645', 'tblTempVendorCDR_20' ) end [2025-01-14 10:23:21] Production.INFO: ProcessCDR(1,14245645,1,1,2) [2025-01-14 10:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245645', 'tblTempUsageDetail_20' ) start [2025-01-14 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245645', 'tblTempUsageDetail_20' ) end [2025-01-14 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:23:25] Production.INFO: ==12389== Releasing lock... [2025-01-14 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:23:25] Production.INFO: 48.25 MB #Memory Used# [2025-01-14 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:24:05 [end_date_ymd] => 2025-01-14 10:24:05 [RateCDR] => 1 ) [2025-01-14 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:24:05' and `end` < '2025-01-14 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:24:22] Production.INFO: count ==2694 [2025-01-14 10:24:23] Production.ERROR: pbx CDR StartTime 2025-01-14 07:24:05 - End Time 2025-01-14 10:24:05 [2025-01-14 10:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245650', 'tblTempUsageDetail_20' ) start [2025-01-14 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245650', 'tblTempUsageDetail_20' ) end [2025-01-14 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245650', 'tblTempVendorCDR_20' ) start [2025-01-14 10:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245650', 'tblTempVendorCDR_20' ) end [2025-01-14 10:24:23] Production.INFO: ProcessCDR(1,14245650,1,1,2) [2025-01-14 10:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245650', 'tblTempUsageDetail_20' ) start [2025-01-14 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245650', 'tblTempUsageDetail_20' ) end [2025-01-14 10:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:24:27] Production.INFO: ==12461== Releasing lock... [2025-01-14 10:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:24:27] Production.INFO: 48.25 MB #Memory Used# [2025-01-14 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:25:04 [end_date_ymd] => 2025-01-14 10:25:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:25:04' and `end` < '2025-01-14 10:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:25:18] Production.INFO: count ==2716 [2025-01-14 10:25:19] Production.ERROR: pbx CDR StartTime 2025-01-14 07:25:04 - End Time 2025-01-14 10:25:04 [2025-01-14 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245655', 'tblTempUsageDetail_20' ) start [2025-01-14 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245655', 'tblTempUsageDetail_20' ) end [2025-01-14 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245655', 'tblTempVendorCDR_20' ) start [2025-01-14 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245655', 'tblTempVendorCDR_20' ) end [2025-01-14 10:25:20] Production.INFO: ProcessCDR(1,14245655,1,1,2) [2025-01-14 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245655', 'tblTempUsageDetail_20' ) start [2025-01-14 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245655', 'tblTempUsageDetail_20' ) end [2025-01-14 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:25:24] Production.INFO: ==12533== Releasing lock... [2025-01-14 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:25:24] Production.INFO: 48.5 MB #Memory Used# [2025-01-14 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:26:05 [end_date_ymd] => 2025-01-14 10:26:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:26:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:26:18] Production.INFO: count ==2726 [2025-01-14 10:26:20] Production.ERROR: pbx CDR StartTime 2025-01-14 07:26:05 - End Time 2025-01-14 10:26:05 [2025-01-14 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245660', 'tblTempUsageDetail_20' ) start [2025-01-14 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245660', 'tblTempUsageDetail_20' ) end [2025-01-14 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245660', 'tblTempVendorCDR_20' ) start [2025-01-14 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245660', 'tblTempVendorCDR_20' ) end [2025-01-14 10:26:20] Production.INFO: ProcessCDR(1,14245660,1,1,2) [2025-01-14 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245660', 'tblTempUsageDetail_20' ) start [2025-01-14 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245660', 'tblTempUsageDetail_20' ) end [2025-01-14 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:26:24] Production.INFO: ==12606== Releasing lock... [2025-01-14 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:26:24] Production.INFO: 48.5 MB #Memory Used# [2025-01-14 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:27:04 [end_date_ymd] => 2025-01-14 10:27:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:27:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:27:21] Production.INFO: count ==2759 [2025-01-14 10:27:22] Production.ERROR: pbx CDR StartTime 2025-01-14 07:27:04 - End Time 2025-01-14 10:27:04 [2025-01-14 10:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245665', 'tblTempUsageDetail_20' ) start [2025-01-14 10:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245665', 'tblTempUsageDetail_20' ) end [2025-01-14 10:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245665', 'tblTempVendorCDR_20' ) start [2025-01-14 10:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245665', 'tblTempVendorCDR_20' ) end [2025-01-14 10:27:22] Production.INFO: ProcessCDR(1,14245665,1,1,2) [2025-01-14 10:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245665', 'tblTempUsageDetail_20' ) start [2025-01-14 10:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245665', 'tblTempUsageDetail_20' ) end [2025-01-14 10:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:27:27] Production.INFO: ==12678== Releasing lock... [2025-01-14 10:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:27:27] Production.INFO: 48.75 MB #Memory Used# [2025-01-14 10:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:28:04 [end_date_ymd] => 2025-01-14 10:28:04 [RateCDR] => 1 ) [2025-01-14 10: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` >= '2025-01-14 07:28:04' and `end` < '2025-01-14 10: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 ,'') [2025-01-14 10:28:20] Production.INFO: count ==2758 [2025-01-14 10:28:21] Production.ERROR: pbx CDR StartTime 2025-01-14 07:28:04 - End Time 2025-01-14 10:28:04 [2025-01-14 10:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245670', 'tblTempUsageDetail_20' ) start [2025-01-14 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245670', 'tblTempUsageDetail_20' ) end [2025-01-14 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245670', 'tblTempVendorCDR_20' ) start [2025-01-14 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245670', 'tblTempVendorCDR_20' ) end [2025-01-14 10:28:21] Production.INFO: ProcessCDR(1,14245670,1,1,2) [2025-01-14 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245670', 'tblTempUsageDetail_20' ) start [2025-01-14 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245670', 'tblTempUsageDetail_20' ) end [2025-01-14 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:28:26] Production.INFO: ==12753== Releasing lock... [2025-01-14 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:28:26] Production.INFO: 48.75 MB #Memory Used# [2025-01-14 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:29:05 [end_date_ymd] => 2025-01-14 10:29:05 [RateCDR] => 1 ) [2025-01-14 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:29:05' and `end` < '2025-01-14 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:29:22] Production.INFO: count ==2770 [2025-01-14 10:29:23] Production.ERROR: pbx CDR StartTime 2025-01-14 07:29:05 - End Time 2025-01-14 10:29:05 [2025-01-14 10:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245675', 'tblTempUsageDetail_20' ) start [2025-01-14 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245675', 'tblTempUsageDetail_20' ) end [2025-01-14 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245675', 'tblTempVendorCDR_20' ) start [2025-01-14 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245675', 'tblTempVendorCDR_20' ) end [2025-01-14 10:29:23] Production.INFO: ProcessCDR(1,14245675,1,1,2) [2025-01-14 10:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245675', 'tblTempUsageDetail_20' ) start [2025-01-14 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245675', 'tblTempUsageDetail_20' ) end [2025-01-14 10:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:29:28] Production.INFO: ==12830== Releasing lock... [2025-01-14 10:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:29:28] Production.INFO: 48.75 MB #Memory Used# [2025-01-14 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:30:05 [end_date_ymd] => 2025-01-14 10:30:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:30:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:30:24] Production.INFO: count ==2795 [2025-01-14 10:30:25] Production.ERROR: pbx CDR StartTime 2025-01-14 07:30:05 - End Time 2025-01-14 10:30:05 [2025-01-14 10:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245680', 'tblTempUsageDetail_20' ) start [2025-01-14 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245680', 'tblTempUsageDetail_20' ) end [2025-01-14 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245680', 'tblTempVendorCDR_20' ) start [2025-01-14 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245680', 'tblTempVendorCDR_20' ) end [2025-01-14 10:30:25] Production.INFO: ProcessCDR(1,14245680,1,1,2) [2025-01-14 10:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245680', 'tblTempUsageDetail_20' ) start [2025-01-14 10:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245680', 'tblTempUsageDetail_20' ) end [2025-01-14 10:30:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:30:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:30:30] Production.INFO: ==12901== Releasing lock... [2025-01-14 10:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:30:30] Production.INFO: 49 MB #Memory Used# [2025-01-14 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:31:05 [end_date_ymd] => 2025-01-14 10:31:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:31:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:31:20] Production.INFO: count ==2922 [2025-01-14 10:31:21] Production.ERROR: pbx CDR StartTime 2025-01-14 07:31:05 - End Time 2025-01-14 10:31:05 [2025-01-14 10:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245686', 'tblTempUsageDetail_20' ) start [2025-01-14 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245686', 'tblTempUsageDetail_20' ) end [2025-01-14 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245686', 'tblTempVendorCDR_20' ) start [2025-01-14 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245686', 'tblTempVendorCDR_20' ) end [2025-01-14 10:31:21] Production.INFO: ProcessCDR(1,14245686,1,1,2) [2025-01-14 10:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245686', 'tblTempUsageDetail_20' ) start [2025-01-14 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245686', 'tblTempUsageDetail_20' ) end [2025-01-14 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:31:25] Production.INFO: ==12977== Releasing lock... [2025-01-14 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:31:25] Production.INFO: 50.5 MB #Memory Used# [2025-01-14 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:32:05 [end_date_ymd] => 2025-01-14 10:32:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:32:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:32:18] Production.INFO: count ==2929 [2025-01-14 10:32:20] Production.ERROR: pbx CDR StartTime 2025-01-14 07:32:05 - End Time 2025-01-14 10:32:05 [2025-01-14 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245691', 'tblTempUsageDetail_20' ) start [2025-01-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245691', 'tblTempUsageDetail_20' ) end [2025-01-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245691', 'tblTempVendorCDR_20' ) start [2025-01-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245691', 'tblTempVendorCDR_20' ) end [2025-01-14 10:32:20] Production.INFO: ProcessCDR(1,14245691,1,1,2) [2025-01-14 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245691', 'tblTempUsageDetail_20' ) start [2025-01-14 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245691', 'tblTempUsageDetail_20' ) end [2025-01-14 10:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:32:24] Production.INFO: ==13051== Releasing lock... [2025-01-14 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:32:24] Production.INFO: 50.5 MB #Memory Used# [2025-01-14 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:33:05 [end_date_ymd] => 2025-01-14 10:33:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:33:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:33:26] Production.INFO: count ==2957 [2025-01-14 10:33:27] Production.ERROR: pbx CDR StartTime 2025-01-14 07:33:05 - End Time 2025-01-14 10:33:05 [2025-01-14 10:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245696', 'tblTempUsageDetail_20' ) start [2025-01-14 10:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245696', 'tblTempUsageDetail_20' ) end [2025-01-14 10:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245696', 'tblTempVendorCDR_20' ) start [2025-01-14 10:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245696', 'tblTempVendorCDR_20' ) end [2025-01-14 10:33:28] Production.INFO: ProcessCDR(1,14245696,1,1,2) [2025-01-14 10:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245696', 'tblTempUsageDetail_20' ) start [2025-01-14 10:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245696', 'tblTempUsageDetail_20' ) end [2025-01-14 10:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:33:32] Production.INFO: ==13123== Releasing lock... [2025-01-14 10:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:33:32] Production.INFO: 50.25 MB #Memory Used# [2025-01-14 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:34:05 [end_date_ymd] => 2025-01-14 10:34:05 [RateCDR] => 1 ) [2025-01-14 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:34:05' and `end` < '2025-01-14 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:34:23] Production.INFO: count ==2967 [2025-01-14 10:34:24] Production.ERROR: pbx CDR StartTime 2025-01-14 07:34:05 - End Time 2025-01-14 10:34:05 [2025-01-14 10:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245701', 'tblTempUsageDetail_20' ) start [2025-01-14 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245701', 'tblTempUsageDetail_20' ) end [2025-01-14 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245701', 'tblTempVendorCDR_20' ) start [2025-01-14 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245701', 'tblTempVendorCDR_20' ) end [2025-01-14 10:34:24] Production.INFO: ProcessCDR(1,14245701,1,1,2) [2025-01-14 10:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245701', 'tblTempUsageDetail_20' ) start [2025-01-14 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245701', 'tblTempUsageDetail_20' ) end [2025-01-14 10:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:34:29] Production.INFO: ==13235== Releasing lock... [2025-01-14 10:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:34:29] Production.INFO: 50.75 MB #Memory Used# [2025-01-14 10:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:35:04 [end_date_ymd] => 2025-01-14 10:35:04 [RateCDR] => 1 ) [2025-01-14 10:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:35:04' and `end` < '2025-01-14 10:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:35:19] Production.INFO: count ==2982 [2025-01-14 10:35:20] Production.ERROR: pbx CDR StartTime 2025-01-14 07:35:04 - End Time 2025-01-14 10:35:04 [2025-01-14 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245704', 'tblTempUsageDetail_20' ) start [2025-01-14 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245704', 'tblTempUsageDetail_20' ) end [2025-01-14 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245704', 'tblTempVendorCDR_20' ) start [2025-01-14 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245704', 'tblTempVendorCDR_20' ) end [2025-01-14 10:35:20] Production.INFO: ProcessCDR(1,14245704,1,1,2) [2025-01-14 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245704', 'tblTempUsageDetail_20' ) start [2025-01-14 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245704', 'tblTempUsageDetail_20' ) end [2025-01-14 10:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:35:24] Production.INFO: ==13306== Releasing lock... [2025-01-14 10:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:35:24] Production.INFO: 51 MB #Memory Used# [2025-01-14 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:36:05 [end_date_ymd] => 2025-01-14 10:36:05 [RateCDR] => 1 ) [2025-01-14 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:36:05' and `end` < '2025-01-14 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:36:24] Production.INFO: count ==3004 [2025-01-14 10:36:25] Production.ERROR: pbx CDR StartTime 2025-01-14 07:36:05 - End Time 2025-01-14 10:36:05 [2025-01-14 10:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245711', 'tblTempUsageDetail_20' ) start [2025-01-14 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245711', 'tblTempUsageDetail_20' ) end [2025-01-14 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245711', 'tblTempVendorCDR_20' ) start [2025-01-14 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245711', 'tblTempVendorCDR_20' ) end [2025-01-14 10:36:26] Production.INFO: ProcessCDR(1,14245711,1,1,2) [2025-01-14 10:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245711', 'tblTempUsageDetail_20' ) start [2025-01-14 10:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245711', 'tblTempUsageDetail_20' ) end [2025-01-14 10:36:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:36:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:36:30] Production.INFO: ==13379== Releasing lock... [2025-01-14 10:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:36:30] Production.INFO: 50.5 MB #Memory Used# [2025-01-14 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:37:05 [end_date_ymd] => 2025-01-14 10:37:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:37:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:37:22] Production.INFO: count ==3020 [2025-01-14 10:37:24] Production.ERROR: pbx CDR StartTime 2025-01-14 07:37:05 - End Time 2025-01-14 10:37:05 [2025-01-14 10:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245716', 'tblTempUsageDetail_20' ) start [2025-01-14 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245716', 'tblTempUsageDetail_20' ) end [2025-01-14 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245716', 'tblTempVendorCDR_20' ) start [2025-01-14 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245716', 'tblTempVendorCDR_20' ) end [2025-01-14 10:37:24] Production.INFO: ProcessCDR(1,14245716,1,1,2) [2025-01-14 10:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245716', 'tblTempUsageDetail_20' ) start [2025-01-14 10:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245716', 'tblTempUsageDetail_20' ) end [2025-01-14 10:37:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:37:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:37:28] Production.INFO: ==13451== Releasing lock... [2025-01-14 10:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:37:28] Production.INFO: 51 MB #Memory Used# [2025-01-14 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:38:05 [end_date_ymd] => 2025-01-14 10:38:05 [RateCDR] => 1 ) [2025-01-14 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:38:05' and `end` < '2025-01-14 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:38:22] Production.INFO: count ==3042 [2025-01-14 10:38:23] Production.ERROR: pbx CDR StartTime 2025-01-14 07:38:05 - End Time 2025-01-14 10:38:05 [2025-01-14 10:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245721', 'tblTempUsageDetail_20' ) start [2025-01-14 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245721', 'tblTempUsageDetail_20' ) end [2025-01-14 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245721', 'tblTempVendorCDR_20' ) start [2025-01-14 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245721', 'tblTempVendorCDR_20' ) end [2025-01-14 10:38:23] Production.INFO: ProcessCDR(1,14245721,1,1,2) [2025-01-14 10:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245721', 'tblTempUsageDetail_20' ) start [2025-01-14 10:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245721', 'tblTempUsageDetail_20' ) end [2025-01-14 10:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:38:27] Production.INFO: ==13524== Releasing lock... [2025-01-14 10:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:38:27] Production.INFO: 51.75 MB #Memory Used# [2025-01-14 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:39:05 [end_date_ymd] => 2025-01-14 10:39:05 [RateCDR] => 1 ) [2025-01-14 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:39:05' and `end` < '2025-01-14 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:39:24] Production.INFO: count ==3075 [2025-01-14 10:39:25] Production.ERROR: pbx CDR StartTime 2025-01-14 07:39:05 - End Time 2025-01-14 10:39:05 [2025-01-14 10:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245726', 'tblTempUsageDetail_20' ) start [2025-01-14 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245726', 'tblTempUsageDetail_20' ) end [2025-01-14 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245726', 'tblTempVendorCDR_20' ) start [2025-01-14 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245726', 'tblTempVendorCDR_20' ) end [2025-01-14 10:39:26] Production.INFO: ProcessCDR(1,14245726,1,1,2) [2025-01-14 10:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245726', 'tblTempUsageDetail_20' ) start [2025-01-14 10:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245726', 'tblTempUsageDetail_20' ) end [2025-01-14 10:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:39:30] Production.INFO: ==13598== Releasing lock... [2025-01-14 10:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:39:30] Production.INFO: 51.5 MB #Memory Used# [2025-01-14 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:40:05 [end_date_ymd] => 2025-01-14 10:40:05 [RateCDR] => 1 ) [2025-01-14 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:40:05' and `end` < '2025-01-14 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:40:26] Production.INFO: count ==3080 [2025-01-14 10:40:27] Production.ERROR: pbx CDR StartTime 2025-01-14 07:40:05 - End Time 2025-01-14 10:40:05 [2025-01-14 10:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245732', 'tblTempUsageDetail_20' ) start [2025-01-14 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245732', 'tblTempUsageDetail_20' ) end [2025-01-14 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245732', 'tblTempVendorCDR_20' ) start [2025-01-14 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245732', 'tblTempVendorCDR_20' ) end [2025-01-14 10:40:27] Production.INFO: ProcessCDR(1,14245732,1,1,2) [2025-01-14 10:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245732', 'tblTempUsageDetail_20' ) start [2025-01-14 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245732', 'tblTempUsageDetail_20' ) end [2025-01-14 10:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:40:32] Production.INFO: ==13672== Releasing lock... [2025-01-14 10:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:40:32] Production.INFO: 51.25 MB #Memory Used# [2025-01-14 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:41:05 [end_date_ymd] => 2025-01-14 10:41:05 [RateCDR] => 1 ) [2025-01-14 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:41:05' and `end` < '2025-01-14 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:41:23] Production.INFO: count ==3187 [2025-01-14 10:41:24] Production.ERROR: pbx CDR StartTime 2025-01-14 07:41:05 - End Time 2025-01-14 10:41:05 [2025-01-14 10:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245737', 'tblTempUsageDetail_20' ) start [2025-01-14 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245737', 'tblTempUsageDetail_20' ) end [2025-01-14 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245737', 'tblTempVendorCDR_20' ) start [2025-01-14 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245737', 'tblTempVendorCDR_20' ) end [2025-01-14 10:41:24] Production.INFO: ProcessCDR(1,14245737,1,1,2) [2025-01-14 10:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245737', 'tblTempUsageDetail_20' ) start [2025-01-14 10:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245737', 'tblTempUsageDetail_20' ) end [2025-01-14 10:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:41:28] Production.INFO: ==13747== Releasing lock... [2025-01-14 10:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:41:28] Production.INFO: 53 MB #Memory Used# [2025-01-14 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:42:04 [end_date_ymd] => 2025-01-14 10:42:04 [RateCDR] => 1 ) [2025-01-14 10:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:42:04' and `end` < '2025-01-14 10:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:42:17] Production.INFO: count ==3203 [2025-01-14 10:42:19] Production.ERROR: pbx CDR StartTime 2025-01-14 07:42:04 - End Time 2025-01-14 10:42:04 [2025-01-14 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245742', 'tblTempUsageDetail_20' ) start [2025-01-14 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245742', 'tblTempUsageDetail_20' ) end [2025-01-14 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245742', 'tblTempVendorCDR_20' ) start [2025-01-14 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245742', 'tblTempVendorCDR_20' ) end [2025-01-14 10:42:19] Production.INFO: ProcessCDR(1,14245742,1,1,2) [2025-01-14 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245742', 'tblTempUsageDetail_20' ) start [2025-01-14 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245742', 'tblTempUsageDetail_20' ) end [2025-01-14 10:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:42:23] Production.INFO: ==13821== Releasing lock... [2025-01-14 10:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:42:23] Production.INFO: 52 MB #Memory Used# [2025-01-14 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:43:05 [end_date_ymd] => 2025-01-14 10:43:05 [RateCDR] => 1 ) [2025-01-14 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:43:05' and `end` < '2025-01-14 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:43:24] Production.INFO: count ==3208 [2025-01-14 10:43:25] Production.ERROR: pbx CDR StartTime 2025-01-14 07:43:05 - End Time 2025-01-14 10:43:05 [2025-01-14 10:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245747', 'tblTempUsageDetail_20' ) start [2025-01-14 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245747', 'tblTempUsageDetail_20' ) end [2025-01-14 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245747', 'tblTempVendorCDR_20' ) start [2025-01-14 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245747', 'tblTempVendorCDR_20' ) end [2025-01-14 10:43:25] Production.INFO: ProcessCDR(1,14245747,1,1,2) [2025-01-14 10:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245747', 'tblTempUsageDetail_20' ) start [2025-01-14 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245747', 'tblTempUsageDetail_20' ) end [2025-01-14 10:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:43:30] Production.INFO: ==13896== Releasing lock... [2025-01-14 10:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:43:30] Production.INFO: 52.5 MB #Memory Used# [2025-01-14 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:44:04 [end_date_ymd] => 2025-01-14 10:44:04 [RateCDR] => 1 ) [2025-01-14 10:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:44:04' and `end` < '2025-01-14 10:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:44:20] Production.INFO: count ==3209 [2025-01-14 10:44:21] Production.ERROR: pbx CDR StartTime 2025-01-14 07:44:04 - End Time 2025-01-14 10:44:04 [2025-01-14 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245752', 'tblTempUsageDetail_20' ) start [2025-01-14 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245752', 'tblTempUsageDetail_20' ) end [2025-01-14 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245752', 'tblTempVendorCDR_20' ) start [2025-01-14 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245752', 'tblTempVendorCDR_20' ) end [2025-01-14 10:44:21] Production.INFO: ProcessCDR(1,14245752,1,1,2) [2025-01-14 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245752', 'tblTempUsageDetail_20' ) start [2025-01-14 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245752', 'tblTempUsageDetail_20' ) end [2025-01-14 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:44:25] Production.INFO: ==13969== Releasing lock... [2025-01-14 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:44:25] Production.INFO: 52.5 MB #Memory Used# [2025-01-14 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:45:05 [end_date_ymd] => 2025-01-14 10:45:05 [RateCDR] => 1 ) [2025-01-14 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:45:05' and `end` < '2025-01-14 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:45:21] Production.INFO: count ==3218 [2025-01-14 10:45:22] Production.ERROR: pbx CDR StartTime 2025-01-14 07:45:05 - End Time 2025-01-14 10:45:05 [2025-01-14 10:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245757', 'tblTempUsageDetail_20' ) start [2025-01-14 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245757', 'tblTempUsageDetail_20' ) end [2025-01-14 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245757', 'tblTempVendorCDR_20' ) start [2025-01-14 10:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245757', 'tblTempVendorCDR_20' ) end [2025-01-14 10:45:22] Production.INFO: ProcessCDR(1,14245757,1,1,2) [2025-01-14 10:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245757', 'tblTempUsageDetail_20' ) start [2025-01-14 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245757', 'tblTempUsageDetail_20' ) end [2025-01-14 10:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:45:27] Production.INFO: ==14049== Releasing lock... [2025-01-14 10:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:45:27] Production.INFO: 52.25 MB #Memory Used# [2025-01-14 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:46:05 [end_date_ymd] => 2025-01-14 10:46:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:46:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:46:31] Production.INFO: count ==3229 [2025-01-14 10:46:32] Production.ERROR: pbx CDR StartTime 2025-01-14 07:46:05 - End Time 2025-01-14 10:46:05 [2025-01-14 10:46:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245762', 'tblTempUsageDetail_20' ) start [2025-01-14 10:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245762', 'tblTempUsageDetail_20' ) end [2025-01-14 10:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245762', 'tblTempVendorCDR_20' ) start [2025-01-14 10:46:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245762', 'tblTempVendorCDR_20' ) end [2025-01-14 10:46:33] Production.INFO: ProcessCDR(1,14245762,1,1,2) [2025-01-14 10:46:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:46:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:46:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:46:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:46:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245762', 'tblTempUsageDetail_20' ) start [2025-01-14 10:46:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245762', 'tblTempUsageDetail_20' ) end [2025-01-14 10:46:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:46:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:46:37] Production.INFO: ==14133== Releasing lock... [2025-01-14 10:46:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:46:37] Production.INFO: 52 MB #Memory Used# [2025-01-14 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:47:04 [end_date_ymd] => 2025-01-14 10:47:04 [RateCDR] => 1 ) [2025-01-14 10:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:47:04' and `end` < '2025-01-14 10:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:47:26] Production.INFO: count ==3235 [2025-01-14 10:47:27] Production.ERROR: pbx CDR StartTime 2025-01-14 07:47:04 - End Time 2025-01-14 10:47:04 [2025-01-14 10:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245767', 'tblTempUsageDetail_20' ) start [2025-01-14 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245767', 'tblTempUsageDetail_20' ) end [2025-01-14 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245767', 'tblTempVendorCDR_20' ) start [2025-01-14 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245767', 'tblTempVendorCDR_20' ) end [2025-01-14 10:47:27] Production.INFO: ProcessCDR(1,14245767,1,1,2) [2025-01-14 10:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245767', 'tblTempUsageDetail_20' ) start [2025-01-14 10:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245767', 'tblTempUsageDetail_20' ) end [2025-01-14 10:47:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:47:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:47:31] Production.INFO: ==14212== Releasing lock... [2025-01-14 10:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:47:31] Production.INFO: 53 MB #Memory Used# [2025-01-14 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:48:05 [end_date_ymd] => 2025-01-14 10:48:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:48:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:48:31] Production.INFO: count ==3248 [2025-01-14 10:48:32] Production.ERROR: pbx CDR StartTime 2025-01-14 07:48:05 - End Time 2025-01-14 10:48:05 [2025-01-14 10:48:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245772', 'tblTempUsageDetail_20' ) start [2025-01-14 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245772', 'tblTempUsageDetail_20' ) end [2025-01-14 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245772', 'tblTempVendorCDR_20' ) start [2025-01-14 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245772', 'tblTempVendorCDR_20' ) end [2025-01-14 10:48:32] Production.INFO: ProcessCDR(1,14245772,1,1,2) [2025-01-14 10:48:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:48:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:48:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:48:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:48:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245772', 'tblTempUsageDetail_20' ) start [2025-01-14 10:48:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245772', 'tblTempUsageDetail_20' ) end [2025-01-14 10:48:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:48:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:48:37] Production.INFO: ==14301== Releasing lock... [2025-01-14 10:48:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:48:37] Production.INFO: 53.25 MB #Memory Used# [2025-01-14 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:49:05 [end_date_ymd] => 2025-01-14 10:49:05 [RateCDR] => 1 ) [2025-01-14 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:49:05' and `end` < '2025-01-14 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:49:24] Production.INFO: count ==3256 [2025-01-14 10:49:25] Production.ERROR: pbx CDR StartTime 2025-01-14 07:49:05 - End Time 2025-01-14 10:49:05 [2025-01-14 10:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245777', 'tblTempUsageDetail_20' ) start [2025-01-14 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245777', 'tblTempUsageDetail_20' ) end [2025-01-14 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245777', 'tblTempVendorCDR_20' ) start [2025-01-14 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245777', 'tblTempVendorCDR_20' ) end [2025-01-14 10:49:25] Production.INFO: ProcessCDR(1,14245777,1,1,2) [2025-01-14 10:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245777', 'tblTempUsageDetail_20' ) start [2025-01-14 10:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245777', 'tblTempUsageDetail_20' ) end [2025-01-14 10:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:49:29] Production.INFO: ==14423== Releasing lock... [2025-01-14 10:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:49:29] Production.INFO: 52.25 MB #Memory Used# [2025-01-14 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:50:05 [end_date_ymd] => 2025-01-14 10:50:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:50:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:50:28] Production.INFO: count ==3283 [2025-01-14 10:50:30] Production.ERROR: pbx CDR StartTime 2025-01-14 07:50:05 - End Time 2025-01-14 10:50:05 [2025-01-14 10:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245783', 'tblTempUsageDetail_20' ) start [2025-01-14 10:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245783', 'tblTempUsageDetail_20' ) end [2025-01-14 10:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245783', 'tblTempVendorCDR_20' ) start [2025-01-14 10:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245783', 'tblTempVendorCDR_20' ) end [2025-01-14 10:50:30] Production.INFO: ProcessCDR(1,14245783,1,1,2) [2025-01-14 10:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245783', 'tblTempUsageDetail_20' ) start [2025-01-14 10:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245783', 'tblTempUsageDetail_20' ) end [2025-01-14 10:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:50:34] Production.INFO: ==14515== Releasing lock... [2025-01-14 10:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:50:34] Production.INFO: 53.25 MB #Memory Used# [2025-01-14 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:51:05 [end_date_ymd] => 2025-01-14 10:51:05 [RateCDR] => 1 ) [2025-01-14 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:51:05' and `end` < '2025-01-14 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:51:27] Production.INFO: count ==3418 [2025-01-14 10:51:28] Production.ERROR: pbx CDR StartTime 2025-01-14 07:51:05 - End Time 2025-01-14 10:51:05 [2025-01-14 10:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245788', 'tblTempUsageDetail_20' ) start [2025-01-14 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245788', 'tblTempUsageDetail_20' ) end [2025-01-14 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245788', 'tblTempVendorCDR_20' ) start [2025-01-14 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245788', 'tblTempVendorCDR_20' ) end [2025-01-14 10:51:28] Production.INFO: ProcessCDR(1,14245788,1,1,2) [2025-01-14 10:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245788', 'tblTempUsageDetail_20' ) start [2025-01-14 10:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245788', 'tblTempUsageDetail_20' ) end [2025-01-14 10:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:51:33] Production.INFO: ==14599== Releasing lock... [2025-01-14 10:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:51:33] Production.INFO: 54 MB #Memory Used# [2025-01-14 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:52:05 [end_date_ymd] => 2025-01-14 10:52:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:52:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:52:22] Production.INFO: count ==3429 [2025-01-14 10:52:23] Production.ERROR: pbx CDR StartTime 2025-01-14 07:52:05 - End Time 2025-01-14 10:52:05 [2025-01-14 10:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245793', 'tblTempUsageDetail_20' ) start [2025-01-14 10:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245793', 'tblTempUsageDetail_20' ) end [2025-01-14 10:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245793', 'tblTempVendorCDR_20' ) start [2025-01-14 10:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245793', 'tblTempVendorCDR_20' ) end [2025-01-14 10:52:23] Production.INFO: ProcessCDR(1,14245793,1,1,2) [2025-01-14 10:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245793', 'tblTempUsageDetail_20' ) start [2025-01-14 10:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245793', 'tblTempUsageDetail_20' ) end [2025-01-14 10:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:52:28] Production.INFO: ==14687== Releasing lock... [2025-01-14 10:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:52:28] Production.INFO: 54.25 MB #Memory Used# [2025-01-14 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:53:05 [end_date_ymd] => 2025-01-14 10:53:05 [RateCDR] => 1 ) [2025-01-14 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:53:05' and `end` < '2025-01-14 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:53:18] Production.INFO: count ==3434 [2025-01-14 10:53:19] Production.ERROR: pbx CDR StartTime 2025-01-14 07:53:05 - End Time 2025-01-14 10:53:05 [2025-01-14 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245798', 'tblTempUsageDetail_20' ) start [2025-01-14 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245798', 'tblTempUsageDetail_20' ) end [2025-01-14 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245798', 'tblTempVendorCDR_20' ) start [2025-01-14 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245798', 'tblTempVendorCDR_20' ) end [2025-01-14 10:53:19] Production.INFO: ProcessCDR(1,14245798,1,1,2) [2025-01-14 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245798', 'tblTempUsageDetail_20' ) start [2025-01-14 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245798', 'tblTempUsageDetail_20' ) end [2025-01-14 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:53:24] Production.INFO: ==14774== Releasing lock... [2025-01-14 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:53:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-14 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:54:04 [end_date_ymd] => 2025-01-14 10:54:04 [RateCDR] => 1 ) [2025-01-14 10:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:54:04' and `end` < '2025-01-14 10:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:54:22] Production.INFO: count ==3450 [2025-01-14 10:54:23] Production.ERROR: pbx CDR StartTime 2025-01-14 07:54:04 - End Time 2025-01-14 10:54:04 [2025-01-14 10:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245803', 'tblTempUsageDetail_20' ) start [2025-01-14 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245803', 'tblTempUsageDetail_20' ) end [2025-01-14 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245803', 'tblTempVendorCDR_20' ) start [2025-01-14 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245803', 'tblTempVendorCDR_20' ) end [2025-01-14 10:54:23] Production.INFO: ProcessCDR(1,14245803,1,1,2) [2025-01-14 10:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245803', 'tblTempUsageDetail_20' ) start [2025-01-14 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245803', 'tblTempUsageDetail_20' ) end [2025-01-14 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:54:26] Production.INFO: ==14863== Releasing lock... [2025-01-14 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:54:26] Production.INFO: 54.75 MB #Memory Used# [2025-01-14 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:55:05 [end_date_ymd] => 2025-01-14 10:55:05 [RateCDR] => 1 ) [2025-01-14 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:55:05' and `end` < '2025-01-14 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:55:20] Production.INFO: count ==3492 [2025-01-14 10:55:21] Production.ERROR: pbx CDR StartTime 2025-01-14 07:55:05 - End Time 2025-01-14 10:55:05 [2025-01-14 10:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245808', 'tblTempUsageDetail_20' ) start [2025-01-14 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245808', 'tblTempUsageDetail_20' ) end [2025-01-14 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245808', 'tblTempVendorCDR_20' ) start [2025-01-14 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245808', 'tblTempVendorCDR_20' ) end [2025-01-14 10:55:21] Production.INFO: ProcessCDR(1,14245808,1,1,2) [2025-01-14 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245808', 'tblTempUsageDetail_20' ) start [2025-01-14 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245808', 'tblTempUsageDetail_20' ) end [2025-01-14 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:55:26] Production.INFO: ==14955== Releasing lock... [2025-01-14 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:55:26] Production.INFO: 55 MB #Memory Used# [2025-01-14 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:56:05 [end_date_ymd] => 2025-01-14 10:56:05 [RateCDR] => 1 ) [2025-01-14 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:56:05' and `end` < '2025-01-14 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:56:31] Production.INFO: count ==3514 [2025-01-14 10:56:32] Production.ERROR: pbx CDR StartTime 2025-01-14 07:56:05 - End Time 2025-01-14 10:56:05 [2025-01-14 10:56:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245813', 'tblTempUsageDetail_20' ) start [2025-01-14 10:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245813', 'tblTempUsageDetail_20' ) end [2025-01-14 10:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245813', 'tblTempVendorCDR_20' ) start [2025-01-14 10:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245813', 'tblTempVendorCDR_20' ) end [2025-01-14 10:56:32] Production.INFO: ProcessCDR(1,14245813,1,1,2) [2025-01-14 10:56:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:56:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245813', 'tblTempUsageDetail_20' ) start [2025-01-14 10:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245813', 'tblTempUsageDetail_20' ) end [2025-01-14 10:56:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:56:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:56:37] Production.INFO: ==15048== Releasing lock... [2025-01-14 10:56:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:56:37] Production.INFO: 55.25 MB #Memory Used# [2025-01-14 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:57:05 [end_date_ymd] => 2025-01-14 10:57:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 07:57:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 10:57:29] Production.INFO: count ==3523 [2025-01-14 10:57:30] Production.ERROR: pbx CDR StartTime 2025-01-14 07:57:05 - End Time 2025-01-14 10:57:05 [2025-01-14 10:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245818', 'tblTempUsageDetail_20' ) start [2025-01-14 10:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245818', 'tblTempUsageDetail_20' ) end [2025-01-14 10:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245818', 'tblTempVendorCDR_20' ) start [2025-01-14 10:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245818', 'tblTempVendorCDR_20' ) end [2025-01-14 10:57:31] Production.INFO: ProcessCDR(1,14245818,1,1,2) [2025-01-14 10:57:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:57:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:57:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:57:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245818', 'tblTempUsageDetail_20' ) start [2025-01-14 10:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245818', 'tblTempUsageDetail_20' ) end [2025-01-14 10:57:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:57:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:57:35] Production.INFO: ==15138== Releasing lock... [2025-01-14 10:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:57:35] Production.INFO: 55 MB #Memory Used# [2025-01-14 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:58:05 [end_date_ymd] => 2025-01-14 10:58:05 [RateCDR] => 1 ) [2025-01-14 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:58:05' and `end` < '2025-01-14 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:58:22] Production.INFO: count ==3537 [2025-01-14 10:58:23] Production.ERROR: pbx CDR StartTime 2025-01-14 07:58:05 - End Time 2025-01-14 10:58:05 [2025-01-14 10:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245823', 'tblTempUsageDetail_20' ) start [2025-01-14 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245823', 'tblTempUsageDetail_20' ) end [2025-01-14 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245823', 'tblTempVendorCDR_20' ) start [2025-01-14 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245823', 'tblTempVendorCDR_20' ) end [2025-01-14 10:58:23] Production.INFO: ProcessCDR(1,14245823,1,1,2) [2025-01-14 10:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245823', 'tblTempUsageDetail_20' ) start [2025-01-14 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245823', 'tblTempUsageDetail_20' ) end [2025-01-14 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:58:26] Production.INFO: ==15230== Releasing lock... [2025-01-14 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:58:26] Production.INFO: 54.75 MB #Memory Used# [2025-01-14 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 07:59:04 [end_date_ymd] => 2025-01-14 10:59:04 [RateCDR] => 1 ) [2025-01-14 10:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 07:59:04' and `end` < '2025-01-14 10:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 10:59:18] Production.INFO: count ==3540 [2025-01-14 10:59:19] Production.ERROR: pbx CDR StartTime 2025-01-14 07:59:04 - End Time 2025-01-14 10:59:04 [2025-01-14 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245828', 'tblTempUsageDetail_20' ) start [2025-01-14 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245828', 'tblTempUsageDetail_20' ) end [2025-01-14 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245828', 'tblTempVendorCDR_20' ) start [2025-01-14 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245828', 'tblTempVendorCDR_20' ) end [2025-01-14 10:59:19] Production.INFO: ProcessCDR(1,14245828,1,1,2) [2025-01-14 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 10:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245828', 'tblTempUsageDetail_20' ) start [2025-01-14 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245828', 'tblTempUsageDetail_20' ) end [2025-01-14 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 10:59:24] Production.INFO: ==15322== Releasing lock... [2025-01-14 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 10:59:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-14 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:00:05 [end_date_ymd] => 2025-01-14 11:00:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:00:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:00:23] Production.INFO: count ==3555 [2025-01-14 11:00:24] Production.ERROR: pbx CDR StartTime 2025-01-14 08:00:05 - End Time 2025-01-14 11:00:05 [2025-01-14 11:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245833', 'tblTempUsageDetail_20' ) start [2025-01-14 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245833', 'tblTempUsageDetail_20' ) end [2025-01-14 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245833', 'tblTempVendorCDR_20' ) start [2025-01-14 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245833', 'tblTempVendorCDR_20' ) end [2025-01-14 11:00:24] Production.INFO: ProcessCDR(1,14245833,1,1,2) [2025-01-14 11:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245833', 'tblTempUsageDetail_20' ) start [2025-01-14 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245833', 'tblTempUsageDetail_20' ) end [2025-01-14 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:00:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:00:29] Production.INFO: ==15415== Releasing lock... [2025-01-14 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:00:29] Production.INFO: 54.75 MB #Memory Used# [2025-01-14 11:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:01:04 [end_date_ymd] => 2025-01-14 11:01:04 [RateCDR] => 1 ) [2025-01-14 11:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:01:04' and `end` < '2025-01-14 11:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:01:24] Production.INFO: count ==3637 [2025-01-14 11:01:25] Production.ERROR: pbx CDR StartTime 2025-01-14 08:01:04 - End Time 2025-01-14 11:01:04 [2025-01-14 11:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245839', 'tblTempUsageDetail_20' ) start [2025-01-14 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245839', 'tblTempUsageDetail_20' ) end [2025-01-14 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245839', 'tblTempVendorCDR_20' ) start [2025-01-14 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245839', 'tblTempVendorCDR_20' ) end [2025-01-14 11:01:25] Production.INFO: ProcessCDR(1,14245839,1,1,2) [2025-01-14 11:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245839', 'tblTempUsageDetail_20' ) start [2025-01-14 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245839', 'tblTempUsageDetail_20' ) end [2025-01-14 11:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:01:30] Production.INFO: ==15558== Releasing lock... [2025-01-14 11:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:01:30] Production.INFO: 55.25 MB #Memory Used# [2025-01-14 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:02:05 [end_date_ymd] => 2025-01-14 11:02:05 [RateCDR] => 1 ) [2025-01-14 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:02:05' and `end` < '2025-01-14 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:02:22] Production.INFO: count ==3634 [2025-01-14 11:02:24] Production.ERROR: pbx CDR StartTime 2025-01-14 08:02:05 - End Time 2025-01-14 11:02:05 [2025-01-14 11:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245844', 'tblTempUsageDetail_20' ) start [2025-01-14 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245844', 'tblTempUsageDetail_20' ) end [2025-01-14 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245844', 'tblTempVendorCDR_20' ) start [2025-01-14 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245844', 'tblTempVendorCDR_20' ) end [2025-01-14 11:02:24] Production.INFO: ProcessCDR(1,14245844,1,1,2) [2025-01-14 11:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245844', 'tblTempUsageDetail_20' ) start [2025-01-14 11:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245844', 'tblTempUsageDetail_20' ) end [2025-01-14 11:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:02:28] Production.INFO: ==15685== Releasing lock... [2025-01-14 11:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:02:28] Production.INFO: 55 MB #Memory Used# [2025-01-14 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:03:05 [end_date_ymd] => 2025-01-14 11:03:05 [RateCDR] => 1 ) [2025-01-14 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:03:05' and `end` < '2025-01-14 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:03:18] Production.INFO: count ==3642 [2025-01-14 11:03:20] Production.ERROR: pbx CDR StartTime 2025-01-14 08:03:05 - End Time 2025-01-14 11:03:05 [2025-01-14 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245849', 'tblTempUsageDetail_20' ) start [2025-01-14 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245849', 'tblTempUsageDetail_20' ) end [2025-01-14 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245849', 'tblTempVendorCDR_20' ) start [2025-01-14 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245849', 'tblTempVendorCDR_20' ) end [2025-01-14 11:03:20] Production.INFO: ProcessCDR(1,14245849,1,1,2) [2025-01-14 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245849', 'tblTempUsageDetail_20' ) start [2025-01-14 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245849', 'tblTempUsageDetail_20' ) end [2025-01-14 11:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:03:24] Production.INFO: ==15771== Releasing lock... [2025-01-14 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:03:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-14 11:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:04:04 [end_date_ymd] => 2025-01-14 11:04:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:04:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:04:28] Production.INFO: count ==3669 [2025-01-14 11:04:30] Production.ERROR: pbx CDR StartTime 2025-01-14 08:04:04 - End Time 2025-01-14 11:04:04 [2025-01-14 11:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245854', 'tblTempUsageDetail_20' ) start [2025-01-14 11:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245854', 'tblTempUsageDetail_20' ) end [2025-01-14 11:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245854', 'tblTempVendorCDR_20' ) start [2025-01-14 11:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245854', 'tblTempVendorCDR_20' ) end [2025-01-14 11:04:30] Production.INFO: ProcessCDR(1,14245854,1,1,2) [2025-01-14 11:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245854', 'tblTempUsageDetail_20' ) start [2025-01-14 11:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245854', 'tblTempUsageDetail_20' ) end [2025-01-14 11:04:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:04:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:04:35] Production.INFO: ==15858== Releasing lock... [2025-01-14 11:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:04:35] Production.INFO: 55.5 MB #Memory Used# [2025-01-14 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:05:05 [end_date_ymd] => 2025-01-14 11:05:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:05:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:05:33] Production.INFO: count ==3705 [2025-01-14 11:05:34] Production.ERROR: pbx CDR StartTime 2025-01-14 08:05:05 - End Time 2025-01-14 11:05:05 [2025-01-14 11:05:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245859', 'tblTempUsageDetail_20' ) start [2025-01-14 11:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245859', 'tblTempUsageDetail_20' ) end [2025-01-14 11:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245859', 'tblTempVendorCDR_20' ) start [2025-01-14 11:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245859', 'tblTempVendorCDR_20' ) end [2025-01-14 11:05:34] Production.INFO: ProcessCDR(1,14245859,1,1,2) [2025-01-14 11:05:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:05:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:05:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:05:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:05:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245859', 'tblTempUsageDetail_20' ) start [2025-01-14 11:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245859', 'tblTempUsageDetail_20' ) end [2025-01-14 11:05:39] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:05:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:05:39] Production.INFO: ==16059== Releasing lock... [2025-01-14 11:05:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:05:39] Production.INFO: 56.25 MB #Memory Used# [2025-01-14 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:06:05 [end_date_ymd] => 2025-01-14 11:06:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:06:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:06:23] Production.INFO: count ==3724 [2025-01-14 11:06:25] Production.ERROR: pbx CDR StartTime 2025-01-14 08:06:05 - End Time 2025-01-14 11:06:05 [2025-01-14 11:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245864', 'tblTempUsageDetail_20' ) start [2025-01-14 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245864', 'tblTempUsageDetail_20' ) end [2025-01-14 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245864', 'tblTempVendorCDR_20' ) start [2025-01-14 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245864', 'tblTempVendorCDR_20' ) end [2025-01-14 11:06:25] Production.INFO: ProcessCDR(1,14245864,1,1,2) [2025-01-14 11:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245864', 'tblTempUsageDetail_20' ) start [2025-01-14 11:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245864', 'tblTempUsageDetail_20' ) end [2025-01-14 11:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:06:29] Production.INFO: ==16147== Releasing lock... [2025-01-14 11:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:06:29] Production.INFO: 55.75 MB #Memory Used# [2025-01-14 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:07:05 [end_date_ymd] => 2025-01-14 11:07:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:07:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:07:24] Production.INFO: count ==3738 [2025-01-14 11:07:25] Production.ERROR: pbx CDR StartTime 2025-01-14 08:07:05 - End Time 2025-01-14 11:07:05 [2025-01-14 11:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245869', 'tblTempUsageDetail_20' ) start [2025-01-14 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245869', 'tblTempUsageDetail_20' ) end [2025-01-14 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245869', 'tblTempVendorCDR_20' ) start [2025-01-14 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245869', 'tblTempVendorCDR_20' ) end [2025-01-14 11:07:25] Production.INFO: ProcessCDR(1,14245869,1,1,2) [2025-01-14 11:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245869', 'tblTempUsageDetail_20' ) start [2025-01-14 11:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245869', 'tblTempUsageDetail_20' ) end [2025-01-14 11:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:07:30] Production.INFO: ==16228== Releasing lock... [2025-01-14 11:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:07:30] Production.INFO: 56 MB #Memory Used# [2025-01-14 11:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:08:04 [end_date_ymd] => 2025-01-14 11:08:04 [RateCDR] => 1 ) [2025-01-14 11: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` >= '2025-01-14 08:08:04' and `end` < '2025-01-14 11: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 ,'') [2025-01-14 11:08:17] Production.INFO: count ==3749 [2025-01-14 11:08:19] Production.ERROR: pbx CDR StartTime 2025-01-14 08:08:04 - End Time 2025-01-14 11:08:04 [2025-01-14 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245874', 'tblTempUsageDetail_20' ) start [2025-01-14 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245874', 'tblTempUsageDetail_20' ) end [2025-01-14 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245874', 'tblTempVendorCDR_20' ) start [2025-01-14 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245874', 'tblTempVendorCDR_20' ) end [2025-01-14 11:08:19] Production.INFO: ProcessCDR(1,14245874,1,1,2) [2025-01-14 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245874', 'tblTempUsageDetail_20' ) start [2025-01-14 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245874', 'tblTempUsageDetail_20' ) end [2025-01-14 11:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:08:23] Production.INFO: ==16391== Releasing lock... [2025-01-14 11:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:08:23] Production.INFO: 56 MB #Memory Used# [2025-01-14 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:09:04 [end_date_ymd] => 2025-01-14 11:09:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:09:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:09:22] Production.INFO: count ==3781 [2025-01-14 11:09:23] Production.ERROR: pbx CDR StartTime 2025-01-14 08:09:04 - End Time 2025-01-14 11:09:04 [2025-01-14 11:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245879', 'tblTempUsageDetail_20' ) start [2025-01-14 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245879', 'tblTempUsageDetail_20' ) end [2025-01-14 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245879', 'tblTempVendorCDR_20' ) start [2025-01-14 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245879', 'tblTempVendorCDR_20' ) end [2025-01-14 11:09:23] Production.INFO: ProcessCDR(1,14245879,1,1,2) [2025-01-14 11:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245879', 'tblTempUsageDetail_20' ) start [2025-01-14 11:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245879', 'tblTempUsageDetail_20' ) end [2025-01-14 11:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:09:28] Production.INFO: ==16481== Releasing lock... [2025-01-14 11:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:09:28] Production.INFO: 56.25 MB #Memory Used# [2025-01-14 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:10:05 [end_date_ymd] => 2025-01-14 11:10:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:10:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:10:27] Production.INFO: count ==3796 [2025-01-14 11:10:28] Production.ERROR: pbx CDR StartTime 2025-01-14 08:10:05 - End Time 2025-01-14 11:10:05 [2025-01-14 11:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245885', 'tblTempUsageDetail_20' ) start [2025-01-14 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245885', 'tblTempUsageDetail_20' ) end [2025-01-14 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245885', 'tblTempVendorCDR_20' ) start [2025-01-14 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245885', 'tblTempVendorCDR_20' ) end [2025-01-14 11:10:29] Production.INFO: ProcessCDR(1,14245885,1,1,2) [2025-01-14 11:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245885', 'tblTempUsageDetail_20' ) start [2025-01-14 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245885', 'tblTempUsageDetail_20' ) end [2025-01-14 11:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:10:33] Production.INFO: ==16564== Releasing lock... [2025-01-14 11:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:10:33] Production.INFO: 56.25 MB #Memory Used# [2025-01-14 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:11:04 [end_date_ymd] => 2025-01-14 11:11:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:11:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:11:24] Production.INFO: count ==3895 [2025-01-14 11:11:26] Production.ERROR: pbx CDR StartTime 2025-01-14 08:11:04 - End Time 2025-01-14 11:11:04 [2025-01-14 11:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245890', 'tblTempUsageDetail_20' ) start [2025-01-14 11:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245890', 'tblTempUsageDetail_20' ) end [2025-01-14 11:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245890', 'tblTempVendorCDR_20' ) start [2025-01-14 11:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245890', 'tblTempVendorCDR_20' ) end [2025-01-14 11:11:26] Production.INFO: ProcessCDR(1,14245890,1,1,2) [2025-01-14 11:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245890', 'tblTempUsageDetail_20' ) start [2025-01-14 11:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245890', 'tblTempUsageDetail_20' ) end [2025-01-14 11:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:11:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:11:31] Production.INFO: ==16642== Releasing lock... [2025-01-14 11:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:11:31] Production.INFO: 57 MB #Memory Used# [2025-01-14 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:12:05 [end_date_ymd] => 2025-01-14 11:12:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:12:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:12:26] Production.INFO: count ==3912 [2025-01-14 11:12:27] Production.ERROR: pbx CDR StartTime 2025-01-14 08:12:05 - End Time 2025-01-14 11:12:05 [2025-01-14 11:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245895', 'tblTempUsageDetail_20' ) start [2025-01-14 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245895', 'tblTempUsageDetail_20' ) end [2025-01-14 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245895', 'tblTempVendorCDR_20' ) start [2025-01-14 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245895', 'tblTempVendorCDR_20' ) end [2025-01-14 11:12:27] Production.INFO: ProcessCDR(1,14245895,1,1,2) [2025-01-14 11:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245895', 'tblTempUsageDetail_20' ) start [2025-01-14 11:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245895', 'tblTempUsageDetail_20' ) end [2025-01-14 11:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:12:32] Production.INFO: ==16792== Releasing lock... [2025-01-14 11:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:12:32] Production.INFO: 57.25 MB #Memory Used# [2025-01-14 11:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:13:04 [end_date_ymd] => 2025-01-14 11:13:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:13:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:13:23] Production.INFO: count ==3943 [2025-01-14 11:13:24] Production.ERROR: pbx CDR StartTime 2025-01-14 08:13:04 - End Time 2025-01-14 11:13:04 [2025-01-14 11:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245900', 'tblTempUsageDetail_20' ) start [2025-01-14 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245900', 'tblTempUsageDetail_20' ) end [2025-01-14 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245900', 'tblTempVendorCDR_20' ) start [2025-01-14 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245900', 'tblTempVendorCDR_20' ) end [2025-01-14 11:13:24] Production.INFO: ProcessCDR(1,14245900,1,1,2) [2025-01-14 11:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245900', 'tblTempUsageDetail_20' ) start [2025-01-14 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245900', 'tblTempUsageDetail_20' ) end [2025-01-14 11:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:13:29] Production.INFO: ==16869== Releasing lock... [2025-01-14 11:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:13:29] Production.INFO: 57.5 MB #Memory Used# [2025-01-14 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:14:05 [end_date_ymd] => 2025-01-14 11:14:05 [RateCDR] => 1 ) [2025-01-14 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:14:05' and `end` < '2025-01-14 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:14:37] Production.INFO: count ==3982 [2025-01-14 11:14:39] Production.ERROR: pbx CDR StartTime 2025-01-14 08:14:05 - End Time 2025-01-14 11:14:05 [2025-01-14 11:14:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:14:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245905', 'tblTempUsageDetail_20' ) start [2025-01-14 11:14:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245905', 'tblTempUsageDetail_20' ) end [2025-01-14 11:14:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245905', 'tblTempVendorCDR_20' ) start [2025-01-14 11:14:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245905', 'tblTempVendorCDR_20' ) end [2025-01-14 11:14:39] Production.INFO: ProcessCDR(1,14245905,1,1,2) [2025-01-14 11:14:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:14:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:14:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:14:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:14:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245905', 'tblTempUsageDetail_20' ) start [2025-01-14 11:14:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245905', 'tblTempUsageDetail_20' ) end [2025-01-14 11:14:44] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:14:44] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:14:44] Production.INFO: ==16945== Releasing lock... [2025-01-14 11:14:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:14:44] Production.INFO: 57.75 MB #Memory Used# [2025-01-14 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:15:05 [end_date_ymd] => 2025-01-14 11:15:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:15:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:15:30] Production.INFO: count ==3993 [2025-01-14 11:15:31] Production.ERROR: pbx CDR StartTime 2025-01-14 08:15:05 - End Time 2025-01-14 11:15:05 [2025-01-14 11:15:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245910', 'tblTempUsageDetail_20' ) start [2025-01-14 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245910', 'tblTempUsageDetail_20' ) end [2025-01-14 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245910', 'tblTempVendorCDR_20' ) start [2025-01-14 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245910', 'tblTempVendorCDR_20' ) end [2025-01-14 11:15:31] Production.INFO: ProcessCDR(1,14245910,1,1,2) [2025-01-14 11:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:15:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:15:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:15:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245910', 'tblTempUsageDetail_20' ) start [2025-01-14 11:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245910', 'tblTempUsageDetail_20' ) end [2025-01-14 11:15:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:15:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:15:36] Production.INFO: ==17098== Releasing lock... [2025-01-14 11:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:15:36] Production.INFO: 57.75 MB #Memory Used# [2025-01-14 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:16:05 [end_date_ymd] => 2025-01-14 11:16:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:16:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:16:29] Production.INFO: count ==4009 [2025-01-14 11:16:31] Production.ERROR: pbx CDR StartTime 2025-01-14 08:16:05 - End Time 2025-01-14 11:16:05 [2025-01-14 11:16:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245915', 'tblTempUsageDetail_20' ) start [2025-01-14 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245915', 'tblTempUsageDetail_20' ) end [2025-01-14 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245915', 'tblTempVendorCDR_20' ) start [2025-01-14 11:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245915', 'tblTempVendorCDR_20' ) end [2025-01-14 11:16:31] Production.INFO: ProcessCDR(1,14245915,1,1,2) [2025-01-14 11:16:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:16:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245915', 'tblTempUsageDetail_20' ) start [2025-01-14 11:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245915', 'tblTempUsageDetail_20' ) end [2025-01-14 11:16:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:16:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:16:36] Production.INFO: ==17176== Releasing lock... [2025-01-14 11:16:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:16:36] Production.INFO: 58 MB #Memory Used# [2025-01-14 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:17:05 [end_date_ymd] => 2025-01-14 11:17:05 [RateCDR] => 1 ) [2025-01-14 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:17:05' and `end` < '2025-01-14 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:17:29] Production.INFO: count ==4014 [2025-01-14 11:17:30] Production.ERROR: pbx CDR StartTime 2025-01-14 08:17:05 - End Time 2025-01-14 11:17:05 [2025-01-14 11:17:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245920', 'tblTempUsageDetail_20' ) start [2025-01-14 11:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245920', 'tblTempUsageDetail_20' ) end [2025-01-14 11:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245920', 'tblTempVendorCDR_20' ) start [2025-01-14 11:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245920', 'tblTempVendorCDR_20' ) end [2025-01-14 11:17:31] Production.INFO: ProcessCDR(1,14245920,1,1,2) [2025-01-14 11:17:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:17:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:17:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:17:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245920', 'tblTempUsageDetail_20' ) start [2025-01-14 11:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245920', 'tblTempUsageDetail_20' ) end [2025-01-14 11:17:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:17:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:17:35] Production.INFO: ==17254== Releasing lock... [2025-01-14 11:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:17:35] Production.INFO: 58 MB #Memory Used# [2025-01-14 11:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:18:04 [end_date_ymd] => 2025-01-14 11:18:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:18:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:18:25] Production.INFO: count ==4025 [2025-01-14 11:18:26] Production.ERROR: pbx CDR StartTime 2025-01-14 08:18:04 - End Time 2025-01-14 11:18:04 [2025-01-14 11:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245925', 'tblTempUsageDetail_20' ) start [2025-01-14 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245925', 'tblTempUsageDetail_20' ) end [2025-01-14 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245925', 'tblTempVendorCDR_20' ) start [2025-01-14 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245925', 'tblTempVendorCDR_20' ) end [2025-01-14 11:18:27] Production.INFO: ProcessCDR(1,14245925,1,1,2) [2025-01-14 11:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245925', 'tblTempUsageDetail_20' ) start [2025-01-14 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245925', 'tblTempUsageDetail_20' ) end [2025-01-14 11:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:18:30] Production.INFO: ==17331== Releasing lock... [2025-01-14 11:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:18:30] Production.INFO: 58 MB #Memory Used# [2025-01-14 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:19:05 [end_date_ymd] => 2025-01-14 11:19:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:19:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:19:22] Production.INFO: count ==4033 [2025-01-14 11:19:24] Production.ERROR: pbx CDR StartTime 2025-01-14 08:19:05 - End Time 2025-01-14 11:19:05 [2025-01-14 11:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245930', 'tblTempUsageDetail_20' ) start [2025-01-14 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245930', 'tblTempUsageDetail_20' ) end [2025-01-14 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245930', 'tblTempVendorCDR_20' ) start [2025-01-14 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245930', 'tblTempVendorCDR_20' ) end [2025-01-14 11:19:24] Production.INFO: ProcessCDR(1,14245930,1,1,2) [2025-01-14 11:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245930', 'tblTempUsageDetail_20' ) start [2025-01-14 11:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245930', 'tblTempUsageDetail_20' ) end [2025-01-14 11:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:19:29] Production.INFO: ==17406== Releasing lock... [2025-01-14 11:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:19:29] Production.INFO: 58.25 MB #Memory Used# [2025-01-14 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:20:05 [end_date_ymd] => 2025-01-14 11:20:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:20:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:20:26] Production.INFO: count ==4034 [2025-01-14 11:20:27] Production.ERROR: pbx CDR StartTime 2025-01-14 08:20:05 - End Time 2025-01-14 11:20:05 [2025-01-14 11:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245935', 'tblTempUsageDetail_20' ) start [2025-01-14 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245935', 'tblTempUsageDetail_20' ) end [2025-01-14 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245935', 'tblTempVendorCDR_20' ) start [2025-01-14 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245935', 'tblTempVendorCDR_20' ) end [2025-01-14 11:20:27] Production.INFO: ProcessCDR(1,14245935,1,1,2) [2025-01-14 11:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245935', 'tblTempUsageDetail_20' ) start [2025-01-14 11:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245935', 'tblTempUsageDetail_20' ) end [2025-01-14 11:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:20:32] Production.INFO: ==17519== Releasing lock... [2025-01-14 11:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:20:32] Production.INFO: 58.25 MB #Memory Used# [2025-01-14 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:21:04 [end_date_ymd] => 2025-01-14 11:21:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:21:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:21:28] Production.INFO: count ==4133 [2025-01-14 11:21:29] Production.ERROR: pbx CDR StartTime 2025-01-14 08:21:04 - End Time 2025-01-14 11:21:04 [2025-01-14 11:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245941', 'tblTempUsageDetail_20' ) start [2025-01-14 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245941', 'tblTempUsageDetail_20' ) end [2025-01-14 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245941', 'tblTempVendorCDR_20' ) start [2025-01-14 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245941', 'tblTempVendorCDR_20' ) end [2025-01-14 11:21:29] Production.INFO: ProcessCDR(1,14245941,1,1,2) [2025-01-14 11:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245941', 'tblTempUsageDetail_20' ) start [2025-01-14 11:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245941', 'tblTempUsageDetail_20' ) end [2025-01-14 11:21:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:21:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:21:34] Production.INFO: ==17591== Releasing lock... [2025-01-14 11:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:21:34] Production.INFO: 59 MB #Memory Used# [2025-01-14 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:22:05 [end_date_ymd] => 2025-01-14 11:22:05 [RateCDR] => 1 ) [2025-01-14 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:22:05' and `end` < '2025-01-14 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:22:34] Production.INFO: count ==4154 [2025-01-14 11:22:36] Production.ERROR: pbx CDR StartTime 2025-01-14 08:22:05 - End Time 2025-01-14 11:22:05 [2025-01-14 11:22:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245946', 'tblTempUsageDetail_20' ) start [2025-01-14 11:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245946', 'tblTempUsageDetail_20' ) end [2025-01-14 11:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245946', 'tblTempVendorCDR_20' ) start [2025-01-14 11:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245946', 'tblTempVendorCDR_20' ) end [2025-01-14 11:22:36] Production.INFO: ProcessCDR(1,14245946,1,1,2) [2025-01-14 11:22:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:22:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:22:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:22:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:22:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245946', 'tblTempUsageDetail_20' ) start [2025-01-14 11:22:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245946', 'tblTempUsageDetail_20' ) end [2025-01-14 11:22:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:22:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:22:40] Production.INFO: ==17670== Releasing lock... [2025-01-14 11:22:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:22:40] Production.INFO: 59 MB #Memory Used# [2025-01-14 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:23:04 [end_date_ymd] => 2025-01-14 11:23:04 [RateCDR] => 1 ) [2025-01-14 11:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:23:04' and `end` < '2025-01-14 11:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:23:25] Production.INFO: count ==4163 [2025-01-14 11:23:26] Production.ERROR: pbx CDR StartTime 2025-01-14 08:23:04 - End Time 2025-01-14 11:23:04 [2025-01-14 11:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245951', 'tblTempUsageDetail_20' ) start [2025-01-14 11:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245951', 'tblTempUsageDetail_20' ) end [2025-01-14 11:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245951', 'tblTempVendorCDR_20' ) start [2025-01-14 11:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245951', 'tblTempVendorCDR_20' ) end [2025-01-14 11:23:26] Production.INFO: ProcessCDR(1,14245951,1,1,2) [2025-01-14 11:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245951', 'tblTempUsageDetail_20' ) start [2025-01-14 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245951', 'tblTempUsageDetail_20' ) end [2025-01-14 11:23:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:23:32] Production.INFO: ==17746== Releasing lock... [2025-01-14 11:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:23:32] Production.INFO: 59.25 MB #Memory Used# [2025-01-14 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:24:05 [end_date_ymd] => 2025-01-14 11:24:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:24:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:24:18] Production.INFO: count ==4162 [2025-01-14 11:24:20] Production.ERROR: pbx CDR StartTime 2025-01-14 08:24:05 - End Time 2025-01-14 11:24:05 [2025-01-14 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245956', 'tblTempUsageDetail_20' ) start [2025-01-14 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245956', 'tblTempUsageDetail_20' ) end [2025-01-14 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245956', 'tblTempVendorCDR_20' ) start [2025-01-14 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245956', 'tblTempVendorCDR_20' ) end [2025-01-14 11:24:20] Production.INFO: ProcessCDR(1,14245956,1,1,2) [2025-01-14 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245956', 'tblTempUsageDetail_20' ) start [2025-01-14 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245956', 'tblTempUsageDetail_20' ) end [2025-01-14 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:24:25] Production.INFO: ==17818== Releasing lock... [2025-01-14 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:24:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-14 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:25:05 [end_date_ymd] => 2025-01-14 11:25:05 [RateCDR] => 1 ) [2025-01-14 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:25:05' and `end` < '2025-01-14 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:25:30] Production.INFO: count ==4151 [2025-01-14 11:25:32] Production.ERROR: pbx CDR StartTime 2025-01-14 08:25:05 - End Time 2025-01-14 11:25:05 [2025-01-14 11:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245961', 'tblTempUsageDetail_20' ) start [2025-01-14 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245961', 'tblTempUsageDetail_20' ) end [2025-01-14 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245961', 'tblTempVendorCDR_20' ) start [2025-01-14 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245961', 'tblTempVendorCDR_20' ) end [2025-01-14 11:25:32] Production.INFO: ProcessCDR(1,14245961,1,1,2) [2025-01-14 11:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245961', 'tblTempUsageDetail_20' ) start [2025-01-14 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245961', 'tblTempUsageDetail_20' ) end [2025-01-14 11:25:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:25:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:25:37] Production.INFO: ==17891== Releasing lock... [2025-01-14 11:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:25:37] Production.INFO: 59 MB #Memory Used# [2025-01-14 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:26:05 [end_date_ymd] => 2025-01-14 11:26:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:26:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:26:26] Production.INFO: count ==4161 [2025-01-14 11:26:27] Production.ERROR: pbx CDR StartTime 2025-01-14 08:26:05 - End Time 2025-01-14 11:26:05 [2025-01-14 11:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245966', 'tblTempUsageDetail_20' ) start [2025-01-14 11:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245966', 'tblTempUsageDetail_20' ) end [2025-01-14 11:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245966', 'tblTempVendorCDR_20' ) start [2025-01-14 11:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245966', 'tblTempVendorCDR_20' ) end [2025-01-14 11:26:27] Production.INFO: ProcessCDR(1,14245966,1,1,2) [2025-01-14 11:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245966', 'tblTempUsageDetail_20' ) start [2025-01-14 11:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245966', 'tblTempUsageDetail_20' ) end [2025-01-14 11:26:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:26:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:26:32] Production.INFO: ==17964== Releasing lock... [2025-01-14 11:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:26:32] Production.INFO: 59.25 MB #Memory Used# [2025-01-14 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:27:05 [end_date_ymd] => 2025-01-14 11:27:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:27:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:27:22] Production.INFO: count ==4185 [2025-01-14 11:27:23] Production.ERROR: pbx CDR StartTime 2025-01-14 08:27:05 - End Time 2025-01-14 11:27:05 [2025-01-14 11:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245970', 'tblTempUsageDetail_20' ) start [2025-01-14 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245970', 'tblTempUsageDetail_20' ) end [2025-01-14 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245970', 'tblTempVendorCDR_20' ) start [2025-01-14 11:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245970', 'tblTempVendorCDR_20' ) end [2025-01-14 11:27:23] Production.INFO: ProcessCDR(1,14245970,1,1,2) [2025-01-14 11:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245970', 'tblTempUsageDetail_20' ) start [2025-01-14 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245970', 'tblTempUsageDetail_20' ) end [2025-01-14 11:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:27:28] Production.INFO: ==18037== Releasing lock... [2025-01-14 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:27:28] Production.INFO: 59.25 MB #Memory Used# [2025-01-14 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:28:05 [end_date_ymd] => 2025-01-14 11:28:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:28:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:28:20] Production.INFO: count ==4197 [2025-01-14 11:28:21] Production.ERROR: pbx CDR StartTime 2025-01-14 08:28:05 - End Time 2025-01-14 11:28:05 [2025-01-14 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245976', 'tblTempUsageDetail_20' ) start [2025-01-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245976', 'tblTempUsageDetail_20' ) end [2025-01-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245976', 'tblTempVendorCDR_20' ) start [2025-01-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245976', 'tblTempVendorCDR_20' ) end [2025-01-14 11:28:21] Production.INFO: ProcessCDR(1,14245976,1,1,2) [2025-01-14 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245976', 'tblTempUsageDetail_20' ) start [2025-01-14 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245976', 'tblTempUsageDetail_20' ) end [2025-01-14 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:28:26] Production.INFO: ==18109== Releasing lock... [2025-01-14 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:28:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-14 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:29:04 [end_date_ymd] => 2025-01-14 11:29:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:29:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:29:18] Production.INFO: count ==4212 [2025-01-14 11:29:20] Production.ERROR: pbx CDR StartTime 2025-01-14 08:29:04 - End Time 2025-01-14 11:29:04 [2025-01-14 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245981', 'tblTempUsageDetail_20' ) start [2025-01-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245981', 'tblTempUsageDetail_20' ) end [2025-01-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245981', 'tblTempVendorCDR_20' ) start [2025-01-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245981', 'tblTempVendorCDR_20' ) end [2025-01-14 11:29:20] Production.INFO: ProcessCDR(1,14245981,1,1,2) [2025-01-14 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245981', 'tblTempUsageDetail_20' ) start [2025-01-14 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245981', 'tblTempUsageDetail_20' ) end [2025-01-14 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:29:25] Production.INFO: ==18182== Releasing lock... [2025-01-14 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:29:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-14 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:30:05 [end_date_ymd] => 2025-01-14 11:30:05 [RateCDR] => 1 ) [2025-01-14 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:30:05' and `end` < '2025-01-14 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:30:21] Production.INFO: count ==4226 [2025-01-14 11:30:23] Production.ERROR: pbx CDR StartTime 2025-01-14 08:30:05 - End Time 2025-01-14 11:30:05 [2025-01-14 11:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245986', 'tblTempUsageDetail_20' ) start [2025-01-14 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245986', 'tblTempUsageDetail_20' ) end [2025-01-14 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245986', 'tblTempVendorCDR_20' ) start [2025-01-14 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245986', 'tblTempVendorCDR_20' ) end [2025-01-14 11:30:23] Production.INFO: ProcessCDR(1,14245986,1,1,2) [2025-01-14 11:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245986', 'tblTempUsageDetail_20' ) start [2025-01-14 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245986', 'tblTempUsageDetail_20' ) end [2025-01-14 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:30:27] Production.INFO: ==18258== Releasing lock... [2025-01-14 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:30:27] Production.INFO: 59.5 MB #Memory Used# [2025-01-14 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:31:05 [end_date_ymd] => 2025-01-14 11:31:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:31:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:31:23] Production.INFO: count ==4319 [2025-01-14 11:31:25] Production.ERROR: pbx CDR StartTime 2025-01-14 08:31:05 - End Time 2025-01-14 11:31:05 [2025-01-14 11:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245992', 'tblTempUsageDetail_20' ) start [2025-01-14 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245992', 'tblTempUsageDetail_20' ) end [2025-01-14 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245992', 'tblTempVendorCDR_20' ) start [2025-01-14 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245992', 'tblTempVendorCDR_20' ) end [2025-01-14 11:31:25] Production.INFO: ProcessCDR(1,14245992,1,1,2) [2025-01-14 11:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245992', 'tblTempUsageDetail_20' ) start [2025-01-14 11:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245992', 'tblTempUsageDetail_20' ) end [2025-01-14 11:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:31:29] Production.INFO: ==18334== Releasing lock... [2025-01-14 11:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:31:29] Production.INFO: 60.25 MB #Memory Used# [2025-01-14 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:32:05 [end_date_ymd] => 2025-01-14 11:32:05 [RateCDR] => 1 ) [2025-01-14 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:32:05' and `end` < '2025-01-14 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:32:26] Production.INFO: count ==4352 [2025-01-14 11:32:28] Production.ERROR: pbx CDR StartTime 2025-01-14 08:32:05 - End Time 2025-01-14 11:32:05 [2025-01-14 11:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245997', 'tblTempUsageDetail_20' ) start [2025-01-14 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14245997', 'tblTempUsageDetail_20' ) end [2025-01-14 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245997', 'tblTempVendorCDR_20' ) start [2025-01-14 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14245997', 'tblTempVendorCDR_20' ) end [2025-01-14 11:32:28] Production.INFO: ProcessCDR(1,14245997,1,1,2) [2025-01-14 11:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14245997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14245997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14245997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14245997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245997', 'tblTempUsageDetail_20' ) start [2025-01-14 11:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14245997', 'tblTempUsageDetail_20' ) end [2025-01-14 11:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:32:33] Production.INFO: ==18406== Releasing lock... [2025-01-14 11:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:32:33] Production.INFO: 60.5 MB #Memory Used# [2025-01-14 11:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:33:04 [end_date_ymd] => 2025-01-14 11:33:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:33:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:33:23] Production.INFO: count ==4363 [2025-01-14 11:33:24] Production.ERROR: pbx CDR StartTime 2025-01-14 08:33:04 - End Time 2025-01-14 11:33:04 [2025-01-14 11:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246002', 'tblTempUsageDetail_20' ) start [2025-01-14 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246002', 'tblTempUsageDetail_20' ) end [2025-01-14 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246002', 'tblTempVendorCDR_20' ) start [2025-01-14 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246002', 'tblTempVendorCDR_20' ) end [2025-01-14 11:33:25] Production.INFO: ProcessCDR(1,14246002,1,1,2) [2025-01-14 11:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246002', 'tblTempUsageDetail_20' ) start [2025-01-14 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246002', 'tblTempUsageDetail_20' ) end [2025-01-14 11:33:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:33:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:33:28] Production.INFO: ==18476== Releasing lock... [2025-01-14 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:33:28] Production.INFO: 60.75 MB #Memory Used# [2025-01-14 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:34:04 [end_date_ymd] => 2025-01-14 11:34:04 [RateCDR] => 1 ) [2025-01-14 11:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:34:04' and `end` < '2025-01-14 11:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:34:35] Production.INFO: count ==4376 [2025-01-14 11:34:37] Production.ERROR: pbx CDR StartTime 2025-01-14 08:34:04 - End Time 2025-01-14 11:34:04 [2025-01-14 11:34:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246007', 'tblTempUsageDetail_20' ) start [2025-01-14 11:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246007', 'tblTempUsageDetail_20' ) end [2025-01-14 11:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246007', 'tblTempVendorCDR_20' ) start [2025-01-14 11:34:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246007', 'tblTempVendorCDR_20' ) end [2025-01-14 11:34:37] Production.INFO: ProcessCDR(1,14246007,1,1,2) [2025-01-14 11:34:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:34:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:34:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:34:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:34:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246007', 'tblTempUsageDetail_20' ) start [2025-01-14 11:34:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246007', 'tblTempUsageDetail_20' ) end [2025-01-14 11:34:42] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:34:42] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:34:42] Production.INFO: ==18548== Releasing lock... [2025-01-14 11:34:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:34:42] Production.INFO: 60.75 MB #Memory Used# [2025-01-14 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:35:04 [end_date_ymd] => 2025-01-14 11:35:04 [RateCDR] => 1 ) [2025-01-14 11:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:35:04' and `end` < '2025-01-14 11:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:35:27] Production.INFO: count ==4412 [2025-01-14 11:35:28] Production.ERROR: pbx CDR StartTime 2025-01-14 08:35:04 - End Time 2025-01-14 11:35:04 [2025-01-14 11:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246012', 'tblTempUsageDetail_20' ) start [2025-01-14 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246012', 'tblTempUsageDetail_20' ) end [2025-01-14 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246012', 'tblTempVendorCDR_20' ) start [2025-01-14 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246012', 'tblTempVendorCDR_20' ) end [2025-01-14 11:35:28] Production.INFO: ProcessCDR(1,14246012,1,1,2) [2025-01-14 11:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246012', 'tblTempUsageDetail_20' ) start [2025-01-14 11:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246012', 'tblTempUsageDetail_20' ) end [2025-01-14 11:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:35:33] Production.INFO: ==18623== Releasing lock... [2025-01-14 11:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:35:33] Production.INFO: 61 MB #Memory Used# [2025-01-14 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:36:05 [end_date_ymd] => 2025-01-14 11:36:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:36:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:36:34] Production.INFO: count ==4432 [2025-01-14 11:36:36] Production.ERROR: pbx CDR StartTime 2025-01-14 08:36:05 - End Time 2025-01-14 11:36:05 [2025-01-14 11:36:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246017', 'tblTempUsageDetail_20' ) start [2025-01-14 11:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246017', 'tblTempUsageDetail_20' ) end [2025-01-14 11:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246017', 'tblTempVendorCDR_20' ) start [2025-01-14 11:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246017', 'tblTempVendorCDR_20' ) end [2025-01-14 11:36:36] Production.INFO: ProcessCDR(1,14246017,1,1,2) [2025-01-14 11:36:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:36:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:36:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:36:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:36:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246017', 'tblTempUsageDetail_20' ) start [2025-01-14 11:36:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246017', 'tblTempUsageDetail_20' ) end [2025-01-14 11:36:41] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:36:41] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:36:41] Production.INFO: ==18742== Releasing lock... [2025-01-14 11:36:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:36:41] Production.INFO: 61.25 MB #Memory Used# [2025-01-14 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:37:04 [end_date_ymd] => 2025-01-14 11:37:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:37:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:37:37] Production.INFO: count ==4459 [2025-01-14 11:37:39] Production.ERROR: pbx CDR StartTime 2025-01-14 08:37:04 - End Time 2025-01-14 11:37:04 [2025-01-14 11:37:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:37:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246022', 'tblTempUsageDetail_20' ) start [2025-01-14 11:37:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246022', 'tblTempUsageDetail_20' ) end [2025-01-14 11:37:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246022', 'tblTempVendorCDR_20' ) start [2025-01-14 11:37:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246022', 'tblTempVendorCDR_20' ) end [2025-01-14 11:37:39] Production.INFO: ProcessCDR(1,14246022,1,1,2) [2025-01-14 11:37:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:37:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:37:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:37:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:37:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246022', 'tblTempUsageDetail_20' ) start [2025-01-14 11:37:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246022', 'tblTempUsageDetail_20' ) end [2025-01-14 11:37:44] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:37:44] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:37:44] Production.INFO: ==18810== Releasing lock... [2025-01-14 11:37:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:37:44] Production.INFO: 61.25 MB #Memory Used# [2025-01-14 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:38:05 [end_date_ymd] => 2025-01-14 11:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:38:24] Production.INFO: count ==4461 [2025-01-14 11:38:26] Production.ERROR: pbx CDR StartTime 2025-01-14 08:38:05 - End Time 2025-01-14 11:38:05 [2025-01-14 11:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246027', 'tblTempUsageDetail_20' ) start [2025-01-14 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246027', 'tblTempUsageDetail_20' ) end [2025-01-14 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246027', 'tblTempVendorCDR_20' ) start [2025-01-14 11:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246027', 'tblTempVendorCDR_20' ) end [2025-01-14 11:38:26] Production.INFO: ProcessCDR(1,14246027,1,1,2) [2025-01-14 11:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246027', 'tblTempUsageDetail_20' ) start [2025-01-14 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246027', 'tblTempUsageDetail_20' ) end [2025-01-14 11:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:38:29] Production.INFO: ==18883== Releasing lock... [2025-01-14 11:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:38:29] Production.INFO: 61.25 MB #Memory Used# [2025-01-14 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:39:05 [end_date_ymd] => 2025-01-14 11:39:05 [RateCDR] => 1 ) [2025-01-14 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:39:05' and `end` < '2025-01-14 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:39:29] Production.INFO: count ==4488 [2025-01-14 11:39:31] Production.ERROR: pbx CDR StartTime 2025-01-14 08:39:05 - End Time 2025-01-14 11:39:05 [2025-01-14 11:39:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246032', 'tblTempUsageDetail_20' ) start [2025-01-14 11:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246032', 'tblTempUsageDetail_20' ) end [2025-01-14 11:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246032', 'tblTempVendorCDR_20' ) start [2025-01-14 11:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246032', 'tblTempVendorCDR_20' ) end [2025-01-14 11:39:31] Production.INFO: ProcessCDR(1,14246032,1,1,2) [2025-01-14 11:39:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246032', 'tblTempUsageDetail_20' ) start [2025-01-14 11:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246032', 'tblTempUsageDetail_20' ) end [2025-01-14 11:39:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:39:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:39:36] Production.INFO: ==18955== Releasing lock... [2025-01-14 11:39:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:39:36] Production.INFO: 61.5 MB #Memory Used# [2025-01-14 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:40:06 [end_date_ymd] => 2025-01-14 11:40:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:40:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:40:28] Production.INFO: count ==4507 [2025-01-14 11:40:30] Production.ERROR: pbx CDR StartTime 2025-01-14 08:40:06 - End Time 2025-01-14 11:40:06 [2025-01-14 11:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246038', 'tblTempUsageDetail_20' ) start [2025-01-14 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246038', 'tblTempUsageDetail_20' ) end [2025-01-14 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246038', 'tblTempVendorCDR_20' ) start [2025-01-14 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246038', 'tblTempVendorCDR_20' ) end [2025-01-14 11:40:30] Production.INFO: ProcessCDR(1,14246038,1,1,2) [2025-01-14 11:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246038', 'tblTempUsageDetail_20' ) start [2025-01-14 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246038', 'tblTempUsageDetail_20' ) end [2025-01-14 11:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:40:33] Production.INFO: ==19029== Releasing lock... [2025-01-14 11:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:40:33] Production.INFO: 61.75 MB #Memory Used# [2025-01-14 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:41:04 [end_date_ymd] => 2025-01-14 11:41:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:41:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:41:25] Production.INFO: count ==4583 [2025-01-14 11:41:27] Production.ERROR: pbx CDR StartTime 2025-01-14 08:41:04 - End Time 2025-01-14 11:41:04 [2025-01-14 11:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246043', 'tblTempUsageDetail_20' ) start [2025-01-14 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246043', 'tblTempUsageDetail_20' ) end [2025-01-14 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246043', 'tblTempVendorCDR_20' ) start [2025-01-14 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246043', 'tblTempVendorCDR_20' ) end [2025-01-14 11:41:27] Production.INFO: ProcessCDR(1,14246043,1,1,2) [2025-01-14 11:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246043', 'tblTempUsageDetail_20' ) start [2025-01-14 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246043', 'tblTempUsageDetail_20' ) end [2025-01-14 11:41:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:41:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:41:32] Production.INFO: ==19104== Releasing lock... [2025-01-14 11:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:41:32] Production.INFO: 62.25 MB #Memory Used# [2025-01-14 11:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:42:04 [end_date_ymd] => 2025-01-14 11:42:04 [RateCDR] => 1 ) [2025-01-14 11:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:42:04' and `end` < '2025-01-14 11:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:42:24] Production.INFO: count ==4612 [2025-01-14 11:42:26] Production.ERROR: pbx CDR StartTime 2025-01-14 08:42:04 - End Time 2025-01-14 11:42:04 [2025-01-14 11:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246048', 'tblTempUsageDetail_20' ) start [2025-01-14 11:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246048', 'tblTempUsageDetail_20' ) end [2025-01-14 11:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246048', 'tblTempVendorCDR_20' ) start [2025-01-14 11:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246048', 'tblTempVendorCDR_20' ) end [2025-01-14 11:42:26] Production.INFO: ProcessCDR(1,14246048,1,1,2) [2025-01-14 11:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246048', 'tblTempUsageDetail_20' ) start [2025-01-14 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246048', 'tblTempUsageDetail_20' ) end [2025-01-14 11:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:42:31] Production.INFO: ==19176== Releasing lock... [2025-01-14 11:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:42:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-14 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:43:05 [end_date_ymd] => 2025-01-14 11:43:05 [RateCDR] => 1 ) [2025-01-14 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:43:05' and `end` < '2025-01-14 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:43:22] Production.INFO: count ==4630 [2025-01-14 11:43:24] Production.ERROR: pbx CDR StartTime 2025-01-14 08:43:05 - End Time 2025-01-14 11:43:05 [2025-01-14 11:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246053', 'tblTempUsageDetail_20' ) start [2025-01-14 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246053', 'tblTempUsageDetail_20' ) end [2025-01-14 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246053', 'tblTempVendorCDR_20' ) start [2025-01-14 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246053', 'tblTempVendorCDR_20' ) end [2025-01-14 11:43:24] Production.INFO: ProcessCDR(1,14246053,1,1,2) [2025-01-14 11:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246053', 'tblTempUsageDetail_20' ) start [2025-01-14 11:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246053', 'tblTempUsageDetail_20' ) end [2025-01-14 11:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:43:29] Production.INFO: ==19248== Releasing lock... [2025-01-14 11:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:43:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-14 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:44:05 [end_date_ymd] => 2025-01-14 11:44:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:44:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:44:38] Production.INFO: count ==4657 [2025-01-14 11:44:40] Production.ERROR: pbx CDR StartTime 2025-01-14 08:44:05 - End Time 2025-01-14 11:44:05 [2025-01-14 11:44:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:44:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246058', 'tblTempUsageDetail_20' ) start [2025-01-14 11:44:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246058', 'tblTempUsageDetail_20' ) end [2025-01-14 11:44:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246058', 'tblTempVendorCDR_20' ) start [2025-01-14 11:44:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246058', 'tblTempVendorCDR_20' ) end [2025-01-14 11:44:40] Production.INFO: ProcessCDR(1,14246058,1,1,2) [2025-01-14 11:44:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:44:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:44:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:44:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:44:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246058', 'tblTempUsageDetail_20' ) start [2025-01-14 11:44:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246058', 'tblTempUsageDetail_20' ) end [2025-01-14 11:44:45] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:44:45] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:44:45] Production.INFO: ==19319== Releasing lock... [2025-01-14 11:44:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:44:45] Production.INFO: 63 MB #Memory Used# [2025-01-14 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:45:05 [end_date_ymd] => 2025-01-14 11:45:05 [RateCDR] => 1 ) [2025-01-14 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:45:05' and `end` < '2025-01-14 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:45:34] Production.INFO: count ==4670 [2025-01-14 11:45:36] Production.ERROR: pbx CDR StartTime 2025-01-14 08:45:05 - End Time 2025-01-14 11:45:05 [2025-01-14 11:45:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246063', 'tblTempUsageDetail_20' ) start [2025-01-14 11:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246063', 'tblTempUsageDetail_20' ) end [2025-01-14 11:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246063', 'tblTempVendorCDR_20' ) start [2025-01-14 11:45:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246063', 'tblTempVendorCDR_20' ) end [2025-01-14 11:45:36] Production.INFO: ProcessCDR(1,14246063,1,1,2) [2025-01-14 11:45:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:45:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:45:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:45:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246063', 'tblTempUsageDetail_20' ) start [2025-01-14 11:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246063', 'tblTempUsageDetail_20' ) end [2025-01-14 11:45:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:45:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:45:40] Production.INFO: ==19392== Releasing lock... [2025-01-14 11:45:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:45:40] Production.INFO: 63 MB #Memory Used# [2025-01-14 11:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:46:04 [end_date_ymd] => 2025-01-14 11:46:04 [RateCDR] => 1 ) [2025-01-14 11:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:46:04' and `end` < '2025-01-14 11:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:46:35] Production.INFO: count ==4711 [2025-01-14 11:46:37] Production.ERROR: pbx CDR StartTime 2025-01-14 08:46:04 - End Time 2025-01-14 11:46:04 [2025-01-14 11:46:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246068', 'tblTempUsageDetail_20' ) start [2025-01-14 11:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246068', 'tblTempUsageDetail_20' ) end [2025-01-14 11:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246068', 'tblTempVendorCDR_20' ) start [2025-01-14 11:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246068', 'tblTempVendorCDR_20' ) end [2025-01-14 11:46:37] Production.INFO: ProcessCDR(1,14246068,1,1,2) [2025-01-14 11:46:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:46:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:46:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:46:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246068', 'tblTempUsageDetail_20' ) start [2025-01-14 11:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246068', 'tblTempUsageDetail_20' ) end [2025-01-14 11:46:42] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:46:42] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:46:42] Production.INFO: ==19462== Releasing lock... [2025-01-14 11:46:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:46:42] Production.INFO: 63.25 MB #Memory Used# [2025-01-14 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:47:05 [end_date_ymd] => 2025-01-14 11:47:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:47:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:47:27] Production.INFO: count ==4720 [2025-01-14 11:47:29] Production.ERROR: pbx CDR StartTime 2025-01-14 08:47:05 - End Time 2025-01-14 11:47:05 [2025-01-14 11:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246073', 'tblTempUsageDetail_20' ) start [2025-01-14 11:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246073', 'tblTempUsageDetail_20' ) end [2025-01-14 11:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246073', 'tblTempVendorCDR_20' ) start [2025-01-14 11:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246073', 'tblTempVendorCDR_20' ) end [2025-01-14 11:47:29] Production.INFO: ProcessCDR(1,14246073,1,1,2) [2025-01-14 11:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:47:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:47:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246073', 'tblTempUsageDetail_20' ) start [2025-01-14 11:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246073', 'tblTempUsageDetail_20' ) end [2025-01-14 11:47:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:47:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:47:35] Production.INFO: ==19536== Releasing lock... [2025-01-14 11:47:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:47:35] Production.INFO: 63.25 MB #Memory Used# [2025-01-14 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:48:05 [end_date_ymd] => 2025-01-14 11:48:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:48:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:48:26] Production.INFO: count ==4725 [2025-01-14 11:48:28] Production.ERROR: pbx CDR StartTime 2025-01-14 08:48:05 - End Time 2025-01-14 11:48:05 [2025-01-14 11:48:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246078', 'tblTempUsageDetail_20' ) start [2025-01-14 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246078', 'tblTempUsageDetail_20' ) end [2025-01-14 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246078', 'tblTempVendorCDR_20' ) start [2025-01-14 11:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246078', 'tblTempVendorCDR_20' ) end [2025-01-14 11:48:28] Production.INFO: ProcessCDR(1,14246078,1,1,2) [2025-01-14 11:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246078', 'tblTempUsageDetail_20' ) start [2025-01-14 11:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246078', 'tblTempUsageDetail_20' ) end [2025-01-14 11:48:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:48:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:48:33] Production.INFO: ==19610== Releasing lock... [2025-01-14 11:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:48:33] Production.INFO: 63.25 MB #Memory Used# [2025-01-14 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:49:05 [end_date_ymd] => 2025-01-14 11:49:05 [RateCDR] => 1 ) [2025-01-14 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:49:05' and `end` < '2025-01-14 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:49:31] Production.INFO: count ==4729 [2025-01-14 11:49:32] Production.ERROR: pbx CDR StartTime 2025-01-14 08:49:05 - End Time 2025-01-14 11:49:05 [2025-01-14 11:49:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246083', 'tblTempUsageDetail_20' ) start [2025-01-14 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246083', 'tblTempUsageDetail_20' ) end [2025-01-14 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246083', 'tblTempVendorCDR_20' ) start [2025-01-14 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246083', 'tblTempVendorCDR_20' ) end [2025-01-14 11:49:33] Production.INFO: ProcessCDR(1,14246083,1,1,2) [2025-01-14 11:49:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:49:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:49:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:49:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246083', 'tblTempUsageDetail_20' ) start [2025-01-14 11:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246083', 'tblTempUsageDetail_20' ) end [2025-01-14 11:49:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:49:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:49:37] Production.INFO: ==19686== Releasing lock... [2025-01-14 11:49:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:49:37] Production.INFO: 63.5 MB #Memory Used# [2025-01-14 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:50:05 [end_date_ymd] => 2025-01-14 11:50:05 [RateCDR] => 1 ) [2025-01-14 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:50:05' and `end` < '2025-01-14 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:50:34] Production.INFO: count ==4760 [2025-01-14 11:50:35] Production.ERROR: pbx CDR StartTime 2025-01-14 08:50:05 - End Time 2025-01-14 11:50:05 [2025-01-14 11:50:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246088', 'tblTempUsageDetail_20' ) start [2025-01-14 11:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246088', 'tblTempUsageDetail_20' ) end [2025-01-14 11:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246088', 'tblTempVendorCDR_20' ) start [2025-01-14 11:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246088', 'tblTempVendorCDR_20' ) end [2025-01-14 11:50:36] Production.INFO: ProcessCDR(1,14246088,1,1,2) [2025-01-14 11:50:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:50:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:50:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:50:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246088', 'tblTempUsageDetail_20' ) start [2025-01-14 11:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246088', 'tblTempUsageDetail_20' ) end [2025-01-14 11:50:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:50:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:50:40] Production.INFO: ==19764== Releasing lock... [2025-01-14 11:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:50:40] Production.INFO: 63.5 MB #Memory Used# [2025-01-14 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:51:05 [end_date_ymd] => 2025-01-14 11:51:05 [RateCDR] => 1 ) [2025-01-14 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:51:05' and `end` < '2025-01-14 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:51:32] Production.INFO: count ==4886 [2025-01-14 11:51:34] Production.ERROR: pbx CDR StartTime 2025-01-14 08:51:05 - End Time 2025-01-14 11:51:05 [2025-01-14 11:51:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246094', 'tblTempUsageDetail_20' ) start [2025-01-14 11:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246094', 'tblTempUsageDetail_20' ) end [2025-01-14 11:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246094', 'tblTempVendorCDR_20' ) start [2025-01-14 11:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246094', 'tblTempVendorCDR_20' ) end [2025-01-14 11:51:34] Production.INFO: ProcessCDR(1,14246094,1,1,2) [2025-01-14 11:51:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:51:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:51:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:51:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:51:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246094', 'tblTempUsageDetail_20' ) start [2025-01-14 11:51:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246094', 'tblTempUsageDetail_20' ) end [2025-01-14 11:51:39] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:51:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:51:39] Production.INFO: ==19840== Releasing lock... [2025-01-14 11:51:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:51:39] Production.INFO: 64.5 MB #Memory Used# [2025-01-14 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:52:05 [end_date_ymd] => 2025-01-14 11:52:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:52:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:52:27] Production.INFO: count ==4912 [2025-01-14 11:52:29] Production.ERROR: pbx CDR StartTime 2025-01-14 08:52:05 - End Time 2025-01-14 11:52:05 [2025-01-14 11:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246099', 'tblTempUsageDetail_20' ) start [2025-01-14 11:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246099', 'tblTempUsageDetail_20' ) end [2025-01-14 11:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246099', 'tblTempVendorCDR_20' ) start [2025-01-14 11:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246099', 'tblTempVendorCDR_20' ) end [2025-01-14 11:52:29] Production.INFO: ProcessCDR(1,14246099,1,1,2) [2025-01-14 11:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246099', 'tblTempUsageDetail_20' ) start [2025-01-14 11:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246099', 'tblTempUsageDetail_20' ) end [2025-01-14 11:52:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:52:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:52:34] Production.INFO: ==19952== Releasing lock... [2025-01-14 11:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:52:34] Production.INFO: 64.75 MB #Memory Used# [2025-01-14 11:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:53:04 [end_date_ymd] => 2025-01-14 11:53:04 [RateCDR] => 1 ) [2025-01-14 11:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:53:04' and `end` < '2025-01-14 11:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:53:24] Production.INFO: count ==4951 [2025-01-14 11:53:26] Production.ERROR: pbx CDR StartTime 2025-01-14 08:53:04 - End Time 2025-01-14 11:53:04 [2025-01-14 11:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246104', 'tblTempUsageDetail_20' ) start [2025-01-14 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246104', 'tblTempUsageDetail_20' ) end [2025-01-14 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246104', 'tblTempVendorCDR_20' ) start [2025-01-14 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246104', 'tblTempVendorCDR_20' ) end [2025-01-14 11:53:26] Production.INFO: ProcessCDR(1,14246104,1,1,2) [2025-01-14 11:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246104', 'tblTempUsageDetail_20' ) start [2025-01-14 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246104', 'tblTempUsageDetail_20' ) end [2025-01-14 11:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:53:31] Production.INFO: ==20024== Releasing lock... [2025-01-14 11:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:53:31] Production.INFO: 65 MB #Memory Used# [2025-01-14 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:54:05 [end_date_ymd] => 2025-01-14 11:54:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:54:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:54:24] Production.INFO: count ==4976 [2025-01-14 11:54:26] Production.ERROR: pbx CDR StartTime 2025-01-14 08:54:05 - End Time 2025-01-14 11:54:05 [2025-01-14 11:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246109', 'tblTempUsageDetail_20' ) start [2025-01-14 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246109', 'tblTempUsageDetail_20' ) end [2025-01-14 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246109', 'tblTempVendorCDR_20' ) start [2025-01-14 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246109', 'tblTempVendorCDR_20' ) end [2025-01-14 11:54:26] Production.INFO: ProcessCDR(1,14246109,1,1,2) [2025-01-14 11:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246109', 'tblTempUsageDetail_20' ) start [2025-01-14 11:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246109', 'tblTempUsageDetail_20' ) end [2025-01-14 11:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:54:31] Production.INFO: ==20096== Releasing lock... [2025-01-14 11:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:54:31] Production.INFO: 65.25 MB #Memory Used# [2025-01-14 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:55:06 [end_date_ymd] => 2025-01-14 11:55:06 [RateCDR] => 1 ) [2025-01-14 11:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:55:06' and `end` < '2025-01-14 11:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:55:22] Production.INFO: count ==5010 [2025-01-14 11:55:24] Production.ERROR: pbx CDR StartTime 2025-01-14 08:55:06 - End Time 2025-01-14 11:55:06 [2025-01-14 11:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246114', 'tblTempUsageDetail_20' ) start [2025-01-14 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246114', 'tblTempUsageDetail_20' ) end [2025-01-14 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246114', 'tblTempVendorCDR_20' ) start [2025-01-14 11:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246114', 'tblTempVendorCDR_20' ) end [2025-01-14 11:55:24] Production.INFO: ProcessCDR(1,14246114,1,1,2) [2025-01-14 11:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246114', 'tblTempUsageDetail_20' ) start [2025-01-14 11:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246114', 'tblTempUsageDetail_20' ) end [2025-01-14 11:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:55:29] Production.INFO: ==20175== Releasing lock... [2025-01-14 11:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:55:29] Production.INFO: 65.5 MB #Memory Used# [2025-01-14 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:56:05 [end_date_ymd] => 2025-01-14 11:56:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 08:56:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 11:56:25] Production.INFO: count ==5024 [2025-01-14 11:56:27] Production.ERROR: pbx CDR StartTime 2025-01-14 08:56:05 - End Time 2025-01-14 11:56:05 [2025-01-14 11:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246119', 'tblTempUsageDetail_20' ) start [2025-01-14 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246119', 'tblTempUsageDetail_20' ) end [2025-01-14 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246119', 'tblTempVendorCDR_20' ) start [2025-01-14 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246119', 'tblTempVendorCDR_20' ) end [2025-01-14 11:56:27] Production.INFO: ProcessCDR(1,14246119,1,1,2) [2025-01-14 11:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246119', 'tblTempUsageDetail_20' ) start [2025-01-14 11:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246119', 'tblTempUsageDetail_20' ) end [2025-01-14 11:56:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:56:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:56:32] Production.INFO: ==20252== Releasing lock... [2025-01-14 11:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:56:32] Production.INFO: 65.5 MB #Memory Used# [2025-01-14 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:57:05 [end_date_ymd] => 2025-01-14 11:57:05 [RateCDR] => 1 ) [2025-01-14 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:57:05' and `end` < '2025-01-14 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:57:34] Production.INFO: count ==5045 [2025-01-14 11:57:36] Production.ERROR: pbx CDR StartTime 2025-01-14 08:57:05 - End Time 2025-01-14 11:57:05 [2025-01-14 11:57:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:57:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246124', 'tblTempUsageDetail_20' ) start [2025-01-14 11:57:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246124', 'tblTempUsageDetail_20' ) end [2025-01-14 11:57:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246124', 'tblTempVendorCDR_20' ) start [2025-01-14 11:57:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246124', 'tblTempVendorCDR_20' ) end [2025-01-14 11:57:36] Production.INFO: ProcessCDR(1,14246124,1,1,2) [2025-01-14 11:57:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:57:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:57:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:57:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:57:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246124', 'tblTempUsageDetail_20' ) start [2025-01-14 11:57:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246124', 'tblTempUsageDetail_20' ) end [2025-01-14 11:57:41] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:57:41] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:57:41] Production.INFO: ==20329== Releasing lock... [2025-01-14 11:57:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:57:41] Production.INFO: 65.75 MB #Memory Used# [2025-01-14 11:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:58:04 [end_date_ymd] => 2025-01-14 11:58:04 [RateCDR] => 1 ) [2025-01-14 11:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:58:04' and `end` < '2025-01-14 11:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:58:26] Production.INFO: count ==5079 [2025-01-14 11:58:28] Production.ERROR: pbx CDR StartTime 2025-01-14 08:58:04 - End Time 2025-01-14 11:58:04 [2025-01-14 11:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246129', 'tblTempUsageDetail_20' ) start [2025-01-14 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246129', 'tblTempUsageDetail_20' ) end [2025-01-14 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246129', 'tblTempVendorCDR_20' ) start [2025-01-14 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246129', 'tblTempVendorCDR_20' ) end [2025-01-14 11:58:29] Production.INFO: ProcessCDR(1,14246129,1,1,2) [2025-01-14 11:58:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246129', 'tblTempUsageDetail_20' ) start [2025-01-14 11:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246129', 'tblTempUsageDetail_20' ) end [2025-01-14 11:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:58:33] Production.INFO: ==20408== Releasing lock... [2025-01-14 11:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:58:33] Production.INFO: 66 MB #Memory Used# [2025-01-14 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 08:59:05 [end_date_ymd] => 2025-01-14 11:59:05 [RateCDR] => 1 ) [2025-01-14 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 08:59:05' and `end` < '2025-01-14 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 11:59:24] Production.INFO: count ==5100 [2025-01-14 11:59:26] Production.ERROR: pbx CDR StartTime 2025-01-14 08:59:05 - End Time 2025-01-14 11:59:05 [2025-01-14 11:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246134', 'tblTempUsageDetail_20' ) start [2025-01-14 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246134', 'tblTempUsageDetail_20' ) end [2025-01-14 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246134', 'tblTempVendorCDR_20' ) start [2025-01-14 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246134', 'tblTempVendorCDR_20' ) end [2025-01-14 11:59:26] Production.INFO: ProcessCDR(1,14246134,1,1,2) [2025-01-14 11:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 11:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 11:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246134', 'tblTempUsageDetail_20' ) start [2025-01-14 11:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246134', 'tblTempUsageDetail_20' ) end [2025-01-14 11:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 11:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 11:59:31] Production.INFO: ==20497== Releasing lock... [2025-01-14 11:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 11:59:31] Production.INFO: 66.25 MB #Memory Used# [2025-01-14 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:00:05 [end_date_ymd] => 2025-01-14 12:00:05 [RateCDR] => 1 ) [2025-01-14 12:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:00:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:00:28] Production.INFO: count ==5117 [2025-01-14 12:00:30] Production.ERROR: pbx CDR StartTime 2025-01-14 09:00:05 - End Time 2025-01-14 12:00:05 [2025-01-14 12:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246139', 'tblTempUsageDetail_20' ) start [2025-01-14 12:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246139', 'tblTempUsageDetail_20' ) end [2025-01-14 12:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246139', 'tblTempVendorCDR_20' ) start [2025-01-14 12:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246139', 'tblTempVendorCDR_20' ) end [2025-01-14 12:00:30] Production.INFO: ProcessCDR(1,14246139,1,1,2) [2025-01-14 12:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246139', 'tblTempUsageDetail_20' ) start [2025-01-14 12:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246139', 'tblTempUsageDetail_20' ) end [2025-01-14 12:00:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:00:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:00:35] Production.INFO: ==20587== Releasing lock... [2025-01-14 12:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:00:35] Production.INFO: 66.25 MB #Memory Used# [2025-01-14 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:01:05 [end_date_ymd] => 2025-01-14 12:01:05 [RateCDR] => 1 ) [2025-01-14 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:01:05' and `end` < '2025-01-14 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:01:26] Production.INFO: count ==5173 [2025-01-14 12:01:28] Production.ERROR: pbx CDR StartTime 2025-01-14 09:01:05 - End Time 2025-01-14 12:01:05 [2025-01-14 12:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246145', 'tblTempUsageDetail_20' ) start [2025-01-14 12:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246145', 'tblTempUsageDetail_20' ) end [2025-01-14 12:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246145', 'tblTempVendorCDR_20' ) start [2025-01-14 12:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246145', 'tblTempVendorCDR_20' ) end [2025-01-14 12:01:28] Production.INFO: ProcessCDR(1,14246145,1,1,2) [2025-01-14 12:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246145', 'tblTempUsageDetail_20' ) start [2025-01-14 12:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246145', 'tblTempUsageDetail_20' ) end [2025-01-14 12:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:01:32] Production.INFO: ==20691== Releasing lock... [2025-01-14 12:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:01:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-14 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:02:05 [end_date_ymd] => 2025-01-14 12:02:05 [RateCDR] => 1 ) [2025-01-14 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:02:05' and `end` < '2025-01-14 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:02:27] Production.INFO: count ==5169 [2025-01-14 12:02:29] Production.ERROR: pbx CDR StartTime 2025-01-14 09:02:05 - End Time 2025-01-14 12:02:05 [2025-01-14 12:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246150', 'tblTempUsageDetail_20' ) start [2025-01-14 12:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246150', 'tblTempUsageDetail_20' ) end [2025-01-14 12:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246150', 'tblTempVendorCDR_20' ) start [2025-01-14 12:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246150', 'tblTempVendorCDR_20' ) end [2025-01-14 12:02:29] Production.INFO: ProcessCDR(1,14246150,1,1,2) [2025-01-14 12:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246150', 'tblTempUsageDetail_20' ) start [2025-01-14 12:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246150', 'tblTempUsageDetail_20' ) end [2025-01-14 12:02:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:02:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:02:34] Production.INFO: ==20780== Releasing lock... [2025-01-14 12:02:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:02:34] Production.INFO: 66.75 MB #Memory Used# [2025-01-14 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:03:05 [end_date_ymd] => 2025-01-14 12:03:05 [RateCDR] => 1 ) [2025-01-14 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:03:05' and `end` < '2025-01-14 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:03:35] Production.INFO: count ==5185 [2025-01-14 12:03:37] Production.ERROR: pbx CDR StartTime 2025-01-14 09:03:05 - End Time 2025-01-14 12:03:05 [2025-01-14 12:03:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246155', 'tblTempUsageDetail_20' ) start [2025-01-14 12:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246155', 'tblTempUsageDetail_20' ) end [2025-01-14 12:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246155', 'tblTempVendorCDR_20' ) start [2025-01-14 12:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246155', 'tblTempVendorCDR_20' ) end [2025-01-14 12:03:37] Production.INFO: ProcessCDR(1,14246155,1,1,2) [2025-01-14 12:03:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:03:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:03:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:03:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:03:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246155', 'tblTempUsageDetail_20' ) start [2025-01-14 12:03:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246155', 'tblTempUsageDetail_20' ) end [2025-01-14 12:03:42] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:03:42] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:03:42] Production.INFO: ==20868== Releasing lock... [2025-01-14 12:03:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:03:42] Production.INFO: 66.75 MB #Memory Used# [2025-01-14 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:04:05 [end_date_ymd] => 2025-01-14 12:04:05 [RateCDR] => 1 ) [2025-01-14 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:04:05' and `end` < '2025-01-14 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:04:29] Production.INFO: count ==5183 [2025-01-14 12:04:31] Production.ERROR: pbx CDR StartTime 2025-01-14 09:04:05 - End Time 2025-01-14 12:04:05 [2025-01-14 12:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246160', 'tblTempUsageDetail_20' ) start [2025-01-14 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246160', 'tblTempUsageDetail_20' ) end [2025-01-14 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246160', 'tblTempVendorCDR_20' ) start [2025-01-14 12:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246160', 'tblTempVendorCDR_20' ) end [2025-01-14 12:04:31] Production.INFO: ProcessCDR(1,14246160,1,1,2) [2025-01-14 12:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246160', 'tblTempUsageDetail_20' ) start [2025-01-14 12:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246160', 'tblTempUsageDetail_20' ) end [2025-01-14 12:04:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:04:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:04:36] Production.INFO: ==20960== Releasing lock... [2025-01-14 12:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:04:36] Production.INFO: 66.75 MB #Memory Used# [2025-01-14 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:05:04 [end_date_ymd] => 2025-01-14 12:05:04 [RateCDR] => 1 ) [2025-01-14 12:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:05:04' and `end` < '2025-01-14 12:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:05:26] Production.INFO: count ==5181 [2025-01-14 12:05:28] Production.ERROR: pbx CDR StartTime 2025-01-14 09:05:04 - End Time 2025-01-14 12:05:04 [2025-01-14 12:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246165', 'tblTempUsageDetail_20' ) start [2025-01-14 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246165', 'tblTempUsageDetail_20' ) end [2025-01-14 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246165', 'tblTempVendorCDR_20' ) start [2025-01-14 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246165', 'tblTempVendorCDR_20' ) end [2025-01-14 12:05:28] Production.INFO: ProcessCDR(1,14246165,1,1,2) [2025-01-14 12:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246165', 'tblTempUsageDetail_20' ) start [2025-01-14 12:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246165', 'tblTempUsageDetail_20' ) end [2025-01-14 12:05:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:05:33] Production.INFO: ==21055== Releasing lock... [2025-01-14 12:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:05:33] Production.INFO: 66.75 MB #Memory Used# [2025-01-14 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:06:05 [end_date_ymd] => 2025-01-14 12:06:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:06:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:06:28] Production.INFO: count ==5170 [2025-01-14 12:06:30] Production.ERROR: pbx CDR StartTime 2025-01-14 09:06:05 - End Time 2025-01-14 12:06:05 [2025-01-14 12:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246170', 'tblTempUsageDetail_20' ) start [2025-01-14 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246170', 'tblTempUsageDetail_20' ) end [2025-01-14 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246170', 'tblTempVendorCDR_20' ) start [2025-01-14 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246170', 'tblTempVendorCDR_20' ) end [2025-01-14 12:06:30] Production.INFO: ProcessCDR(1,14246170,1,1,2) [2025-01-14 12:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246170', 'tblTempUsageDetail_20' ) start [2025-01-14 12:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246170', 'tblTempUsageDetail_20' ) end [2025-01-14 12:06:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:06:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:06:35] Production.INFO: ==21147== Releasing lock... [2025-01-14 12:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:06:35] Production.INFO: 66.75 MB #Memory Used# [2025-01-14 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:07:05 [end_date_ymd] => 2025-01-14 12:07:05 [RateCDR] => 1 ) [2025-01-14 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:07:05' and `end` < '2025-01-14 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:07:25] Production.INFO: count ==5207 [2025-01-14 12:07:27] Production.ERROR: pbx CDR StartTime 2025-01-14 09:07:05 - End Time 2025-01-14 12:07:05 [2025-01-14 12:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246175', 'tblTempUsageDetail_20' ) start [2025-01-14 12:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246175', 'tblTempUsageDetail_20' ) end [2025-01-14 12:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246175', 'tblTempVendorCDR_20' ) start [2025-01-14 12:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246175', 'tblTempVendorCDR_20' ) end [2025-01-14 12:07:27] Production.INFO: ProcessCDR(1,14246175,1,1,2) [2025-01-14 12:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246175', 'tblTempUsageDetail_20' ) start [2025-01-14 12:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246175', 'tblTempUsageDetail_20' ) end [2025-01-14 12:07:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:07:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:07:32] Production.INFO: ==21273== Releasing lock... [2025-01-14 12:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:07:32] Production.INFO: 67 MB #Memory Used# [2025-01-14 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:08:05 [end_date_ymd] => 2025-01-14 12:08:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:08:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:08:25] Production.INFO: count ==5212 [2025-01-14 12:08:27] Production.ERROR: pbx CDR StartTime 2025-01-14 09:08:05 - End Time 2025-01-14 12:08:05 [2025-01-14 12:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246180', 'tblTempUsageDetail_20' ) start [2025-01-14 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246180', 'tblTempUsageDetail_20' ) end [2025-01-14 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246180', 'tblTempVendorCDR_20' ) start [2025-01-14 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246180', 'tblTempVendorCDR_20' ) end [2025-01-14 12:08:27] Production.INFO: ProcessCDR(1,14246180,1,1,2) [2025-01-14 12:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246180', 'tblTempUsageDetail_20' ) start [2025-01-14 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246180', 'tblTempUsageDetail_20' ) end [2025-01-14 12:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:08:31] Production.INFO: ==21365== Releasing lock... [2025-01-14 12:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:08:31] Production.INFO: 67 MB #Memory Used# [2025-01-14 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:09:05 [end_date_ymd] => 2025-01-14 12:09:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:09:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:09:29] Production.INFO: count ==5223 [2025-01-14 12:09:31] Production.ERROR: pbx CDR StartTime 2025-01-14 09:09:05 - End Time 2025-01-14 12:09:05 [2025-01-14 12:09:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246185', 'tblTempUsageDetail_20' ) start [2025-01-14 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246185', 'tblTempUsageDetail_20' ) end [2025-01-14 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246185', 'tblTempVendorCDR_20' ) start [2025-01-14 12:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246185', 'tblTempVendorCDR_20' ) end [2025-01-14 12:09:31] Production.INFO: ProcessCDR(1,14246185,1,1,2) [2025-01-14 12:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246185', 'tblTempUsageDetail_20' ) start [2025-01-14 12:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246185', 'tblTempUsageDetail_20' ) end [2025-01-14 12:09:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:09:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:09:36] Production.INFO: ==21453== Releasing lock... [2025-01-14 12:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:09:36] Production.INFO: 67 MB #Memory Used# [2025-01-14 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:10:06 [end_date_ymd] => 2025-01-14 12:10:06 [RateCDR] => 1 ) [2025-01-14 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:10:06' and `end` < '2025-01-14 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:10:32] Production.INFO: count ==5208 [2025-01-14 12:10:34] Production.ERROR: pbx CDR StartTime 2025-01-14 09:10:06 - End Time 2025-01-14 12:10:06 [2025-01-14 12:10:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246191', 'tblTempUsageDetail_20' ) start [2025-01-14 12:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246191', 'tblTempUsageDetail_20' ) end [2025-01-14 12:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246191', 'tblTempVendorCDR_20' ) start [2025-01-14 12:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246191', 'tblTempVendorCDR_20' ) end [2025-01-14 12:10:34] Production.INFO: ProcessCDR(1,14246191,1,1,2) [2025-01-14 12:10:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:10:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:10:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:10:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246191', 'tblTempUsageDetail_20' ) start [2025-01-14 12:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246191', 'tblTempUsageDetail_20' ) end [2025-01-14 12:10:39] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:10:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:10:39] Production.INFO: ==21546== Releasing lock... [2025-01-14 12:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:10:39] Production.INFO: 67 MB #Memory Used# [2025-01-14 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:11:05 [end_date_ymd] => 2025-01-14 12:11:05 [RateCDR] => 1 ) [2025-01-14 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:11:05' and `end` < '2025-01-14 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:11:31] Production.INFO: count ==5283 [2025-01-14 12:11:33] Production.ERROR: pbx CDR StartTime 2025-01-14 09:11:05 - End Time 2025-01-14 12:11:05 [2025-01-14 12:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246196', 'tblTempUsageDetail_20' ) start [2025-01-14 12:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246196', 'tblTempUsageDetail_20' ) end [2025-01-14 12:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246196', 'tblTempVendorCDR_20' ) start [2025-01-14 12:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246196', 'tblTempVendorCDR_20' ) end [2025-01-14 12:11:33] Production.INFO: ProcessCDR(1,14246196,1,1,2) [2025-01-14 12:11:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:11:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:11:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:11:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246196', 'tblTempUsageDetail_20' ) start [2025-01-14 12:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246196', 'tblTempUsageDetail_20' ) end [2025-01-14 12:11:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:11:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:11:38] Production.INFO: ==21636== Releasing lock... [2025-01-14 12:11:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:11:38] Production.INFO: 67.5 MB #Memory Used# [2025-01-14 12:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:12:04 [end_date_ymd] => 2025-01-14 12:12:04 [RateCDR] => 1 ) [2025-01-14 12:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:12:04' and `end` < '2025-01-14 12:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:12:23] Production.INFO: count ==5280 [2025-01-14 12:12:25] Production.ERROR: pbx CDR StartTime 2025-01-14 09:12:04 - End Time 2025-01-14 12:12:04 [2025-01-14 12:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246201', 'tblTempUsageDetail_20' ) start [2025-01-14 12:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246201', 'tblTempUsageDetail_20' ) end [2025-01-14 12:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246201', 'tblTempVendorCDR_20' ) start [2025-01-14 12:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246201', 'tblTempVendorCDR_20' ) end [2025-01-14 12:12:26] Production.INFO: ProcessCDR(1,14246201,1,1,2) [2025-01-14 12:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246201', 'tblTempUsageDetail_20' ) start [2025-01-14 12:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246201', 'tblTempUsageDetail_20' ) end [2025-01-14 12:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:12:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:12:30] Production.INFO: ==21723== Releasing lock... [2025-01-14 12:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:12:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-14 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:13:05 [end_date_ymd] => 2025-01-14 12:13:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:13:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:13:20] Production.INFO: count ==5284 [2025-01-14 12:13:22] Production.ERROR: pbx CDR StartTime 2025-01-14 09:13:05 - End Time 2025-01-14 12:13:05 [2025-01-14 12:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246206', 'tblTempUsageDetail_20' ) start [2025-01-14 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246206', 'tblTempUsageDetail_20' ) end [2025-01-14 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246206', 'tblTempVendorCDR_20' ) start [2025-01-14 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246206', 'tblTempVendorCDR_20' ) end [2025-01-14 12:13:22] Production.INFO: ProcessCDR(1,14246206,1,1,2) [2025-01-14 12:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246206', 'tblTempUsageDetail_20' ) start [2025-01-14 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246206', 'tblTempUsageDetail_20' ) end [2025-01-14 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:13:27] Production.INFO: ==21813== Releasing lock... [2025-01-14 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:13:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-14 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:14:05 [end_date_ymd] => 2025-01-14 12:14:05 [RateCDR] => 1 ) [2025-01-14 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:14:05' and `end` < '2025-01-14 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:14:25] Production.INFO: count ==5279 [2025-01-14 12:14:28] Production.ERROR: pbx CDR StartTime 2025-01-14 09:14:05 - End Time 2025-01-14 12:14:05 [2025-01-14 12:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246211', 'tblTempUsageDetail_20' ) start [2025-01-14 12:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246211', 'tblTempUsageDetail_20' ) end [2025-01-14 12:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246211', 'tblTempVendorCDR_20' ) start [2025-01-14 12:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246211', 'tblTempVendorCDR_20' ) end [2025-01-14 12:14:28] Production.INFO: ProcessCDR(1,14246211,1,1,2) [2025-01-14 12:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246211', 'tblTempUsageDetail_20' ) start [2025-01-14 12:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246211', 'tblTempUsageDetail_20' ) end [2025-01-14 12:14:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:14:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:14:33] Production.INFO: ==21899== Releasing lock... [2025-01-14 12:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:14:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-14 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:15:05 [end_date_ymd] => 2025-01-14 12:15:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:15:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:15:24] Production.INFO: count ==5312 [2025-01-14 12:15:26] Production.ERROR: pbx CDR StartTime 2025-01-14 09:15:05 - End Time 2025-01-14 12:15:05 [2025-01-14 12:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246216', 'tblTempUsageDetail_20' ) start [2025-01-14 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246216', 'tblTempUsageDetail_20' ) end [2025-01-14 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246216', 'tblTempVendorCDR_20' ) start [2025-01-14 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246216', 'tblTempVendorCDR_20' ) end [2025-01-14 12:15:26] Production.INFO: ProcessCDR(1,14246216,1,1,2) [2025-01-14 12:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246216', 'tblTempUsageDetail_20' ) start [2025-01-14 12:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246216', 'tblTempUsageDetail_20' ) end [2025-01-14 12:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:15:31] Production.INFO: ==21986== Releasing lock... [2025-01-14 12:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:15:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-14 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:16:06 [end_date_ymd] => 2025-01-14 12:16:06 [RateCDR] => 1 ) [2025-01-14 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:16:06' and `end` < '2025-01-14 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:16:27] Production.INFO: count ==5325 [2025-01-14 12:16:29] Production.ERROR: pbx CDR StartTime 2025-01-14 09:16:06 - End Time 2025-01-14 12:16:06 [2025-01-14 12:16:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246221', 'tblTempUsageDetail_20' ) start [2025-01-14 12:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246221', 'tblTempUsageDetail_20' ) end [2025-01-14 12:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246221', 'tblTempVendorCDR_20' ) start [2025-01-14 12:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246221', 'tblTempVendorCDR_20' ) end [2025-01-14 12:16:29] Production.INFO: ProcessCDR(1,14246221,1,1,2) [2025-01-14 12:16:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:16:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:16:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:16:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246221', 'tblTempUsageDetail_20' ) start [2025-01-14 12:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246221', 'tblTempUsageDetail_20' ) end [2025-01-14 12:16:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:16:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:16:34] Production.INFO: ==22077== Releasing lock... [2025-01-14 12:16:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:16:34] Production.INFO: 68 MB #Memory Used# [2025-01-14 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:17:05 [end_date_ymd] => 2025-01-14 12:17:05 [RateCDR] => 1 ) [2025-01-14 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:17:05' and `end` < '2025-01-14 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:17:25] Production.INFO: count ==5356 [2025-01-14 12:17:27] Production.ERROR: pbx CDR StartTime 2025-01-14 09:17:05 - End Time 2025-01-14 12:17:05 [2025-01-14 12:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246226', 'tblTempUsageDetail_20' ) start [2025-01-14 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246226', 'tblTempUsageDetail_20' ) end [2025-01-14 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246226', 'tblTempVendorCDR_20' ) start [2025-01-14 12:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246226', 'tblTempVendorCDR_20' ) end [2025-01-14 12:17:27] Production.INFO: ProcessCDR(1,14246226,1,1,2) [2025-01-14 12:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246226', 'tblTempUsageDetail_20' ) start [2025-01-14 12:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246226', 'tblTempUsageDetail_20' ) end [2025-01-14 12:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:17:32] Production.INFO: ==22158== Releasing lock... [2025-01-14 12:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:17:32] Production.INFO: 68 MB #Memory Used# [2025-01-14 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:18:05 [end_date_ymd] => 2025-01-14 12:18:05 [RateCDR] => 1 ) [2025-01-14 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:18:05' and `end` < '2025-01-14 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:18:30] Production.INFO: count ==5374 [2025-01-14 12:18:32] Production.ERROR: pbx CDR StartTime 2025-01-14 09:18:05 - End Time 2025-01-14 12:18:05 [2025-01-14 12:18:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246231', 'tblTempUsageDetail_20' ) start [2025-01-14 12:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246231', 'tblTempUsageDetail_20' ) end [2025-01-14 12:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246231', 'tblTempVendorCDR_20' ) start [2025-01-14 12:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246231', 'tblTempVendorCDR_20' ) end [2025-01-14 12:18:32] Production.INFO: ProcessCDR(1,14246231,1,1,2) [2025-01-14 12:18:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:18:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:18:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:18:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246231', 'tblTempUsageDetail_20' ) start [2025-01-14 12:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246231', 'tblTempUsageDetail_20' ) end [2025-01-14 12:18:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:18:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:18:35] Production.INFO: ==22245== Releasing lock... [2025-01-14 12:18:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:18:35] Production.INFO: 68.25 MB #Memory Used# [2025-01-14 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:19:05 [end_date_ymd] => 2025-01-14 12:19:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:19:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:19:28] Production.INFO: count ==5372 [2025-01-14 12:19:31] Production.ERROR: pbx CDR StartTime 2025-01-14 09:19:05 - End Time 2025-01-14 12:19:05 [2025-01-14 12:19:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246236', 'tblTempUsageDetail_20' ) start [2025-01-14 12:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246236', 'tblTempUsageDetail_20' ) end [2025-01-14 12:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246236', 'tblTempVendorCDR_20' ) start [2025-01-14 12:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246236', 'tblTempVendorCDR_20' ) end [2025-01-14 12:19:31] Production.INFO: ProcessCDR(1,14246236,1,1,2) [2025-01-14 12:19:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:19:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:19:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246236', 'tblTempUsageDetail_20' ) start [2025-01-14 12:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246236', 'tblTempUsageDetail_20' ) end [2025-01-14 12:19:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:19:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:19:36] Production.INFO: ==22321== Releasing lock... [2025-01-14 12:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:19:36] Production.INFO: 68.25 MB #Memory Used# [2025-01-14 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:20:06 [end_date_ymd] => 2025-01-14 12:20:06 [RateCDR] => 1 ) [2025-01-14 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:20:06' and `end` < '2025-01-14 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:20:29] Production.INFO: count ==5382 [2025-01-14 12:20:32] Production.ERROR: pbx CDR StartTime 2025-01-14 09:20:06 - End Time 2025-01-14 12:20:06 [2025-01-14 12:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246241', 'tblTempUsageDetail_20' ) start [2025-01-14 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246241', 'tblTempUsageDetail_20' ) end [2025-01-14 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246241', 'tblTempVendorCDR_20' ) start [2025-01-14 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246241', 'tblTempVendorCDR_20' ) end [2025-01-14 12:20:32] Production.INFO: ProcessCDR(1,14246241,1,1,2) [2025-01-14 12:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246241', 'tblTempUsageDetail_20' ) start [2025-01-14 12:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246241', 'tblTempUsageDetail_20' ) end [2025-01-14 12:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:20:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:20:37] Production.INFO: ==22397== Releasing lock... [2025-01-14 12:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:20:37] Production.INFO: 68.25 MB #Memory Used# [2025-01-14 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:21:04 [end_date_ymd] => 2025-01-14 12:21:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:21:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:21:26] Production.INFO: count ==5423 [2025-01-14 12:21:28] Production.ERROR: pbx CDR StartTime 2025-01-14 09:21:04 - End Time 2025-01-14 12:21:04 [2025-01-14 12:21:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246247', 'tblTempUsageDetail_20' ) start [2025-01-14 12:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246247', 'tblTempUsageDetail_20' ) end [2025-01-14 12:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246247', 'tblTempVendorCDR_20' ) start [2025-01-14 12:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246247', 'tblTempVendorCDR_20' ) end [2025-01-14 12:21:28] Production.INFO: ProcessCDR(1,14246247,1,1,2) [2025-01-14 12:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246247', 'tblTempUsageDetail_20' ) start [2025-01-14 12:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246247', 'tblTempUsageDetail_20' ) end [2025-01-14 12:21:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:21:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:21:33] Production.INFO: ==22472== Releasing lock... [2025-01-14 12:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:21:33] Production.INFO: 68.5 MB #Memory Used# [2025-01-14 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:22:05 [end_date_ymd] => 2025-01-14 12:22:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:22:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:22:23] Production.INFO: count ==5431 [2025-01-14 12:22:25] Production.ERROR: pbx CDR StartTime 2025-01-14 09:22:05 - End Time 2025-01-14 12:22:05 [2025-01-14 12:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246252', 'tblTempUsageDetail_20' ) start [2025-01-14 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246252', 'tblTempUsageDetail_20' ) end [2025-01-14 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246252', 'tblTempVendorCDR_20' ) start [2025-01-14 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246252', 'tblTempVendorCDR_20' ) end [2025-01-14 12:22:25] Production.INFO: ProcessCDR(1,14246252,1,1,2) [2025-01-14 12:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246252', 'tblTempUsageDetail_20' ) start [2025-01-14 12:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246252', 'tblTempUsageDetail_20' ) end [2025-01-14 12:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:22:30] Production.INFO: ==22550== Releasing lock... [2025-01-14 12:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:22:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:23:05 [end_date_ymd] => 2025-01-14 12:23:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:23:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:23:20] Production.INFO: count ==5434 [2025-01-14 12:23:23] Production.ERROR: pbx CDR StartTime 2025-01-14 09:23:05 - End Time 2025-01-14 12:23:05 [2025-01-14 12:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246257', 'tblTempUsageDetail_20' ) start [2025-01-14 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246257', 'tblTempUsageDetail_20' ) end [2025-01-14 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246257', 'tblTempVendorCDR_20' ) start [2025-01-14 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246257', 'tblTempVendorCDR_20' ) end [2025-01-14 12:23:23] Production.INFO: ProcessCDR(1,14246257,1,1,2) [2025-01-14 12:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246257', 'tblTempUsageDetail_20' ) start [2025-01-14 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246257', 'tblTempUsageDetail_20' ) end [2025-01-14 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:23:27] Production.INFO: ==22660== Releasing lock... [2025-01-14 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:23:27] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:24:05 [end_date_ymd] => 2025-01-14 12:24:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:24:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:24:24] Production.INFO: count ==5419 [2025-01-14 12:24:27] Production.ERROR: pbx CDR StartTime 2025-01-14 09:24:05 - End Time 2025-01-14 12:24:05 [2025-01-14 12:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246262', 'tblTempUsageDetail_20' ) start [2025-01-14 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246262', 'tblTempUsageDetail_20' ) end [2025-01-14 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246262', 'tblTempVendorCDR_20' ) start [2025-01-14 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246262', 'tblTempVendorCDR_20' ) end [2025-01-14 12:24:27] Production.INFO: ProcessCDR(1,14246262,1,1,2) [2025-01-14 12:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246262', 'tblTempUsageDetail_20' ) start [2025-01-14 12:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246262', 'tblTempUsageDetail_20' ) end [2025-01-14 12:24:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:24:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:24:31] Production.INFO: ==22738== Releasing lock... [2025-01-14 12:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:24:31] Production.INFO: 68.5 MB #Memory Used# [2025-01-14 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:25:04 [end_date_ymd] => 2025-01-14 12:25:04 [RateCDR] => 1 ) [2025-01-14 12:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:25:04' and `end` < '2025-01-14 12:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:25:19] Production.INFO: count ==5408 [2025-01-14 12:25:21] Production.ERROR: pbx CDR StartTime 2025-01-14 09:25:04 - End Time 2025-01-14 12:25:04 [2025-01-14 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246267', 'tblTempUsageDetail_20' ) start [2025-01-14 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246267', 'tblTempUsageDetail_20' ) end [2025-01-14 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246267', 'tblTempVendorCDR_20' ) start [2025-01-14 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246267', 'tblTempVendorCDR_20' ) end [2025-01-14 12:25:22] Production.INFO: ProcessCDR(1,14246267,1,1,2) [2025-01-14 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246267', 'tblTempUsageDetail_20' ) start [2025-01-14 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246267', 'tblTempUsageDetail_20' ) end [2025-01-14 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:25:25] Production.INFO: ==22811== Releasing lock... [2025-01-14 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:25:25] Production.INFO: 68.5 MB #Memory Used# [2025-01-14 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:26:05 [end_date_ymd] => 2025-01-14 12:26:05 [RateCDR] => 1 ) [2025-01-14 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:26:05' and `end` < '2025-01-14 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:26:25] Production.INFO: count ==5425 [2025-01-14 12:26:27] Production.ERROR: pbx CDR StartTime 2025-01-14 09:26:05 - End Time 2025-01-14 12:26:05 [2025-01-14 12:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246272', 'tblTempUsageDetail_20' ) start [2025-01-14 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246272', 'tblTempUsageDetail_20' ) end [2025-01-14 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246272', 'tblTempVendorCDR_20' ) start [2025-01-14 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246272', 'tblTempVendorCDR_20' ) end [2025-01-14 12:26:27] Production.INFO: ProcessCDR(1,14246272,1,1,2) [2025-01-14 12:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246272', 'tblTempUsageDetail_20' ) start [2025-01-14 12:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246272', 'tblTempUsageDetail_20' ) end [2025-01-14 12:26:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:26:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:26:32] Production.INFO: ==22885== Releasing lock... [2025-01-14 12:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:26:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:27:05 [end_date_ymd] => 2025-01-14 12:27:05 [RateCDR] => 1 ) [2025-01-14 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:27:05' and `end` < '2025-01-14 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:27:19] Production.INFO: count ==5432 [2025-01-14 12:27:22] Production.ERROR: pbx CDR StartTime 2025-01-14 09:27:05 - End Time 2025-01-14 12:27:05 [2025-01-14 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246277', 'tblTempUsageDetail_20' ) start [2025-01-14 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246277', 'tblTempUsageDetail_20' ) end [2025-01-14 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246277', 'tblTempVendorCDR_20' ) start [2025-01-14 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246277', 'tblTempVendorCDR_20' ) end [2025-01-14 12:27:22] Production.INFO: ProcessCDR(1,14246277,1,1,2) [2025-01-14 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246277', 'tblTempUsageDetail_20' ) start [2025-01-14 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246277', 'tblTempUsageDetail_20' ) end [2025-01-14 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:27:27] Production.INFO: ==22959== Releasing lock... [2025-01-14 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:27:27] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:28:05 [end_date_ymd] => 2025-01-14 12:28:05 [RateCDR] => 1 ) [2025-01-14 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:28:05' and `end` < '2025-01-14 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:28:18] Production.INFO: count ==5445 [2025-01-14 12:28:20] Production.ERROR: pbx CDR StartTime 2025-01-14 09:28:05 - End Time 2025-01-14 12:28:05 [2025-01-14 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246282', 'tblTempUsageDetail_20' ) start [2025-01-14 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246282', 'tblTempUsageDetail_20' ) end [2025-01-14 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246282', 'tblTempVendorCDR_20' ) start [2025-01-14 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246282', 'tblTempVendorCDR_20' ) end [2025-01-14 12:28:21] Production.INFO: ProcessCDR(1,14246282,1,1,2) [2025-01-14 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246282', 'tblTempUsageDetail_20' ) start [2025-01-14 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246282', 'tblTempUsageDetail_20' ) end [2025-01-14 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:28:26] Production.INFO: ==23032== Releasing lock... [2025-01-14 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:28:26] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:29:05 [end_date_ymd] => 2025-01-14 12:29:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:29:05' and `end` < '2025-01-14 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:29:33] Production.INFO: count ==5457 [2025-01-14 12:29:35] Production.ERROR: pbx CDR StartTime 2025-01-14 09:29:05 - End Time 2025-01-14 12:29:05 [2025-01-14 12:29:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:29:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246287', 'tblTempUsageDetail_20' ) start [2025-01-14 12:29:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246287', 'tblTempUsageDetail_20' ) end [2025-01-14 12:29:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246287', 'tblTempVendorCDR_20' ) start [2025-01-14 12:29:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246287', 'tblTempVendorCDR_20' ) end [2025-01-14 12:29:35] Production.INFO: ProcessCDR(1,14246287,1,1,2) [2025-01-14 12:29:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:29:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:29:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:29:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:29:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246287', 'tblTempUsageDetail_20' ) start [2025-01-14 12:29:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246287', 'tblTempUsageDetail_20' ) end [2025-01-14 12:29:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:29:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:29:40] Production.INFO: ==23108== Releasing lock... [2025-01-14 12:29:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:29:40] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:30:06 [end_date_ymd] => 2025-01-14 12:30:06 [RateCDR] => 1 ) [2025-01-14 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:30:06' and `end` < '2025-01-14 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:30:26] Production.INFO: count ==5467 [2025-01-14 12:30:29] Production.ERROR: pbx CDR StartTime 2025-01-14 09:30:06 - End Time 2025-01-14 12:30:06 [2025-01-14 12:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246293', 'tblTempUsageDetail_20' ) start [2025-01-14 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246293', 'tblTempUsageDetail_20' ) end [2025-01-14 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246293', 'tblTempVendorCDR_20' ) start [2025-01-14 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246293', 'tblTempVendorCDR_20' ) end [2025-01-14 12:30:29] Production.INFO: ProcessCDR(1,14246293,1,1,2) [2025-01-14 12:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246293', 'tblTempUsageDetail_20' ) start [2025-01-14 12:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246293', 'tblTempUsageDetail_20' ) end [2025-01-14 12:30:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:30:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:30:34] Production.INFO: ==23189== Releasing lock... [2025-01-14 12:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:30:34] Production.INFO: 69 MB #Memory Used# [2025-01-14 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:31:05 [end_date_ymd] => 2025-01-14 12:31:05 [RateCDR] => 1 ) [2025-01-14 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:31:05' and `end` < '2025-01-14 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:31:25] Production.INFO: count ==5504 [2025-01-14 12:31:27] Production.ERROR: pbx CDR StartTime 2025-01-14 09:31:05 - End Time 2025-01-14 12:31:05 [2025-01-14 12:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246298', 'tblTempUsageDetail_20' ) start [2025-01-14 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246298', 'tblTempUsageDetail_20' ) end [2025-01-14 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246298', 'tblTempVendorCDR_20' ) start [2025-01-14 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246298', 'tblTempVendorCDR_20' ) end [2025-01-14 12:31:28] Production.INFO: ProcessCDR(1,14246298,1,1,2) [2025-01-14 12:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:31:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:31:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246298', 'tblTempUsageDetail_20' ) start [2025-01-14 12:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246298', 'tblTempUsageDetail_20' ) end [2025-01-14 12:31:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:31:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:31:32] Production.INFO: ==23271== Releasing lock... [2025-01-14 12:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:31:32] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 12:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:32:04 [end_date_ymd] => 2025-01-14 12:32:04 [RateCDR] => 1 ) [2025-01-14 12:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:32:04' and `end` < '2025-01-14 12:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:32:18] Production.INFO: count ==5503 [2025-01-14 12:32:20] Production.ERROR: pbx CDR StartTime 2025-01-14 09:32:04 - End Time 2025-01-14 12:32:04 [2025-01-14 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246303', 'tblTempUsageDetail_20' ) start [2025-01-14 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246303', 'tblTempUsageDetail_20' ) end [2025-01-14 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246303', 'tblTempVendorCDR_20' ) start [2025-01-14 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246303', 'tblTempVendorCDR_20' ) end [2025-01-14 12:32:20] Production.INFO: ProcessCDR(1,14246303,1,1,2) [2025-01-14 12:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246303', 'tblTempUsageDetail_20' ) start [2025-01-14 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246303', 'tblTempUsageDetail_20' ) end [2025-01-14 12:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:32:25] Production.INFO: ==23341== Releasing lock... [2025-01-14 12:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:32:25] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:33:05 [end_date_ymd] => 2025-01-14 12:33:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:33:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:33:23] Production.INFO: count ==5496 [2025-01-14 12:33:25] Production.ERROR: pbx CDR StartTime 2025-01-14 09:33:05 - End Time 2025-01-14 12:33:05 [2025-01-14 12:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246308', 'tblTempUsageDetail_20' ) start [2025-01-14 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246308', 'tblTempUsageDetail_20' ) end [2025-01-14 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246308', 'tblTempVendorCDR_20' ) start [2025-01-14 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246308', 'tblTempVendorCDR_20' ) end [2025-01-14 12:33:25] Production.INFO: ProcessCDR(1,14246308,1,1,2) [2025-01-14 12:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246308', 'tblTempUsageDetail_20' ) start [2025-01-14 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246308', 'tblTempUsageDetail_20' ) end [2025-01-14 12:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:33:30] Production.INFO: ==23418== Releasing lock... [2025-01-14 12:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:33:30] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:34:05 [end_date_ymd] => 2025-01-14 12:34:05 [RateCDR] => 1 ) [2025-01-14 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:34:05' and `end` < '2025-01-14 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:34:34] Production.INFO: count ==5472 [2025-01-14 12:34:36] Production.ERROR: pbx CDR StartTime 2025-01-14 09:34:05 - End Time 2025-01-14 12:34:05 [2025-01-14 12:34:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246313', 'tblTempUsageDetail_20' ) start [2025-01-14 12:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246313', 'tblTempUsageDetail_20' ) end [2025-01-14 12:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246313', 'tblTempVendorCDR_20' ) start [2025-01-14 12:34:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246313', 'tblTempVendorCDR_20' ) end [2025-01-14 12:34:36] Production.INFO: ProcessCDR(1,14246313,1,1,2) [2025-01-14 12:34:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:34:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:34:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:34:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:34:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246313', 'tblTempUsageDetail_20' ) start [2025-01-14 12:34:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246313', 'tblTempUsageDetail_20' ) end [2025-01-14 12:34:41] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:34:41] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:34:41] Production.INFO: ==23491== Releasing lock... [2025-01-14 12:34:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:34:41] Production.INFO: 69 MB #Memory Used# [2025-01-14 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:35:05 [end_date_ymd] => 2025-01-14 12:35:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:35:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:35:36] Production.INFO: count ==5485 [2025-01-14 12:35:38] Production.ERROR: pbx CDR StartTime 2025-01-14 09:35:05 - End Time 2025-01-14 12:35:05 [2025-01-14 12:35:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246318', 'tblTempUsageDetail_20' ) start [2025-01-14 12:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246318', 'tblTempUsageDetail_20' ) end [2025-01-14 12:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246318', 'tblTempVendorCDR_20' ) start [2025-01-14 12:35:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246318', 'tblTempVendorCDR_20' ) end [2025-01-14 12:35:38] Production.INFO: ProcessCDR(1,14246318,1,1,2) [2025-01-14 12:35:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:35:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:35:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:35:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:35:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246318', 'tblTempUsageDetail_20' ) start [2025-01-14 12:35:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246318', 'tblTempUsageDetail_20' ) end [2025-01-14 12:35:43] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:35:43] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:35:43] Production.INFO: ==23564== Releasing lock... [2025-01-14 12:35:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:35:43] Production.INFO: 69 MB #Memory Used# [2025-01-14 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:36:05 [end_date_ymd] => 2025-01-14 12:36:05 [RateCDR] => 1 ) [2025-01-14 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:36:05' and `end` < '2025-01-14 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:36:29] Production.INFO: count ==5499 [2025-01-14 12:36:31] Production.ERROR: pbx CDR StartTime 2025-01-14 09:36:05 - End Time 2025-01-14 12:36:05 [2025-01-14 12:36:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:36:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246323', 'tblTempUsageDetail_20' ) start [2025-01-14 12:36:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246323', 'tblTempUsageDetail_20' ) end [2025-01-14 12:36:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246323', 'tblTempVendorCDR_20' ) start [2025-01-14 12:36:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246323', 'tblTempVendorCDR_20' ) end [2025-01-14 12:36:31] Production.INFO: ProcessCDR(1,14246323,1,1,2) [2025-01-14 12:36:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:36:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:36:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:36:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:36:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246323', 'tblTempUsageDetail_20' ) start [2025-01-14 12:36:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246323', 'tblTempUsageDetail_20' ) end [2025-01-14 12:36:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:36:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:36:36] Production.INFO: ==23634== Releasing lock... [2025-01-14 12:36:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:36:36] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:37:04 [end_date_ymd] => 2025-01-14 12:37:04 [RateCDR] => 1 ) [2025-01-14 12:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:37:04' and `end` < '2025-01-14 12:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:37:29] Production.INFO: count ==5507 [2025-01-14 12:37:32] Production.ERROR: pbx CDR StartTime 2025-01-14 09:37:04 - End Time 2025-01-14 12:37:04 [2025-01-14 12:37:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246328', 'tblTempUsageDetail_20' ) start [2025-01-14 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246328', 'tblTempUsageDetail_20' ) end [2025-01-14 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246328', 'tblTempVendorCDR_20' ) start [2025-01-14 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246328', 'tblTempVendorCDR_20' ) end [2025-01-14 12:37:32] Production.INFO: ProcessCDR(1,14246328,1,1,2) [2025-01-14 12:37:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:37:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:37:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:37:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:37:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246328', 'tblTempUsageDetail_20' ) start [2025-01-14 12:37:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246328', 'tblTempUsageDetail_20' ) end [2025-01-14 12:37:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:37:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:37:37] Production.INFO: ==23770== Releasing lock... [2025-01-14 12:37:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:37:37] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:38:05 [end_date_ymd] => 2025-01-14 12:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:38:24] Production.INFO: count ==5505 [2025-01-14 12:38:26] Production.ERROR: pbx CDR StartTime 2025-01-14 09:38:05 - End Time 2025-01-14 12:38:05 [2025-01-14 12:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246333', 'tblTempUsageDetail_20' ) start [2025-01-14 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246333', 'tblTempUsageDetail_20' ) end [2025-01-14 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246333', 'tblTempVendorCDR_20' ) start [2025-01-14 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246333', 'tblTempVendorCDR_20' ) end [2025-01-14 12:38:26] Production.INFO: ProcessCDR(1,14246333,1,1,2) [2025-01-14 12:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246333', 'tblTempUsageDetail_20' ) start [2025-01-14 12:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246333', 'tblTempUsageDetail_20' ) end [2025-01-14 12:38:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:38:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:38:31] Production.INFO: ==23882== Releasing lock... [2025-01-14 12:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:38:31] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 12:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:39:04 [end_date_ymd] => 2025-01-14 12:39:04 [RateCDR] => 1 ) [2025-01-14 12: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` >= '2025-01-14 09:39:04' and `end` < '2025-01-14 12: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 ,'') [2025-01-14 12:39:21] Production.INFO: count ==5504 [2025-01-14 12:39:23] Production.ERROR: pbx CDR StartTime 2025-01-14 09:39:04 - End Time 2025-01-14 12:39:04 [2025-01-14 12:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246338', 'tblTempUsageDetail_20' ) start [2025-01-14 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246338', 'tblTempUsageDetail_20' ) end [2025-01-14 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246338', 'tblTempVendorCDR_20' ) start [2025-01-14 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246338', 'tblTempVendorCDR_20' ) end [2025-01-14 12:39:23] Production.INFO: ProcessCDR(1,14246338,1,1,2) [2025-01-14 12:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246338', 'tblTempUsageDetail_20' ) start [2025-01-14 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246338', 'tblTempUsageDetail_20' ) end [2025-01-14 12:39:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:39:28] Production.INFO: ==23955== Releasing lock... [2025-01-14 12:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:39:28] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:40:05 [end_date_ymd] => 2025-01-14 12:40:05 [RateCDR] => 1 ) [2025-01-14 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:40:05' and `end` < '2025-01-14 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:40:24] Production.INFO: count ==5521 [2025-01-14 12:40:26] Production.ERROR: pbx CDR StartTime 2025-01-14 09:40:05 - End Time 2025-01-14 12:40:05 [2025-01-14 12:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246344', 'tblTempUsageDetail_20' ) start [2025-01-14 12:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246344', 'tblTempUsageDetail_20' ) end [2025-01-14 12:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246344', 'tblTempVendorCDR_20' ) start [2025-01-14 12:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246344', 'tblTempVendorCDR_20' ) end [2025-01-14 12:40:26] Production.INFO: ProcessCDR(1,14246344,1,1,2) [2025-01-14 12:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246344', 'tblTempUsageDetail_20' ) start [2025-01-14 12:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246344', 'tblTempUsageDetail_20' ) end [2025-01-14 12:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:40:31] Production.INFO: ==24063== Releasing lock... [2025-01-14 12:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:40:31] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:41:05 [end_date_ymd] => 2025-01-14 12:41:05 [RateCDR] => 1 ) [2025-01-14 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:41:05' and `end` < '2025-01-14 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:41:22] Production.INFO: count ==5532 [2025-01-14 12:41:24] Production.ERROR: pbx CDR StartTime 2025-01-14 09:41:05 - End Time 2025-01-14 12:41:05 [2025-01-14 12:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246349', 'tblTempUsageDetail_20' ) start [2025-01-14 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246349', 'tblTempUsageDetail_20' ) end [2025-01-14 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246349', 'tblTempVendorCDR_20' ) start [2025-01-14 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246349', 'tblTempVendorCDR_20' ) end [2025-01-14 12:41:24] Production.INFO: ProcessCDR(1,14246349,1,1,2) [2025-01-14 12:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246349', 'tblTempUsageDetail_20' ) start [2025-01-14 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246349', 'tblTempUsageDetail_20' ) end [2025-01-14 12:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:41:28] Production.INFO: ==24138== Releasing lock... [2025-01-14 12:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:41:28] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:42:05 [end_date_ymd] => 2025-01-14 12:42:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:42:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:42:29] Production.INFO: count ==5540 [2025-01-14 12:42:31] Production.ERROR: pbx CDR StartTime 2025-01-14 09:42:05 - End Time 2025-01-14 12:42:05 [2025-01-14 12:42:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246354', 'tblTempUsageDetail_20' ) start [2025-01-14 12:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246354', 'tblTempUsageDetail_20' ) end [2025-01-14 12:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246354', 'tblTempVendorCDR_20' ) start [2025-01-14 12:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246354', 'tblTempVendorCDR_20' ) end [2025-01-14 12:42:31] Production.INFO: ProcessCDR(1,14246354,1,1,2) [2025-01-14 12:42:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:42:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:42:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:42:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:42:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246354', 'tblTempUsageDetail_20' ) start [2025-01-14 12:42:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246354', 'tblTempUsageDetail_20' ) end [2025-01-14 12:42:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:42:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:42:36] Production.INFO: ==24212== Releasing lock... [2025-01-14 12:42:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:42:36] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:43:05 [end_date_ymd] => 2025-01-14 12:43:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:43:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:43:30] Production.INFO: count ==5558 [2025-01-14 12:43:33] Production.ERROR: pbx CDR StartTime 2025-01-14 09:43:05 - End Time 2025-01-14 12:43:05 [2025-01-14 12:43:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246359', 'tblTempUsageDetail_20' ) start [2025-01-14 12:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246359', 'tblTempUsageDetail_20' ) end [2025-01-14 12:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246359', 'tblTempVendorCDR_20' ) start [2025-01-14 12:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246359', 'tblTempVendorCDR_20' ) end [2025-01-14 12:43:33] Production.INFO: ProcessCDR(1,14246359,1,1,2) [2025-01-14 12:43:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:43:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:43:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:43:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246359', 'tblTempUsageDetail_20' ) start [2025-01-14 12:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246359', 'tblTempUsageDetail_20' ) end [2025-01-14 12:43:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:43:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:43:38] Production.INFO: ==24284== Releasing lock... [2025-01-14 12:43:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:43:38] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:44:05 [end_date_ymd] => 2025-01-14 12:44:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:44:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:44:22] Production.INFO: count ==5550 [2025-01-14 12:44:25] Production.ERROR: pbx CDR StartTime 2025-01-14 09:44:05 - End Time 2025-01-14 12:44:05 [2025-01-14 12:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246364', 'tblTempUsageDetail_20' ) start [2025-01-14 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246364', 'tblTempUsageDetail_20' ) end [2025-01-14 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246364', 'tblTempVendorCDR_20' ) start [2025-01-14 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246364', 'tblTempVendorCDR_20' ) end [2025-01-14 12:44:25] Production.INFO: ProcessCDR(1,14246364,1,1,2) [2025-01-14 12:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246364', 'tblTempUsageDetail_20' ) start [2025-01-14 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246364', 'tblTempUsageDetail_20' ) end [2025-01-14 12:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:44:29] Production.INFO: ==24357== Releasing lock... [2025-01-14 12:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:44:29] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:45:06 [end_date_ymd] => 2025-01-14 12:45:06 [RateCDR] => 1 ) [2025-01-14 12:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:45:06' and `end` < '2025-01-14 12:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:45:25] Production.INFO: count ==5553 [2025-01-14 12:45:28] Production.ERROR: pbx CDR StartTime 2025-01-14 09:45:06 - End Time 2025-01-14 12:45:06 [2025-01-14 12:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246369', 'tblTempUsageDetail_20' ) start [2025-01-14 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246369', 'tblTempUsageDetail_20' ) end [2025-01-14 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246369', 'tblTempVendorCDR_20' ) start [2025-01-14 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246369', 'tblTempVendorCDR_20' ) end [2025-01-14 12:45:28] Production.INFO: ProcessCDR(1,14246369,1,1,2) [2025-01-14 12:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246369', 'tblTempUsageDetail_20' ) start [2025-01-14 12:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246369', 'tblTempUsageDetail_20' ) end [2025-01-14 12:45:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:45:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:45:33] Production.INFO: ==24427== Releasing lock... [2025-01-14 12:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:45:33] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:46:05 [end_date_ymd] => 2025-01-14 12:46:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:46:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:46:26] Production.INFO: count ==5558 [2025-01-14 12:46:28] Production.ERROR: pbx CDR StartTime 2025-01-14 09:46:05 - End Time 2025-01-14 12:46:05 [2025-01-14 12:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246374', 'tblTempUsageDetail_20' ) start [2025-01-14 12:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246374', 'tblTempUsageDetail_20' ) end [2025-01-14 12:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246374', 'tblTempVendorCDR_20' ) start [2025-01-14 12:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246374', 'tblTempVendorCDR_20' ) end [2025-01-14 12:46:28] Production.INFO: ProcessCDR(1,14246374,1,1,2) [2025-01-14 12:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246374', 'tblTempUsageDetail_20' ) start [2025-01-14 12:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246374', 'tblTempUsageDetail_20' ) end [2025-01-14 12:46:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:46:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:46:33] Production.INFO: ==24501== Releasing lock... [2025-01-14 12:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:46:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:47:05 [end_date_ymd] => 2025-01-14 12:47:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:47:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:47:23] Production.INFO: count ==5545 [2025-01-14 12:47:25] Production.ERROR: pbx CDR StartTime 2025-01-14 09:47:05 - End Time 2025-01-14 12:47:05 [2025-01-14 12:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246379', 'tblTempUsageDetail_20' ) start [2025-01-14 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246379', 'tblTempUsageDetail_20' ) end [2025-01-14 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246379', 'tblTempVendorCDR_20' ) start [2025-01-14 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246379', 'tblTempVendorCDR_20' ) end [2025-01-14 12:47:25] Production.INFO: ProcessCDR(1,14246379,1,1,2) [2025-01-14 12:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246379', 'tblTempUsageDetail_20' ) start [2025-01-14 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246379', 'tblTempUsageDetail_20' ) end [2025-01-14 12:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:47:29] Production.INFO: ==24574== Releasing lock... [2025-01-14 12:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:47:29] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:48:05 [end_date_ymd] => 2025-01-14 12:48:05 [RateCDR] => 1 ) [2025-01-14 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:48:05' and `end` < '2025-01-14 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:48:18] Production.INFO: count ==5543 [2025-01-14 12:48:20] Production.ERROR: pbx CDR StartTime 2025-01-14 09:48:05 - End Time 2025-01-14 12:48:05 [2025-01-14 12:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246384', 'tblTempUsageDetail_20' ) start [2025-01-14 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246384', 'tblTempUsageDetail_20' ) end [2025-01-14 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246384', 'tblTempVendorCDR_20' ) start [2025-01-14 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246384', 'tblTempVendorCDR_20' ) end [2025-01-14 12:48:20] Production.INFO: ProcessCDR(1,14246384,1,1,2) [2025-01-14 12:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246384', 'tblTempUsageDetail_20' ) start [2025-01-14 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246384', 'tblTempUsageDetail_20' ) end [2025-01-14 12:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:48:25] Production.INFO: ==24646== Releasing lock... [2025-01-14 12:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:48:25] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:49:05 [end_date_ymd] => 2025-01-14 12:49:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:49:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:49:37] Production.INFO: count ==5567 [2025-01-14 12:49:39] Production.ERROR: pbx CDR StartTime 2025-01-14 09:49:05 - End Time 2025-01-14 12:49:05 [2025-01-14 12:49:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246389', 'tblTempUsageDetail_20' ) start [2025-01-14 12:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246389', 'tblTempUsageDetail_20' ) end [2025-01-14 12:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246389', 'tblTempVendorCDR_20' ) start [2025-01-14 12:49:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246389', 'tblTempVendorCDR_20' ) end [2025-01-14 12:49:39] Production.INFO: ProcessCDR(1,14246389,1,1,2) [2025-01-14 12:49:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:49:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:49:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:49:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:49:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246389', 'tblTempUsageDetail_20' ) start [2025-01-14 12:49:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246389', 'tblTempUsageDetail_20' ) end [2025-01-14 12:49:44] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:49:44] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:49:44] Production.INFO: ==24721== Releasing lock... [2025-01-14 12:49:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:49:44] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:50:05 [end_date_ymd] => 2025-01-14 12:50:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:50:05' and `end` < '2025-01-14 12:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:50:39] Production.INFO: count ==5563 [2025-01-14 12:50:41] Production.ERROR: pbx CDR StartTime 2025-01-14 09:50:05 - End Time 2025-01-14 12:50:05 [2025-01-14 12:50:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:50:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246395', 'tblTempUsageDetail_20' ) start [2025-01-14 12:50:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246395', 'tblTempUsageDetail_20' ) end [2025-01-14 12:50:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246395', 'tblTempVendorCDR_20' ) start [2025-01-14 12:50:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246395', 'tblTempVendorCDR_20' ) end [2025-01-14 12:50:42] Production.INFO: ProcessCDR(1,14246395,1,1,2) [2025-01-14 12:50:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:50:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:50:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:50:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:50:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246395', 'tblTempUsageDetail_20' ) start [2025-01-14 12:50:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246395', 'tblTempUsageDetail_20' ) end [2025-01-14 12:50:46] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:50:46] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:50:46] Production.INFO: ==24794== Releasing lock... [2025-01-14 12:50:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:50:46] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:51:05 [end_date_ymd] => 2025-01-14 12:51:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:51:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:51:34] Production.INFO: count ==5559 [2025-01-14 12:51:36] Production.ERROR: pbx CDR StartTime 2025-01-14 09:51:05 - End Time 2025-01-14 12:51:05 [2025-01-14 12:51:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:51:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246400', 'tblTempUsageDetail_20' ) start [2025-01-14 12:51:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246400', 'tblTempUsageDetail_20' ) end [2025-01-14 12:51:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246400', 'tblTempVendorCDR_20' ) start [2025-01-14 12:51:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246400', 'tblTempVendorCDR_20' ) end [2025-01-14 12:51:36] Production.INFO: ProcessCDR(1,14246400,1,1,2) [2025-01-14 12:51:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:51:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:51:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:51:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:51:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246400', 'tblTempUsageDetail_20' ) start [2025-01-14 12:51:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246400', 'tblTempUsageDetail_20' ) end [2025-01-14 12:51:41] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:51:41] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:51:41] Production.INFO: ==24871== Releasing lock... [2025-01-14 12:51:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:51:41] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 12:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:52:04 [end_date_ymd] => 2025-01-14 12:52:04 [RateCDR] => 1 ) [2025-01-14 12: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` >= '2025-01-14 09:52:04' and `end` < '2025-01-14 12: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 ,'') [2025-01-14 12:52:31] Production.INFO: count ==5546 [2025-01-14 12:52:33] Production.ERROR: pbx CDR StartTime 2025-01-14 09:52:04 - End Time 2025-01-14 12:52:04 [2025-01-14 12:52:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246405', 'tblTempUsageDetail_20' ) start [2025-01-14 12:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246405', 'tblTempUsageDetail_20' ) end [2025-01-14 12:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246405', 'tblTempVendorCDR_20' ) start [2025-01-14 12:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246405', 'tblTempVendorCDR_20' ) end [2025-01-14 12:52:33] Production.INFO: ProcessCDR(1,14246405,1,1,2) [2025-01-14 12:52:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:52:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:52:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:52:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:52:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246405', 'tblTempUsageDetail_20' ) start [2025-01-14 12:52:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246405', 'tblTempUsageDetail_20' ) end [2025-01-14 12:52:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:52:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:52:38] Production.INFO: ==24942== Releasing lock... [2025-01-14 12:52:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:52:38] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:53:04 [end_date_ymd] => 2025-01-14 12:53:04 [RateCDR] => 1 ) [2025-01-14 12:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:53:04' and `end` < '2025-01-14 12:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:53:24] Production.INFO: count ==5538 [2025-01-14 12:53:26] Production.ERROR: pbx CDR StartTime 2025-01-14 09:53:04 - End Time 2025-01-14 12:53:04 [2025-01-14 12:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246410', 'tblTempUsageDetail_20' ) start [2025-01-14 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246410', 'tblTempUsageDetail_20' ) end [2025-01-14 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246410', 'tblTempVendorCDR_20' ) start [2025-01-14 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246410', 'tblTempVendorCDR_20' ) end [2025-01-14 12:53:26] Production.INFO: ProcessCDR(1,14246410,1,1,2) [2025-01-14 12:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246410', 'tblTempUsageDetail_20' ) start [2025-01-14 12:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246410', 'tblTempUsageDetail_20' ) end [2025-01-14 12:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:53:31] Production.INFO: ==25012== Releasing lock... [2025-01-14 12:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:53:31] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:54:05 [end_date_ymd] => 2025-01-14 12:54:05 [RateCDR] => 1 ) [2025-01-14 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:54:05' and `end` < '2025-01-14 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:54:19] Production.INFO: count ==5539 [2025-01-14 12:54:21] Production.ERROR: pbx CDR StartTime 2025-01-14 09:54:05 - End Time 2025-01-14 12:54:05 [2025-01-14 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246415', 'tblTempUsageDetail_20' ) start [2025-01-14 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246415', 'tblTempUsageDetail_20' ) end [2025-01-14 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246415', 'tblTempVendorCDR_20' ) start [2025-01-14 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246415', 'tblTempVendorCDR_20' ) end [2025-01-14 12:54:21] Production.INFO: ProcessCDR(1,14246415,1,1,2) [2025-01-14 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246415', 'tblTempUsageDetail_20' ) start [2025-01-14 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246415', 'tblTempUsageDetail_20' ) end [2025-01-14 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:54:26] Production.INFO: ==25142== Releasing lock... [2025-01-14 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:54:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:55:06 [end_date_ymd] => 2025-01-14 12:55:06 [RateCDR] => 1 ) [2025-01-14 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:55:06' and `end` < '2025-01-14 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:55:24] Production.INFO: count ==5548 [2025-01-14 12:55:27] Production.ERROR: pbx CDR StartTime 2025-01-14 09:55:06 - End Time 2025-01-14 12:55:06 [2025-01-14 12:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246420', 'tblTempUsageDetail_20' ) start [2025-01-14 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246420', 'tblTempUsageDetail_20' ) end [2025-01-14 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246420', 'tblTempVendorCDR_20' ) start [2025-01-14 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246420', 'tblTempVendorCDR_20' ) end [2025-01-14 12:55:27] Production.INFO: ProcessCDR(1,14246420,1,1,2) [2025-01-14 12:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246420', 'tblTempUsageDetail_20' ) start [2025-01-14 12:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246420', 'tblTempUsageDetail_20' ) end [2025-01-14 12:55:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:55:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:55:33] Production.INFO: ==25216== Releasing lock... [2025-01-14 12:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:55:33] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:56:05 [end_date_ymd] => 2025-01-14 12:56:05 [RateCDR] => 1 ) [2025-01-14 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:56:05' and `end` < '2025-01-14 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:56:22] Production.INFO: count ==5567 [2025-01-14 12:56:24] Production.ERROR: pbx CDR StartTime 2025-01-14 09:56:05 - End Time 2025-01-14 12:56:05 [2025-01-14 12:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246425', 'tblTempUsageDetail_20' ) start [2025-01-14 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246425', 'tblTempUsageDetail_20' ) end [2025-01-14 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246425', 'tblTempVendorCDR_20' ) start [2025-01-14 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246425', 'tblTempVendorCDR_20' ) end [2025-01-14 12:56:24] Production.INFO: ProcessCDR(1,14246425,1,1,2) [2025-01-14 12:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246425', 'tblTempUsageDetail_20' ) start [2025-01-14 12:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246425', 'tblTempUsageDetail_20' ) end [2025-01-14 12:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:56:29] Production.INFO: ==25289== Releasing lock... [2025-01-14 12:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:56:29] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:57:05 [end_date_ymd] => 2025-01-14 12:57:05 [RateCDR] => 1 ) [2025-01-14 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:57:05' and `end` < '2025-01-14 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:57:19] Production.INFO: count ==5547 [2025-01-14 12:57:21] Production.ERROR: pbx CDR StartTime 2025-01-14 09:57:05 - End Time 2025-01-14 12:57:05 [2025-01-14 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246430', 'tblTempUsageDetail_20' ) start [2025-01-14 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246430', 'tblTempUsageDetail_20' ) end [2025-01-14 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246430', 'tblTempVendorCDR_20' ) start [2025-01-14 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246430', 'tblTempVendorCDR_20' ) end [2025-01-14 12:57:21] Production.INFO: ProcessCDR(1,14246430,1,1,2) [2025-01-14 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246430', 'tblTempUsageDetail_20' ) start [2025-01-14 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246430', 'tblTempUsageDetail_20' ) end [2025-01-14 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:57:26] Production.INFO: ==25360== Releasing lock... [2025-01-14 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:57:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:58:05 [end_date_ymd] => 2025-01-14 12:58:05 [RateCDR] => 1 ) [2025-01-14 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 09:58:05' and `end` < '2025-01-14 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 12:58:21] Production.INFO: count ==5561 [2025-01-14 12:58:24] Production.ERROR: pbx CDR StartTime 2025-01-14 09:58:05 - End Time 2025-01-14 12:58:05 [2025-01-14 12:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246435', 'tblTempUsageDetail_20' ) start [2025-01-14 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246435', 'tblTempUsageDetail_20' ) end [2025-01-14 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246435', 'tblTempVendorCDR_20' ) start [2025-01-14 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246435', 'tblTempVendorCDR_20' ) end [2025-01-14 12:58:24] Production.INFO: ProcessCDR(1,14246435,1,1,2) [2025-01-14 12:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246435', 'tblTempUsageDetail_20' ) start [2025-01-14 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246435', 'tblTempUsageDetail_20' ) end [2025-01-14 12:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:58:29] Production.INFO: ==25433== Releasing lock... [2025-01-14 12:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:58:29] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 09:59:05 [end_date_ymd] => 2025-01-14 12:59:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 09:59:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 12:59:26] Production.INFO: count ==5567 [2025-01-14 12:59:28] Production.ERROR: pbx CDR StartTime 2025-01-14 09:59:05 - End Time 2025-01-14 12:59:05 [2025-01-14 12:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 12:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246440', 'tblTempUsageDetail_20' ) start [2025-01-14 12:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246440', 'tblTempUsageDetail_20' ) end [2025-01-14 12:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246440', 'tblTempVendorCDR_20' ) start [2025-01-14 12:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246440', 'tblTempVendorCDR_20' ) end [2025-01-14 12:59:29] Production.INFO: ProcessCDR(1,14246440,1,1,2) [2025-01-14 12:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 12:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 12:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246440', 'tblTempUsageDetail_20' ) start [2025-01-14 12:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246440', 'tblTempUsageDetail_20' ) end [2025-01-14 12:59:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 12:59:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 12:59:33] Production.INFO: ==25505== Releasing lock... [2025-01-14 12:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 12:59:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:00:06 [end_date_ymd] => 2025-01-14 13:00:06 [RateCDR] => 1 ) [2025-01-14 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:00:06' and `end` < '2025-01-14 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:00:27] Production.INFO: count ==5565 [2025-01-14 13:00:30] Production.ERROR: pbx CDR StartTime 2025-01-14 10:00:06 - End Time 2025-01-14 13:00:06 [2025-01-14 13:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246444', 'tblTempUsageDetail_20' ) start [2025-01-14 13:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246444', 'tblTempUsageDetail_20' ) end [2025-01-14 13:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246444', 'tblTempVendorCDR_20' ) start [2025-01-14 13:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246444', 'tblTempVendorCDR_20' ) end [2025-01-14 13:00:30] Production.INFO: ProcessCDR(1,14246444,1,1,2) [2025-01-14 13:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246444', 'tblTempUsageDetail_20' ) start [2025-01-14 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246444', 'tblTempUsageDetail_20' ) end [2025-01-14 13:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:00:34] Production.INFO: ==25581== Releasing lock... [2025-01-14 13:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:00:34] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:01:04 [end_date_ymd] => 2025-01-14 13:01:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:01:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:01:25] Production.INFO: count ==5619 [2025-01-14 13:01:27] Production.ERROR: pbx CDR StartTime 2025-01-14 10:01:04 - End Time 2025-01-14 13:01:04 [2025-01-14 13:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246451', 'tblTempUsageDetail_20' ) start [2025-01-14 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246451', 'tblTempUsageDetail_20' ) end [2025-01-14 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246451', 'tblTempVendorCDR_20' ) start [2025-01-14 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246451', 'tblTempVendorCDR_20' ) end [2025-01-14 13:01:27] Production.INFO: ProcessCDR(1,14246451,1,1,2) [2025-01-14 13:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246451', 'tblTempUsageDetail_20' ) start [2025-01-14 13:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246451', 'tblTempUsageDetail_20' ) end [2025-01-14 13:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:01:32] Production.INFO: ==25667== Releasing lock... [2025-01-14 13:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:01:32] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:02:05 [end_date_ymd] => 2025-01-14 13:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:02:19] Production.INFO: count ==5634 [2025-01-14 13:02:21] Production.ERROR: pbx CDR StartTime 2025-01-14 10:02:05 - End Time 2025-01-14 13:02:05 [2025-01-14 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246456', 'tblTempUsageDetail_20' ) start [2025-01-14 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246456', 'tblTempUsageDetail_20' ) end [2025-01-14 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246456', 'tblTempVendorCDR_20' ) start [2025-01-14 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246456', 'tblTempVendorCDR_20' ) end [2025-01-14 13:02:21] Production.INFO: ProcessCDR(1,14246456,1,1,2) [2025-01-14 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246456', 'tblTempUsageDetail_20' ) start [2025-01-14 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246456', 'tblTempUsageDetail_20' ) end [2025-01-14 13:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:02:26] Production.INFO: ==25744== Releasing lock... [2025-01-14 13:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:02:26] Production.INFO: 70.25 MB #Memory Used# [2025-01-14 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:03:05 [end_date_ymd] => 2025-01-14 13:03:05 [RateCDR] => 1 ) [2025-01-14 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:03:05' and `end` < '2025-01-14 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:03:21] Production.INFO: count ==5587 [2025-01-14 13:03:23] Production.ERROR: pbx CDR StartTime 2025-01-14 10:03:05 - End Time 2025-01-14 13:03:05 [2025-01-14 13:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246461', 'tblTempUsageDetail_20' ) start [2025-01-14 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246461', 'tblTempUsageDetail_20' ) end [2025-01-14 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246461', 'tblTempVendorCDR_20' ) start [2025-01-14 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246461', 'tblTempVendorCDR_20' ) end [2025-01-14 13:03:24] Production.INFO: ProcessCDR(1,14246461,1,1,2) [2025-01-14 13:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246461', 'tblTempUsageDetail_20' ) start [2025-01-14 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246461', 'tblTempUsageDetail_20' ) end [2025-01-14 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:03:28] Production.INFO: ==25815== Releasing lock... [2025-01-14 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:03:28] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:04:05 [end_date_ymd] => 2025-01-14 13:04:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:04:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:04:19] Production.INFO: count ==5564 [2025-01-14 13:04:22] Production.ERROR: pbx CDR StartTime 2025-01-14 10:04:05 - End Time 2025-01-14 13:04:05 [2025-01-14 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246466', 'tblTempUsageDetail_20' ) start [2025-01-14 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246466', 'tblTempUsageDetail_20' ) end [2025-01-14 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246466', 'tblTempVendorCDR_20' ) start [2025-01-14 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246466', 'tblTempVendorCDR_20' ) end [2025-01-14 13:04:22] Production.INFO: ProcessCDR(1,14246466,1,1,2) [2025-01-14 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246466', 'tblTempUsageDetail_20' ) start [2025-01-14 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246466', 'tblTempUsageDetail_20' ) end [2025-01-14 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:04:27] Production.INFO: ==25889== Releasing lock... [2025-01-14 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:04:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:05:04 [end_date_ymd] => 2025-01-14 13:05:04 [RateCDR] => 1 ) [2025-01-14 13:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:05:04' and `end` < '2025-01-14 13:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:05:25] Production.INFO: count ==5567 [2025-01-14 13:05:27] Production.ERROR: pbx CDR StartTime 2025-01-14 10:05:04 - End Time 2025-01-14 13:05:04 [2025-01-14 13:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246471', 'tblTempUsageDetail_20' ) start [2025-01-14 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246471', 'tblTempUsageDetail_20' ) end [2025-01-14 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246471', 'tblTempVendorCDR_20' ) start [2025-01-14 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246471', 'tblTempVendorCDR_20' ) end [2025-01-14 13:05:27] Production.INFO: ProcessCDR(1,14246471,1,1,2) [2025-01-14 13:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246471', 'tblTempUsageDetail_20' ) start [2025-01-14 13:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246471', 'tblTempUsageDetail_20' ) end [2025-01-14 13:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:05:32] Production.INFO: ==25962== Releasing lock... [2025-01-14 13:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:05:32] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:06:05 [end_date_ymd] => 2025-01-14 13:06:05 [RateCDR] => 1 ) [2025-01-14 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:06:05' and `end` < '2025-01-14 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:06:27] Production.INFO: count ==5590 [2025-01-14 13:06:29] Production.ERROR: pbx CDR StartTime 2025-01-14 10:06:05 - End Time 2025-01-14 13:06:05 [2025-01-14 13:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246476', 'tblTempUsageDetail_20' ) start [2025-01-14 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246476', 'tblTempUsageDetail_20' ) end [2025-01-14 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246476', 'tblTempVendorCDR_20' ) start [2025-01-14 13:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246476', 'tblTempVendorCDR_20' ) end [2025-01-14 13:06:29] Production.INFO: ProcessCDR(1,14246476,1,1,2) [2025-01-14 13:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246476', 'tblTempUsageDetail_20' ) start [2025-01-14 13:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246476', 'tblTempUsageDetail_20' ) end [2025-01-14 13:06:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:06:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:06:34] Production.INFO: ==26031== Releasing lock... [2025-01-14 13:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:06:34] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:07:06 [end_date_ymd] => 2025-01-14 13:07:06 [RateCDR] => 1 ) [2025-01-14 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:07:06' and `end` < '2025-01-14 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:07:26] Production.INFO: count ==5559 [2025-01-14 13:07:28] Production.ERROR: pbx CDR StartTime 2025-01-14 10:07:06 - End Time 2025-01-14 13:07:06 [2025-01-14 13:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246481', 'tblTempUsageDetail_20' ) start [2025-01-14 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246481', 'tblTempUsageDetail_20' ) end [2025-01-14 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246481', 'tblTempVendorCDR_20' ) start [2025-01-14 13:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246481', 'tblTempVendorCDR_20' ) end [2025-01-14 13:07:29] Production.INFO: ProcessCDR(1,14246481,1,1,2) [2025-01-14 13:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246481', 'tblTempUsageDetail_20' ) start [2025-01-14 13:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246481', 'tblTempUsageDetail_20' ) end [2025-01-14 13:07:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:07:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:07:33] Production.INFO: ==26111== Releasing lock... [2025-01-14 13:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:07:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:08:05 [end_date_ymd] => 2025-01-14 13:08:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:08:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:08:19] Production.INFO: count ==5563 [2025-01-14 13:08:22] Production.ERROR: pbx CDR StartTime 2025-01-14 10:08:05 - End Time 2025-01-14 13:08:05 [2025-01-14 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246486', 'tblTempUsageDetail_20' ) start [2025-01-14 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246486', 'tblTempUsageDetail_20' ) end [2025-01-14 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246486', 'tblTempVendorCDR_20' ) start [2025-01-14 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246486', 'tblTempVendorCDR_20' ) end [2025-01-14 13:08:22] Production.INFO: ProcessCDR(1,14246486,1,1,2) [2025-01-14 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246486', 'tblTempUsageDetail_20' ) start [2025-01-14 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246486', 'tblTempUsageDetail_20' ) end [2025-01-14 13:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:08:25] Production.INFO: ==26184== Releasing lock... [2025-01-14 13:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:08:25] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:09:05 [end_date_ymd] => 2025-01-14 13:09:05 [RateCDR] => 1 ) [2025-01-14 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:09:05' and `end` < '2025-01-14 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:09:24] Production.INFO: count ==5551 [2025-01-14 13:09:26] Production.ERROR: pbx CDR StartTime 2025-01-14 10:09:05 - End Time 2025-01-14 13:09:05 [2025-01-14 13:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246491', 'tblTempUsageDetail_20' ) start [2025-01-14 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246491', 'tblTempUsageDetail_20' ) end [2025-01-14 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246491', 'tblTempVendorCDR_20' ) start [2025-01-14 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246491', 'tblTempVendorCDR_20' ) end [2025-01-14 13:09:26] Production.INFO: ProcessCDR(1,14246491,1,1,2) [2025-01-14 13:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246491', 'tblTempUsageDetail_20' ) start [2025-01-14 13:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246491', 'tblTempUsageDetail_20' ) end [2025-01-14 13:09:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:09:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:09:31] Production.INFO: ==26257== Releasing lock... [2025-01-14 13:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:09:31] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:10:05 [end_date_ymd] => 2025-01-14 13:10:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:10:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:10:35] Production.INFO: count ==5575 [2025-01-14 13:10:37] Production.ERROR: pbx CDR StartTime 2025-01-14 10:10:05 - End Time 2025-01-14 13:10:05 [2025-01-14 13:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246496', 'tblTempUsageDetail_20' ) start [2025-01-14 13:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246496', 'tblTempUsageDetail_20' ) end [2025-01-14 13:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246496', 'tblTempVendorCDR_20' ) start [2025-01-14 13:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246496', 'tblTempVendorCDR_20' ) end [2025-01-14 13:10:37] Production.INFO: ProcessCDR(1,14246496,1,1,2) [2025-01-14 13:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:10:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:10:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:10:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246496', 'tblTempUsageDetail_20' ) start [2025-01-14 13:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246496', 'tblTempUsageDetail_20' ) end [2025-01-14 13:10:42] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:10:42] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:10:42] Production.INFO: ==26368== Releasing lock... [2025-01-14 13:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:10:42] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:11:05 [end_date_ymd] => 2025-01-14 13:11:05 [RateCDR] => 1 ) [2025-01-14 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:11:05' and `end` < '2025-01-14 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:11:31] Production.INFO: count ==5581 [2025-01-14 13:11:33] Production.ERROR: pbx CDR StartTime 2025-01-14 10:11:05 - End Time 2025-01-14 13:11:05 [2025-01-14 13:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246502', 'tblTempUsageDetail_20' ) start [2025-01-14 13:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246502', 'tblTempUsageDetail_20' ) end [2025-01-14 13:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246502', 'tblTempVendorCDR_20' ) start [2025-01-14 13:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246502', 'tblTempVendorCDR_20' ) end [2025-01-14 13:11:33] Production.INFO: ProcessCDR(1,14246502,1,1,2) [2025-01-14 13:11:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:11:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:11:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:11:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246502', 'tblTempUsageDetail_20' ) start [2025-01-14 13:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246502', 'tblTempUsageDetail_20' ) end [2025-01-14 13:11:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:11:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:11:38] Production.INFO: ==26446== Releasing lock... [2025-01-14 13:11:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:11:38] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:12:05 [end_date_ymd] => 2025-01-14 13:12:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:12:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:12:24] Production.INFO: count ==5578 [2025-01-14 13:12:27] Production.ERROR: pbx CDR StartTime 2025-01-14 10:12:05 - End Time 2025-01-14 13:12:05 [2025-01-14 13:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246507', 'tblTempUsageDetail_20' ) start [2025-01-14 13:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246507', 'tblTempUsageDetail_20' ) end [2025-01-14 13:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246507', 'tblTempVendorCDR_20' ) start [2025-01-14 13:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246507', 'tblTempVendorCDR_20' ) end [2025-01-14 13:12:27] Production.INFO: ProcessCDR(1,14246507,1,1,2) [2025-01-14 13:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246507', 'tblTempUsageDetail_20' ) start [2025-01-14 13:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246507', 'tblTempUsageDetail_20' ) end [2025-01-14 13:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:12:32] Production.INFO: ==26519== Releasing lock... [2025-01-14 13:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:12:32] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:13:05 [end_date_ymd] => 2025-01-14 13:13:05 [RateCDR] => 1 ) [2025-01-14 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:13:05' and `end` < '2025-01-14 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:13:20] Production.INFO: count ==5582 [2025-01-14 13:13:23] Production.ERROR: pbx CDR StartTime 2025-01-14 10:13:05 - End Time 2025-01-14 13:13:05 [2025-01-14 13:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246512', 'tblTempUsageDetail_20' ) start [2025-01-14 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246512', 'tblTempUsageDetail_20' ) end [2025-01-14 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246512', 'tblTempVendorCDR_20' ) start [2025-01-14 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246512', 'tblTempVendorCDR_20' ) end [2025-01-14 13:13:23] Production.INFO: ProcessCDR(1,14246512,1,1,2) [2025-01-14 13:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246512', 'tblTempUsageDetail_20' ) start [2025-01-14 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246512', 'tblTempUsageDetail_20' ) end [2025-01-14 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:13:28] Production.INFO: ==26592== Releasing lock... [2025-01-14 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:13:28] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:14:05 [end_date_ymd] => 2025-01-14 13:14:05 [RateCDR] => 1 ) [2025-01-14 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:14:05' and `end` < '2025-01-14 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:14:20] Production.INFO: count ==5586 [2025-01-14 13:14:22] Production.ERROR: pbx CDR StartTime 2025-01-14 10:14:05 - End Time 2025-01-14 13:14:05 [2025-01-14 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246517', 'tblTempUsageDetail_20' ) start [2025-01-14 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246517', 'tblTempUsageDetail_20' ) end [2025-01-14 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246517', 'tblTempVendorCDR_20' ) start [2025-01-14 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246517', 'tblTempVendorCDR_20' ) end [2025-01-14 13:14:22] Production.INFO: ProcessCDR(1,14246517,1,1,2) [2025-01-14 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246517', 'tblTempUsageDetail_20' ) start [2025-01-14 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246517', 'tblTempUsageDetail_20' ) end [2025-01-14 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:14:27] Production.INFO: ==26662== Releasing lock... [2025-01-14 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:14:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:15:05 [end_date_ymd] => 2025-01-14 13:15:05 [RateCDR] => 1 ) [2025-01-14 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:15:05' and `end` < '2025-01-14 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:15:21] Production.INFO: count ==5625 [2025-01-14 13:15:23] Production.ERROR: pbx CDR StartTime 2025-01-14 10:15:05 - End Time 2025-01-14 13:15:05 [2025-01-14 13:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246522', 'tblTempUsageDetail_20' ) start [2025-01-14 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246522', 'tblTempUsageDetail_20' ) end [2025-01-14 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246522', 'tblTempVendorCDR_20' ) start [2025-01-14 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246522', 'tblTempVendorCDR_20' ) end [2025-01-14 13:15:23] Production.INFO: ProcessCDR(1,14246522,1,1,2) [2025-01-14 13:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246522', 'tblTempUsageDetail_20' ) start [2025-01-14 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246522', 'tblTempUsageDetail_20' ) end [2025-01-14 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:15:28] Production.INFO: ==26736== Releasing lock... [2025-01-14 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:15:28] Production.INFO: 70.25 MB #Memory Used# [2025-01-14 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:16:04 [end_date_ymd] => 2025-01-14 13:16:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:16:04' and `end` < '2025-01-14 13: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 ,'') [2025-01-14 13:16:21] Production.INFO: count ==5616 [2025-01-14 13:16:23] Production.ERROR: pbx CDR StartTime 2025-01-14 10:16:04 - End Time 2025-01-14 13:16:04 [2025-01-14 13:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246527', 'tblTempUsageDetail_20' ) start [2025-01-14 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246527', 'tblTempUsageDetail_20' ) end [2025-01-14 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246527', 'tblTempVendorCDR_20' ) start [2025-01-14 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246527', 'tblTempVendorCDR_20' ) end [2025-01-14 13:16:23] Production.INFO: ProcessCDR(1,14246527,1,1,2) [2025-01-14 13:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246527', 'tblTempUsageDetail_20' ) start [2025-01-14 13:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246527', 'tblTempUsageDetail_20' ) end [2025-01-14 13:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:16:28] Production.INFO: ==26809== Releasing lock... [2025-01-14 13:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:16:28] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:17:05 [end_date_ymd] => 2025-01-14 13:17:05 [RateCDR] => 1 ) [2025-01-14 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:17:05' and `end` < '2025-01-14 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:17:31] Production.INFO: count ==5619 [2025-01-14 13:17:33] Production.ERROR: pbx CDR StartTime 2025-01-14 10:17:05 - End Time 2025-01-14 13:17:05 [2025-01-14 13:17:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246532', 'tblTempUsageDetail_20' ) start [2025-01-14 13:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246532', 'tblTempUsageDetail_20' ) end [2025-01-14 13:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246532', 'tblTempVendorCDR_20' ) start [2025-01-14 13:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246532', 'tblTempVendorCDR_20' ) end [2025-01-14 13:17:33] Production.INFO: ProcessCDR(1,14246532,1,1,2) [2025-01-14 13:17:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:17:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:17:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:17:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246532', 'tblTempUsageDetail_20' ) start [2025-01-14 13:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246532', 'tblTempUsageDetail_20' ) end [2025-01-14 13:17:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:17:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:17:38] Production.INFO: ==26882== Releasing lock... [2025-01-14 13:17:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:17:38] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:18:05 [end_date_ymd] => 2025-01-14 13:18:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:18:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:18:32] Production.INFO: count ==5639 [2025-01-14 13:18:34] Production.ERROR: pbx CDR StartTime 2025-01-14 10:18:05 - End Time 2025-01-14 13:18:05 [2025-01-14 13:18:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246537', 'tblTempUsageDetail_20' ) start [2025-01-14 13:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246537', 'tblTempUsageDetail_20' ) end [2025-01-14 13:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246537', 'tblTempVendorCDR_20' ) start [2025-01-14 13:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246537', 'tblTempVendorCDR_20' ) end [2025-01-14 13:18:34] Production.INFO: ProcessCDR(1,14246537,1,1,2) [2025-01-14 13:18:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:18:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:18:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:18:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246537', 'tblTempUsageDetail_20' ) start [2025-01-14 13:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246537', 'tblTempUsageDetail_20' ) end [2025-01-14 13:18:39] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:18:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:18:39] Production.INFO: ==26955== Releasing lock... [2025-01-14 13:18:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:18:39] Production.INFO: 70.25 MB #Memory Used# [2025-01-14 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:19:05 [end_date_ymd] => 2025-01-14 13:19:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:19:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:19:24] Production.INFO: count ==5649 [2025-01-14 13:19:26] Production.ERROR: pbx CDR StartTime 2025-01-14 10:19:05 - End Time 2025-01-14 13:19:05 [2025-01-14 13:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246542', 'tblTempUsageDetail_20' ) start [2025-01-14 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246542', 'tblTempUsageDetail_20' ) end [2025-01-14 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246542', 'tblTempVendorCDR_20' ) start [2025-01-14 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246542', 'tblTempVendorCDR_20' ) end [2025-01-14 13:19:27] Production.INFO: ProcessCDR(1,14246542,1,1,2) [2025-01-14 13:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246542', 'tblTempUsageDetail_20' ) start [2025-01-14 13:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246542', 'tblTempUsageDetail_20' ) end [2025-01-14 13:19:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:19:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:19:32] Production.INFO: ==27028== Releasing lock... [2025-01-14 13:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:19:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-14 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:20:06 [end_date_ymd] => 2025-01-14 13:20:06 [RateCDR] => 1 ) [2025-01-14 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:20:06' and `end` < '2025-01-14 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:20:29] Production.INFO: count ==5668 [2025-01-14 13:20:32] Production.ERROR: pbx CDR StartTime 2025-01-14 10:20:06 - End Time 2025-01-14 13:20:06 [2025-01-14 13:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246548', 'tblTempUsageDetail_20' ) start [2025-01-14 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246548', 'tblTempUsageDetail_20' ) end [2025-01-14 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246548', 'tblTempVendorCDR_20' ) start [2025-01-14 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246548', 'tblTempVendorCDR_20' ) end [2025-01-14 13:20:32] Production.INFO: ProcessCDR(1,14246548,1,1,2) [2025-01-14 13:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246548', 'tblTempUsageDetail_20' ) start [2025-01-14 13:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246548', 'tblTempUsageDetail_20' ) end [2025-01-14 13:20:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:20:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:20:37] Production.INFO: ==27101== Releasing lock... [2025-01-14 13:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:20:37] Production.INFO: 70.5 MB #Memory Used# [2025-01-14 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:21:05 [end_date_ymd] => 2025-01-14 13:21:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:21:05' and `end` < '2025-01-14 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:21:23] Production.INFO: count ==5665 [2025-01-14 13:21:25] Production.ERROR: pbx CDR StartTime 2025-01-14 10:21:05 - End Time 2025-01-14 13:21:05 [2025-01-14 13:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246553', 'tblTempUsageDetail_20' ) start [2025-01-14 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246553', 'tblTempUsageDetail_20' ) end [2025-01-14 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246553', 'tblTempVendorCDR_20' ) start [2025-01-14 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246553', 'tblTempVendorCDR_20' ) end [2025-01-14 13:21:25] Production.INFO: ProcessCDR(1,14246553,1,1,2) [2025-01-14 13:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246553', 'tblTempUsageDetail_20' ) start [2025-01-14 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246553', 'tblTempUsageDetail_20' ) end [2025-01-14 13:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:21:30] Production.INFO: ==27177== Releasing lock... [2025-01-14 13:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:21:30] Production.INFO: 70.5 MB #Memory Used# [2025-01-14 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:22:05 [end_date_ymd] => 2025-01-14 13:22:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:22:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:22:22] Production.INFO: count ==5628 [2025-01-14 13:22:24] Production.ERROR: pbx CDR StartTime 2025-01-14 10:22:05 - End Time 2025-01-14 13:22:05 [2025-01-14 13:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246558', 'tblTempUsageDetail_20' ) start [2025-01-14 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246558', 'tblTempUsageDetail_20' ) end [2025-01-14 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246558', 'tblTempVendorCDR_20' ) start [2025-01-14 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246558', 'tblTempVendorCDR_20' ) end [2025-01-14 13:22:24] Production.INFO: ProcessCDR(1,14246558,1,1,2) [2025-01-14 13:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246558', 'tblTempUsageDetail_20' ) start [2025-01-14 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246558', 'tblTempUsageDetail_20' ) end [2025-01-14 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:22:28] Production.INFO: ==27256== Releasing lock... [2025-01-14 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:22:28] Production.INFO: 70.25 MB #Memory Used# [2025-01-14 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:23:05 [end_date_ymd] => 2025-01-14 13:23:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:23:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:23:23] Production.INFO: count ==5625 [2025-01-14 13:23:25] Production.ERROR: pbx CDR StartTime 2025-01-14 10:23:05 - End Time 2025-01-14 13:23:05 [2025-01-14 13:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246563', 'tblTempUsageDetail_20' ) start [2025-01-14 13:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246563', 'tblTempUsageDetail_20' ) end [2025-01-14 13:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246563', 'tblTempVendorCDR_20' ) start [2025-01-14 13:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246563', 'tblTempVendorCDR_20' ) end [2025-01-14 13:23:25] Production.INFO: ProcessCDR(1,14246563,1,1,2) [2025-01-14 13:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246563', 'tblTempUsageDetail_20' ) start [2025-01-14 13:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246563', 'tblTempUsageDetail_20' ) end [2025-01-14 13:23:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:23:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:23:31] Production.INFO: ==27328== Releasing lock... [2025-01-14 13:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:23:31] Production.INFO: 70.5 MB #Memory Used# [2025-01-14 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:24:06 [end_date_ymd] => 2025-01-14 13:24:06 [RateCDR] => 1 ) [2025-01-14 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:24:06' and `end` < '2025-01-14 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:24:25] Production.INFO: count ==5609 [2025-01-14 13:24:27] Production.ERROR: pbx CDR StartTime 2025-01-14 10:24:06 - End Time 2025-01-14 13:24:06 [2025-01-14 13:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246568', 'tblTempUsageDetail_20' ) start [2025-01-14 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246568', 'tblTempUsageDetail_20' ) end [2025-01-14 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246568', 'tblTempVendorCDR_20' ) start [2025-01-14 13:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246568', 'tblTempVendorCDR_20' ) end [2025-01-14 13:24:28] Production.INFO: ProcessCDR(1,14246568,1,1,2) [2025-01-14 13:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246568', 'tblTempUsageDetail_20' ) start [2025-01-14 13:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246568', 'tblTempUsageDetail_20' ) end [2025-01-14 13:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:24:32] Production.INFO: ==27403== Releasing lock... [2025-01-14 13:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:24:32] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:25:05 [end_date_ymd] => 2025-01-14 13:25:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:25:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:25:24] Production.INFO: count ==5630 [2025-01-14 13:25:26] Production.ERROR: pbx CDR StartTime 2025-01-14 10:25:05 - End Time 2025-01-14 13:25:05 [2025-01-14 13:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246573', 'tblTempUsageDetail_20' ) start [2025-01-14 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246573', 'tblTempUsageDetail_20' ) end [2025-01-14 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246573', 'tblTempVendorCDR_20' ) start [2025-01-14 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246573', 'tblTempVendorCDR_20' ) end [2025-01-14 13:25:26] Production.INFO: ProcessCDR(1,14246573,1,1,2) [2025-01-14 13:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246573', 'tblTempUsageDetail_20' ) start [2025-01-14 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246573', 'tblTempUsageDetail_20' ) end [2025-01-14 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:25:31] Production.INFO: ==27513== Releasing lock... [2025-01-14 13:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:25:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-14 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:26:06 [end_date_ymd] => 2025-01-14 13:26:06 [RateCDR] => 1 ) [2025-01-14 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:26:06' and `end` < '2025-01-14 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:26:20] Production.INFO: count ==5616 [2025-01-14 13:26:23] Production.ERROR: pbx CDR StartTime 2025-01-14 10:26:06 - End Time 2025-01-14 13:26:06 [2025-01-14 13:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246578', 'tblTempUsageDetail_20' ) start [2025-01-14 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246578', 'tblTempUsageDetail_20' ) end [2025-01-14 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246578', 'tblTempVendorCDR_20' ) start [2025-01-14 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246578', 'tblTempVendorCDR_20' ) end [2025-01-14 13:26:23] Production.INFO: ProcessCDR(1,14246578,1,1,2) [2025-01-14 13:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246578', 'tblTempUsageDetail_20' ) start [2025-01-14 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246578', 'tblTempUsageDetail_20' ) end [2025-01-14 13:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:26:28] Production.INFO: ==27586== Releasing lock... [2025-01-14 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:26:28] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:27:05 [end_date_ymd] => 2025-01-14 13:27:05 [RateCDR] => 1 ) [2025-01-14 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:27:05' and `end` < '2025-01-14 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:27:22] Production.INFO: count ==5616 [2025-01-14 13:27:24] Production.ERROR: pbx CDR StartTime 2025-01-14 10:27:05 - End Time 2025-01-14 13:27:05 [2025-01-14 13:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246583', 'tblTempUsageDetail_20' ) start [2025-01-14 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246583', 'tblTempUsageDetail_20' ) end [2025-01-14 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246583', 'tblTempVendorCDR_20' ) start [2025-01-14 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246583', 'tblTempVendorCDR_20' ) end [2025-01-14 13:27:24] Production.INFO: ProcessCDR(1,14246583,1,1,2) [2025-01-14 13:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246583', 'tblTempUsageDetail_20' ) start [2025-01-14 13:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246583', 'tblTempUsageDetail_20' ) end [2025-01-14 13:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:27:29] Production.INFO: ==27660== Releasing lock... [2025-01-14 13:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:27:29] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:28:05 [end_date_ymd] => 2025-01-14 13:28:05 [RateCDR] => 1 ) [2025-01-14 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:28:05' and `end` < '2025-01-14 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:28:25] Production.INFO: count ==5639 [2025-01-14 13:28:27] Production.ERROR: pbx CDR StartTime 2025-01-14 10:28:05 - End Time 2025-01-14 13:28:05 [2025-01-14 13:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246588', 'tblTempUsageDetail_20' ) start [2025-01-14 13:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246588', 'tblTempUsageDetail_20' ) end [2025-01-14 13:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246588', 'tblTempVendorCDR_20' ) start [2025-01-14 13:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246588', 'tblTempVendorCDR_20' ) end [2025-01-14 13:28:28] Production.INFO: ProcessCDR(1,14246588,1,1,2) [2025-01-14 13:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246588', 'tblTempUsageDetail_20' ) start [2025-01-14 13:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246588', 'tblTempUsageDetail_20' ) end [2025-01-14 13:28:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:28:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:28:33] Production.INFO: ==27733== Releasing lock... [2025-01-14 13:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:28:33] Production.INFO: 70.25 MB #Memory Used# [2025-01-14 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:29:05 [end_date_ymd] => 2025-01-14 13:29:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:29:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:29:19] Production.INFO: count ==5613 [2025-01-14 13:29:21] Production.ERROR: pbx CDR StartTime 2025-01-14 10:29:05 - End Time 2025-01-14 13:29:05 [2025-01-14 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246593', 'tblTempUsageDetail_20' ) start [2025-01-14 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246593', 'tblTempUsageDetail_20' ) end [2025-01-14 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246593', 'tblTempVendorCDR_20' ) start [2025-01-14 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246593', 'tblTempVendorCDR_20' ) end [2025-01-14 13:29:22] Production.INFO: ProcessCDR(1,14246593,1,1,2) [2025-01-14 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246593', 'tblTempUsageDetail_20' ) start [2025-01-14 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246593', 'tblTempUsageDetail_20' ) end [2025-01-14 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:29:26] Production.INFO: ==27806== Releasing lock... [2025-01-14 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:29:26] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:30:06 [end_date_ymd] => 2025-01-14 13:30:06 [RateCDR] => 1 ) [2025-01-14 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:30:06' and `end` < '2025-01-14 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:30:28] Production.INFO: count ==5609 [2025-01-14 13:30:30] Production.ERROR: pbx CDR StartTime 2025-01-14 10:30:06 - End Time 2025-01-14 13:30:06 [2025-01-14 13:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246599', 'tblTempUsageDetail_20' ) start [2025-01-14 13:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246599', 'tblTempUsageDetail_20' ) end [2025-01-14 13:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246599', 'tblTempVendorCDR_20' ) start [2025-01-14 13:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246599', 'tblTempVendorCDR_20' ) end [2025-01-14 13:30:31] Production.INFO: ProcessCDR(1,14246599,1,1,2) [2025-01-14 13:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246599', 'tblTempUsageDetail_20' ) start [2025-01-14 13:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246599', 'tblTempUsageDetail_20' ) end [2025-01-14 13:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:30:35] Production.INFO: ==27881== Releasing lock... [2025-01-14 13:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:30:35] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:31:05 [end_date_ymd] => 2025-01-14 13:31:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:31:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:31:34] Production.INFO: count ==5603 [2025-01-14 13:31:37] Production.ERROR: pbx CDR StartTime 2025-01-14 10:31:05 - End Time 2025-01-14 13:31:05 [2025-01-14 13:31:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:31:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246604', 'tblTempUsageDetail_20' ) start [2025-01-14 13:31:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246604', 'tblTempUsageDetail_20' ) end [2025-01-14 13:31:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246604', 'tblTempVendorCDR_20' ) start [2025-01-14 13:31:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246604', 'tblTempVendorCDR_20' ) end [2025-01-14 13:31:37] Production.INFO: ProcessCDR(1,14246604,1,1,2) [2025-01-14 13:31:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:31:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:31:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:31:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246604', 'tblTempUsageDetail_20' ) start [2025-01-14 13:31:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246604', 'tblTempUsageDetail_20' ) end [2025-01-14 13:31:42] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:31:42] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:31:42] Production.INFO: ==27953== Releasing lock... [2025-01-14 13:31:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:31:42] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:32:04 [end_date_ymd] => 2025-01-14 13:32:04 [RateCDR] => 1 ) [2025-01-14 13:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:32:04' and `end` < '2025-01-14 13:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:32:31] Production.INFO: count ==5592 [2025-01-14 13:32:33] Production.ERROR: pbx CDR StartTime 2025-01-14 10:32:04 - End Time 2025-01-14 13:32:04 [2025-01-14 13:32:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:32:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246609', 'tblTempUsageDetail_20' ) start [2025-01-14 13:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246609', 'tblTempUsageDetail_20' ) end [2025-01-14 13:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246609', 'tblTempVendorCDR_20' ) start [2025-01-14 13:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246609', 'tblTempVendorCDR_20' ) end [2025-01-14 13:32:34] Production.INFO: ProcessCDR(1,14246609,1,1,2) [2025-01-14 13:32:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:32:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:32:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:32:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:32:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246609', 'tblTempUsageDetail_20' ) start [2025-01-14 13:32:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246609', 'tblTempUsageDetail_20' ) end [2025-01-14 13:32:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:32:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:32:38] Production.INFO: ==28026== Releasing lock... [2025-01-14 13:32:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:32:38] Production.INFO: 70.25 MB #Memory Used# [2025-01-14 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:33:05 [end_date_ymd] => 2025-01-14 13:33:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:33:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:33:28] Production.INFO: count ==5583 [2025-01-14 13:33:30] Production.ERROR: pbx CDR StartTime 2025-01-14 10:33:05 - End Time 2025-01-14 13:33:05 [2025-01-14 13:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246614', 'tblTempUsageDetail_20' ) start [2025-01-14 13:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246614', 'tblTempUsageDetail_20' ) end [2025-01-14 13:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246614', 'tblTempVendorCDR_20' ) start [2025-01-14 13:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246614', 'tblTempVendorCDR_20' ) end [2025-01-14 13:33:31] Production.INFO: ProcessCDR(1,14246614,1,1,2) [2025-01-14 13:33:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:33:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:33:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246614', 'tblTempUsageDetail_20' ) start [2025-01-14 13:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246614', 'tblTempUsageDetail_20' ) end [2025-01-14 13:33:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:33:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:33:36] Production.INFO: ==28098== Releasing lock... [2025-01-14 13:33:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:33:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:34:05 [end_date_ymd] => 2025-01-14 13:34:05 [RateCDR] => 1 ) [2025-01-14 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:34:05' and `end` < '2025-01-14 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:34:24] Production.INFO: count ==5582 [2025-01-14 13:34:26] Production.ERROR: pbx CDR StartTime 2025-01-14 10:34:05 - End Time 2025-01-14 13:34:05 [2025-01-14 13:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246619', 'tblTempUsageDetail_20' ) start [2025-01-14 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246619', 'tblTempUsageDetail_20' ) end [2025-01-14 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246619', 'tblTempVendorCDR_20' ) start [2025-01-14 13:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246619', 'tblTempVendorCDR_20' ) end [2025-01-14 13:34:26] Production.INFO: ProcessCDR(1,14246619,1,1,2) [2025-01-14 13:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246619', 'tblTempUsageDetail_20' ) start [2025-01-14 13:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246619', 'tblTempUsageDetail_20' ) end [2025-01-14 13:34:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:34:31] Production.INFO: ==28173== Releasing lock... [2025-01-14 13:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:34:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:35:04 [end_date_ymd] => 2025-01-14 13:35:04 [RateCDR] => 1 ) [2025-01-14 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:35:04' and `end` < '2025-01-14 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:35:24] Production.INFO: count ==5578 [2025-01-14 13:35:26] Production.ERROR: pbx CDR StartTime 2025-01-14 10:35:04 - End Time 2025-01-14 13:35:04 [2025-01-14 13:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246624', 'tblTempUsageDetail_20' ) start [2025-01-14 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246624', 'tblTempUsageDetail_20' ) end [2025-01-14 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246624', 'tblTempVendorCDR_20' ) start [2025-01-14 13:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246624', 'tblTempVendorCDR_20' ) end [2025-01-14 13:35:26] Production.INFO: ProcessCDR(1,14246624,1,1,2) [2025-01-14 13:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246624', 'tblTempUsageDetail_20' ) start [2025-01-14 13:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246624', 'tblTempUsageDetail_20' ) end [2025-01-14 13:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:35:31] Production.INFO: ==28252== Releasing lock... [2025-01-14 13:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:35:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:36:05 [end_date_ymd] => 2025-01-14 13:36:05 [RateCDR] => 1 ) [2025-01-14 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:36:05' and `end` < '2025-01-14 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:36:19] Production.INFO: count ==5559 [2025-01-14 13:36:21] Production.ERROR: pbx CDR StartTime 2025-01-14 10:36:05 - End Time 2025-01-14 13:36:05 [2025-01-14 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246629', 'tblTempUsageDetail_20' ) start [2025-01-14 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246629', 'tblTempUsageDetail_20' ) end [2025-01-14 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246629', 'tblTempVendorCDR_20' ) start [2025-01-14 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246629', 'tblTempVendorCDR_20' ) end [2025-01-14 13:36:21] Production.INFO: ProcessCDR(1,14246629,1,1,2) [2025-01-14 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246629', 'tblTempUsageDetail_20' ) start [2025-01-14 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246629', 'tblTempUsageDetail_20' ) end [2025-01-14 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:36:26] Production.INFO: ==28327== Releasing lock... [2025-01-14 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:36:26] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:37:05 [end_date_ymd] => 2025-01-14 13:37:05 [RateCDR] => 1 ) [2025-01-14 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:37:05' and `end` < '2025-01-14 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:37:19] Production.INFO: count ==5550 [2025-01-14 13:37:22] Production.ERROR: pbx CDR StartTime 2025-01-14 10:37:05 - End Time 2025-01-14 13:37:05 [2025-01-14 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246634', 'tblTempUsageDetail_20' ) start [2025-01-14 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246634', 'tblTempUsageDetail_20' ) end [2025-01-14 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246634', 'tblTempVendorCDR_20' ) start [2025-01-14 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246634', 'tblTempVendorCDR_20' ) end [2025-01-14 13:37:22] Production.INFO: ProcessCDR(1,14246634,1,1,2) [2025-01-14 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246634', 'tblTempUsageDetail_20' ) start [2025-01-14 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246634', 'tblTempUsageDetail_20' ) end [2025-01-14 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:37:26] Production.INFO: ==28404== Releasing lock... [2025-01-14 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:37:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:38:05 [end_date_ymd] => 2025-01-14 13:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:38:22] Production.INFO: count ==5542 [2025-01-14 13:38:25] Production.ERROR: pbx CDR StartTime 2025-01-14 10:38:05 - End Time 2025-01-14 13:38:05 [2025-01-14 13:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246639', 'tblTempUsageDetail_20' ) start [2025-01-14 13:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246639', 'tblTempUsageDetail_20' ) end [2025-01-14 13:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246639', 'tblTempVendorCDR_20' ) start [2025-01-14 13:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246639', 'tblTempVendorCDR_20' ) end [2025-01-14 13:38:25] Production.INFO: ProcessCDR(1,14246639,1,1,2) [2025-01-14 13:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246639', 'tblTempUsageDetail_20' ) start [2025-01-14 13:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246639', 'tblTempUsageDetail_20' ) end [2025-01-14 13:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:38:30] Production.INFO: ==28503== Releasing lock... [2025-01-14 13:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:38:30] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:39:04 [end_date_ymd] => 2025-01-14 13:39:04 [RateCDR] => 1 ) [2025-01-14 13:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:39:04' and `end` < '2025-01-14 13:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:39:21] Production.INFO: count ==5519 [2025-01-14 13:39:23] Production.ERROR: pbx CDR StartTime 2025-01-14 10:39:04 - End Time 2025-01-14 13:39:04 [2025-01-14 13:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246644', 'tblTempUsageDetail_20' ) start [2025-01-14 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246644', 'tblTempUsageDetail_20' ) end [2025-01-14 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246644', 'tblTempVendorCDR_20' ) start [2025-01-14 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246644', 'tblTempVendorCDR_20' ) end [2025-01-14 13:39:23] Production.INFO: ProcessCDR(1,14246644,1,1,2) [2025-01-14 13:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246644', 'tblTempUsageDetail_20' ) start [2025-01-14 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246644', 'tblTempUsageDetail_20' ) end [2025-01-14 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:39:26] Production.INFO: ==28601== Releasing lock... [2025-01-14 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:39:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:40:05 [end_date_ymd] => 2025-01-14 13:40:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:40:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:40:19] Production.INFO: count ==5522 [2025-01-14 13:40:21] Production.ERROR: pbx CDR StartTime 2025-01-14 10:40:05 - End Time 2025-01-14 13:40:05 [2025-01-14 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246649', 'tblTempUsageDetail_20' ) start [2025-01-14 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246649', 'tblTempUsageDetail_20' ) end [2025-01-14 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246649', 'tblTempVendorCDR_20' ) start [2025-01-14 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246649', 'tblTempVendorCDR_20' ) end [2025-01-14 13:40:21] Production.INFO: ProcessCDR(1,14246649,1,1,2) [2025-01-14 13:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246649', 'tblTempUsageDetail_20' ) start [2025-01-14 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246649', 'tblTempUsageDetail_20' ) end [2025-01-14 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:40:26] Production.INFO: ==28702== Releasing lock... [2025-01-14 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:40:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:41:04 [end_date_ymd] => 2025-01-14 13:41:04 [RateCDR] => 1 ) [2025-01-14 13:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:41:04' and `end` < '2025-01-14 13:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:41:18] Production.INFO: count ==5510 [2025-01-14 13:41:20] Production.ERROR: pbx CDR StartTime 2025-01-14 10:41:04 - End Time 2025-01-14 13:41:04 [2025-01-14 13:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246655', 'tblTempUsageDetail_20' ) start [2025-01-14 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246655', 'tblTempUsageDetail_20' ) end [2025-01-14 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246655', 'tblTempVendorCDR_20' ) start [2025-01-14 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246655', 'tblTempVendorCDR_20' ) end [2025-01-14 13:41:20] Production.INFO: ProcessCDR(1,14246655,1,1,2) [2025-01-14 13:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246655', 'tblTempUsageDetail_20' ) start [2025-01-14 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246655', 'tblTempUsageDetail_20' ) end [2025-01-14 13:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:41:25] Production.INFO: ==28845== Releasing lock... [2025-01-14 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:41:25] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:42:05 [end_date_ymd] => 2025-01-14 13:42:05 [RateCDR] => 1 ) [2025-01-14 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:42:05' and `end` < '2025-01-14 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:42:21] Production.INFO: count ==5540 [2025-01-14 13:42:23] Production.ERROR: pbx CDR StartTime 2025-01-14 10:42:05 - End Time 2025-01-14 13:42:05 [2025-01-14 13:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246660', 'tblTempUsageDetail_20' ) start [2025-01-14 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246660', 'tblTempUsageDetail_20' ) end [2025-01-14 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246660', 'tblTempVendorCDR_20' ) start [2025-01-14 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246660', 'tblTempVendorCDR_20' ) end [2025-01-14 13:42:23] Production.INFO: ProcessCDR(1,14246660,1,1,2) [2025-01-14 13:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246660', 'tblTempUsageDetail_20' ) start [2025-01-14 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246660', 'tblTempUsageDetail_20' ) end [2025-01-14 13:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:42:28] Production.INFO: ==28948== Releasing lock... [2025-01-14 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:42:28] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:43:04 [end_date_ymd] => 2025-01-14 13:43:04 [RateCDR] => 1 ) [2025-01-14 13:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:43:04' and `end` < '2025-01-14 13:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:43:22] Production.INFO: count ==5569 [2025-01-14 13:43:24] Production.ERROR: pbx CDR StartTime 2025-01-14 10:43:04 - End Time 2025-01-14 13:43:04 [2025-01-14 13:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246665', 'tblTempUsageDetail_20' ) start [2025-01-14 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246665', 'tblTempUsageDetail_20' ) end [2025-01-14 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246665', 'tblTempVendorCDR_20' ) start [2025-01-14 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246665', 'tblTempVendorCDR_20' ) end [2025-01-14 13:43:24] Production.INFO: ProcessCDR(1,14246665,1,1,2) [2025-01-14 13:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246665', 'tblTempUsageDetail_20' ) start [2025-01-14 13:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246665', 'tblTempUsageDetail_20' ) end [2025-01-14 13:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:43:29] Production.INFO: ==29047== Releasing lock... [2025-01-14 13:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:43:29] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:44:05 [end_date_ymd] => 2025-01-14 13:44:05 [RateCDR] => 1 ) [2025-01-14 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:44:05' and `end` < '2025-01-14 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:44:18] Production.INFO: count ==5567 [2025-01-14 13:44:21] Production.ERROR: pbx CDR StartTime 2025-01-14 10:44:05 - End Time 2025-01-14 13:44:05 [2025-01-14 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246670', 'tblTempUsageDetail_20' ) start [2025-01-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246670', 'tblTempUsageDetail_20' ) end [2025-01-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246670', 'tblTempVendorCDR_20' ) start [2025-01-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246670', 'tblTempVendorCDR_20' ) end [2025-01-14 13:44:21] Production.INFO: ProcessCDR(1,14246670,1,1,2) [2025-01-14 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246670', 'tblTempUsageDetail_20' ) start [2025-01-14 13:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246670', 'tblTempUsageDetail_20' ) end [2025-01-14 13:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:44:25] Production.INFO: ==29146== Releasing lock... [2025-01-14 13:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:44:25] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:45:05 [end_date_ymd] => 2025-01-14 13:45:05 [RateCDR] => 1 ) [2025-01-14 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:45:05' and `end` < '2025-01-14 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:45:19] Production.INFO: count ==5556 [2025-01-14 13:45:21] Production.ERROR: pbx CDR StartTime 2025-01-14 10:45:05 - End Time 2025-01-14 13:45:05 [2025-01-14 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246675', 'tblTempUsageDetail_20' ) start [2025-01-14 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246675', 'tblTempUsageDetail_20' ) end [2025-01-14 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246675', 'tblTempVendorCDR_20' ) start [2025-01-14 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246675', 'tblTempVendorCDR_20' ) end [2025-01-14 13:45:21] Production.INFO: ProcessCDR(1,14246675,1,1,2) [2025-01-14 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246675', 'tblTempUsageDetail_20' ) start [2025-01-14 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246675', 'tblTempUsageDetail_20' ) end [2025-01-14 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:45:26] Production.INFO: ==29246== Releasing lock... [2025-01-14 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:45:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:46:05 [end_date_ymd] => 2025-01-14 13:46:05 [RateCDR] => 1 ) [2025-01-14 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:46:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:46:20] Production.INFO: count ==5562 [2025-01-14 13:46:23] Production.ERROR: pbx CDR StartTime 2025-01-14 10:46:05 - End Time 2025-01-14 13:46:05 [2025-01-14 13:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246680', 'tblTempUsageDetail_20' ) start [2025-01-14 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246680', 'tblTempUsageDetail_20' ) end [2025-01-14 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246680', 'tblTempVendorCDR_20' ) start [2025-01-14 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246680', 'tblTempVendorCDR_20' ) end [2025-01-14 13:46:23] Production.INFO: ProcessCDR(1,14246680,1,1,2) [2025-01-14 13:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246680', 'tblTempUsageDetail_20' ) start [2025-01-14 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246680', 'tblTempUsageDetail_20' ) end [2025-01-14 13:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:46:28] Production.INFO: ==29370== Releasing lock... [2025-01-14 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:46:28] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:47:05 [end_date_ymd] => 2025-01-14 13:47:05 [RateCDR] => 1 ) [2025-01-14 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:47:05' and `end` < '2025-01-14 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:47:19] Production.INFO: count ==5564 [2025-01-14 13:47:21] Production.ERROR: pbx CDR StartTime 2025-01-14 10:47:05 - End Time 2025-01-14 13:47:05 [2025-01-14 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246685', 'tblTempUsageDetail_20' ) start [2025-01-14 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246685', 'tblTempUsageDetail_20' ) end [2025-01-14 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246685', 'tblTempVendorCDR_20' ) start [2025-01-14 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246685', 'tblTempVendorCDR_20' ) end [2025-01-14 13:47:21] Production.INFO: ProcessCDR(1,14246685,1,1,2) [2025-01-14 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246685', 'tblTempUsageDetail_20' ) start [2025-01-14 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246685', 'tblTempUsageDetail_20' ) end [2025-01-14 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:47:26] Production.INFO: ==29470== Releasing lock... [2025-01-14 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:47:26] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:48:06 [end_date_ymd] => 2025-01-14 13:48:06 [RateCDR] => 1 ) [2025-01-14 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:48:06' and `end` < '2025-01-14 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:48:19] Production.INFO: count ==5572 [2025-01-14 13:48:22] Production.ERROR: pbx CDR StartTime 2025-01-14 10:48:06 - End Time 2025-01-14 13:48:06 [2025-01-14 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246690', 'tblTempUsageDetail_20' ) start [2025-01-14 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246690', 'tblTempUsageDetail_20' ) end [2025-01-14 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246690', 'tblTempVendorCDR_20' ) start [2025-01-14 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246690', 'tblTempVendorCDR_20' ) end [2025-01-14 13:48:22] Production.INFO: ProcessCDR(1,14246690,1,1,2) [2025-01-14 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246690', 'tblTempUsageDetail_20' ) start [2025-01-14 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246690', 'tblTempUsageDetail_20' ) end [2025-01-14 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:48:27] Production.INFO: ==29569== Releasing lock... [2025-01-14 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:48:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:49:05 [end_date_ymd] => 2025-01-14 13:49:05 [RateCDR] => 1 ) [2025-01-14 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:49:05' and `end` < '2025-01-14 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:49:19] Production.INFO: count ==5594 [2025-01-14 13:49:21] Production.ERROR: pbx CDR StartTime 2025-01-14 10:49:05 - End Time 2025-01-14 13:49:05 [2025-01-14 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246695', 'tblTempUsageDetail_20' ) start [2025-01-14 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246695', 'tblTempUsageDetail_20' ) end [2025-01-14 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246695', 'tblTempVendorCDR_20' ) start [2025-01-14 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246695', 'tblTempVendorCDR_20' ) end [2025-01-14 13:49:21] Production.INFO: ProcessCDR(1,14246695,1,1,2) [2025-01-14 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246695', 'tblTempUsageDetail_20' ) start [2025-01-14 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246695', 'tblTempUsageDetail_20' ) end [2025-01-14 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:49:26] Production.INFO: ==29674== Releasing lock... [2025-01-14 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:49:26] Production.INFO: 70 MB #Memory Used# [2025-01-14 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:50:05 [end_date_ymd] => 2025-01-14 13:50:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:50:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:50:21] Production.INFO: count ==5567 [2025-01-14 13:50:23] Production.ERROR: pbx CDR StartTime 2025-01-14 10:50:05 - End Time 2025-01-14 13:50:05 [2025-01-14 13:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246701', 'tblTempUsageDetail_20' ) start [2025-01-14 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246701', 'tblTempUsageDetail_20' ) end [2025-01-14 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246701', 'tblTempVendorCDR_20' ) start [2025-01-14 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246701', 'tblTempVendorCDR_20' ) end [2025-01-14 13:50:23] Production.INFO: ProcessCDR(1,14246701,1,1,2) [2025-01-14 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246701', 'tblTempUsageDetail_20' ) start [2025-01-14 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246701', 'tblTempUsageDetail_20' ) end [2025-01-14 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:50:28] Production.INFO: ==29780== Releasing lock... [2025-01-14 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:50:28] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:51:05 [end_date_ymd] => 2025-01-14 13:51:05 [RateCDR] => 1 ) [2025-01-14 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:51:05' and `end` < '2025-01-14 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:51:20] Production.INFO: count ==5531 [2025-01-14 13:51:22] Production.ERROR: pbx CDR StartTime 2025-01-14 10:51:05 - End Time 2025-01-14 13:51:05 [2025-01-14 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246706', 'tblTempUsageDetail_20' ) start [2025-01-14 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246706', 'tblTempUsageDetail_20' ) end [2025-01-14 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246706', 'tblTempVendorCDR_20' ) start [2025-01-14 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246706', 'tblTempVendorCDR_20' ) end [2025-01-14 13:51:22] Production.INFO: ProcessCDR(1,14246706,1,1,2) [2025-01-14 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246706', 'tblTempUsageDetail_20' ) start [2025-01-14 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246706', 'tblTempUsageDetail_20' ) end [2025-01-14 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:51:27] Production.INFO: ==29881== Releasing lock... [2025-01-14 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:51:27] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 13:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:52:04 [end_date_ymd] => 2025-01-14 13:52:04 [RateCDR] => 1 ) [2025-01-14 13:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:52:04' and `end` < '2025-01-14 13:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:52:28] Production.INFO: count ==5568 [2025-01-14 13:52:30] Production.ERROR: pbx CDR StartTime 2025-01-14 10:52:04 - End Time 2025-01-14 13:52:04 [2025-01-14 13:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246711', 'tblTempUsageDetail_20' ) start [2025-01-14 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246711', 'tblTempUsageDetail_20' ) end [2025-01-14 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246711', 'tblTempVendorCDR_20' ) start [2025-01-14 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246711', 'tblTempVendorCDR_20' ) end [2025-01-14 13:52:30] Production.INFO: ProcessCDR(1,14246711,1,1,2) [2025-01-14 13:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:52:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246711', 'tblTempUsageDetail_20' ) start [2025-01-14 13:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246711', 'tblTempUsageDetail_20' ) end [2025-01-14 13:52:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:52:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:52:35] Production.INFO: ==29983== Releasing lock... [2025-01-14 13:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:52:35] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:53:05 [end_date_ymd] => 2025-01-14 13:53:05 [RateCDR] => 1 ) [2025-01-14 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:53:05' and `end` < '2025-01-14 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:53:22] Production.INFO: count ==5572 [2025-01-14 13:53:25] Production.ERROR: pbx CDR StartTime 2025-01-14 10:53:05 - End Time 2025-01-14 13:53:05 [2025-01-14 13:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246716', 'tblTempUsageDetail_20' ) start [2025-01-14 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246716', 'tblTempUsageDetail_20' ) end [2025-01-14 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246716', 'tblTempVendorCDR_20' ) start [2025-01-14 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246716', 'tblTempVendorCDR_20' ) end [2025-01-14 13:53:25] Production.INFO: ProcessCDR(1,14246716,1,1,2) [2025-01-14 13:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246716', 'tblTempUsageDetail_20' ) start [2025-01-14 13:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246716', 'tblTempUsageDetail_20' ) end [2025-01-14 13:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:53:30] Production.INFO: ==30083== Releasing lock... [2025-01-14 13:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:53:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:54:05 [end_date_ymd] => 2025-01-14 13:54:05 [RateCDR] => 1 ) [2025-01-14 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:54:05' and `end` < '2025-01-14 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:54:29] Production.INFO: count ==5573 [2025-01-14 13:54:32] Production.ERROR: pbx CDR StartTime 2025-01-14 10:54:05 - End Time 2025-01-14 13:54:05 [2025-01-14 13:54:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246721', 'tblTempUsageDetail_20' ) start [2025-01-14 13:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246721', 'tblTempUsageDetail_20' ) end [2025-01-14 13:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246721', 'tblTempVendorCDR_20' ) start [2025-01-14 13:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246721', 'tblTempVendorCDR_20' ) end [2025-01-14 13:54:32] Production.INFO: ProcessCDR(1,14246721,1,1,2) [2025-01-14 13:54:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:54:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246721', 'tblTempUsageDetail_20' ) start [2025-01-14 13:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246721', 'tblTempUsageDetail_20' ) end [2025-01-14 13:54:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:54:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:54:37] Production.INFO: ==30185== Releasing lock... [2025-01-14 13:54:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:54:37] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:55:05 [end_date_ymd] => 2025-01-14 13:55:05 [RateCDR] => 1 ) [2025-01-14 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:55:05' and `end` < '2025-01-14 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:55:28] Production.INFO: count ==5580 [2025-01-14 13:55:30] Production.ERROR: pbx CDR StartTime 2025-01-14 10:55:05 - End Time 2025-01-14 13:55:05 [2025-01-14 13:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246726', 'tblTempUsageDetail_20' ) start [2025-01-14 13:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246726', 'tblTempUsageDetail_20' ) end [2025-01-14 13:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246726', 'tblTempVendorCDR_20' ) start [2025-01-14 13:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246726', 'tblTempVendorCDR_20' ) end [2025-01-14 13:55:30] Production.INFO: ProcessCDR(1,14246726,1,1,2) [2025-01-14 13:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246726', 'tblTempUsageDetail_20' ) start [2025-01-14 13:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246726', 'tblTempUsageDetail_20' ) end [2025-01-14 13:55:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:55:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:55:35] Production.INFO: ==30272== Releasing lock... [2025-01-14 13:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:55:35] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:56:05 [end_date_ymd] => 2025-01-14 13:56:05 [RateCDR] => 1 ) [2025-01-14 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:56:05' and `end` < '2025-01-14 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:56:23] Production.INFO: count ==5567 [2025-01-14 13:56:25] Production.ERROR: pbx CDR StartTime 2025-01-14 10:56:05 - End Time 2025-01-14 13:56:05 [2025-01-14 13:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246731', 'tblTempUsageDetail_20' ) start [2025-01-14 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246731', 'tblTempUsageDetail_20' ) end [2025-01-14 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246731', 'tblTempVendorCDR_20' ) start [2025-01-14 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246731', 'tblTempVendorCDR_20' ) end [2025-01-14 13:56:25] Production.INFO: ProcessCDR(1,14246731,1,1,2) [2025-01-14 13:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246731', 'tblTempUsageDetail_20' ) start [2025-01-14 13:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246731', 'tblTempUsageDetail_20' ) end [2025-01-14 13:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:56:30] Production.INFO: ==30357== Releasing lock... [2025-01-14 13:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:56:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:57:05 [end_date_ymd] => 2025-01-14 13:57:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 10:57:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 13:57:22] Production.INFO: count ==5575 [2025-01-14 13:57:24] Production.ERROR: pbx CDR StartTime 2025-01-14 10:57:05 - End Time 2025-01-14 13:57:05 [2025-01-14 13:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246736', 'tblTempUsageDetail_20' ) start [2025-01-14 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246736', 'tblTempUsageDetail_20' ) end [2025-01-14 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246736', 'tblTempVendorCDR_20' ) start [2025-01-14 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246736', 'tblTempVendorCDR_20' ) end [2025-01-14 13:57:24] Production.INFO: ProcessCDR(1,14246736,1,1,2) [2025-01-14 13:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246736', 'tblTempUsageDetail_20' ) start [2025-01-14 13:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246736', 'tblTempUsageDetail_20' ) end [2025-01-14 13:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:57:29] Production.INFO: ==30454== Releasing lock... [2025-01-14 13:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:57:29] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:58:05 [end_date_ymd] => 2025-01-14 13:58:05 [RateCDR] => 1 ) [2025-01-14 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:58:05' and `end` < '2025-01-14 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:58:20] Production.INFO: count ==5571 [2025-01-14 13:58:22] Production.ERROR: pbx CDR StartTime 2025-01-14 10:58:05 - End Time 2025-01-14 13:58:05 [2025-01-14 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246741', 'tblTempUsageDetail_20' ) start [2025-01-14 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246741', 'tblTempUsageDetail_20' ) end [2025-01-14 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246741', 'tblTempVendorCDR_20' ) start [2025-01-14 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246741', 'tblTempVendorCDR_20' ) end [2025-01-14 13:58:22] Production.INFO: ProcessCDR(1,14246741,1,1,2) [2025-01-14 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246741', 'tblTempUsageDetail_20' ) start [2025-01-14 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246741', 'tblTempUsageDetail_20' ) end [2025-01-14 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:58:27] Production.INFO: ==30530== Releasing lock... [2025-01-14 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:58:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 10:59:05 [end_date_ymd] => 2025-01-14 13:59:05 [RateCDR] => 1 ) [2025-01-14 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 10:59:05' and `end` < '2025-01-14 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 13:59:29] Production.INFO: count ==5596 [2025-01-14 13:59:31] Production.ERROR: pbx CDR StartTime 2025-01-14 10:59:05 - End Time 2025-01-14 13:59:05 [2025-01-14 13:59:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 13:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246746', 'tblTempUsageDetail_20' ) start [2025-01-14 13:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246746', 'tblTempUsageDetail_20' ) end [2025-01-14 13:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246746', 'tblTempVendorCDR_20' ) start [2025-01-14 13:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246746', 'tblTempVendorCDR_20' ) end [2025-01-14 13:59:31] Production.INFO: ProcessCDR(1,14246746,1,1,2) [2025-01-14 13:59:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:59:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 13:59:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:59:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 13:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246746', 'tblTempUsageDetail_20' ) start [2025-01-14 13:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246746', 'tblTempUsageDetail_20' ) end [2025-01-14 13:59:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 13:59:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 13:59:36] Production.INFO: ==30602== Releasing lock... [2025-01-14 13:59:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 13:59:36] Production.INFO: 70 MB #Memory Used# [2025-01-14 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:00:06 [end_date_ymd] => 2025-01-14 14:00:06 [RateCDR] => 1 ) [2025-01-14 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:00:06' and `end` < '2025-01-14 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:00:33] Production.INFO: count ==5601 [2025-01-14 14:00:35] Production.ERROR: pbx CDR StartTime 2025-01-14 11:00:06 - End Time 2025-01-14 14:00:06 [2025-01-14 14:00:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246751', 'tblTempUsageDetail_20' ) start [2025-01-14 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246751', 'tblTempUsageDetail_20' ) end [2025-01-14 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246751', 'tblTempVendorCDR_20' ) start [2025-01-14 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246751', 'tblTempVendorCDR_20' ) end [2025-01-14 14:00:35] Production.INFO: ProcessCDR(1,14246751,1,1,2) [2025-01-14 14:00:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:00:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:00:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:00:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246751', 'tblTempUsageDetail_20' ) start [2025-01-14 14:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246751', 'tblTempUsageDetail_20' ) end [2025-01-14 14:00:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:00:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:00:40] Production.INFO: ==30677== Releasing lock... [2025-01-14 14:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:00:40] Production.INFO: 70 MB #Memory Used# [2025-01-14 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:01:05 [end_date_ymd] => 2025-01-14 14:01:05 [RateCDR] => 1 ) [2025-01-14 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:01:05' and `end` < '2025-01-14 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:01:26] Production.INFO: count ==5555 [2025-01-14 14:01:28] Production.ERROR: pbx CDR StartTime 2025-01-14 11:01:05 - End Time 2025-01-14 14:01:05 [2025-01-14 14:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246757', 'tblTempUsageDetail_20' ) start [2025-01-14 14:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246757', 'tblTempUsageDetail_20' ) end [2025-01-14 14:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246757', 'tblTempVendorCDR_20' ) start [2025-01-14 14:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246757', 'tblTempVendorCDR_20' ) end [2025-01-14 14:01:29] Production.INFO: ProcessCDR(1,14246757,1,1,2) [2025-01-14 14:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246757', 'tblTempUsageDetail_20' ) start [2025-01-14 14:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246757', 'tblTempUsageDetail_20' ) end [2025-01-14 14:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:01:33] Production.INFO: ==30760== Releasing lock... [2025-01-14 14:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:01:33] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:02:05 [end_date_ymd] => 2025-01-14 14:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:02:22] Production.INFO: count ==5558 [2025-01-14 14:02:25] Production.ERROR: pbx CDR StartTime 2025-01-14 11:02:05 - End Time 2025-01-14 14:02:05 [2025-01-14 14:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246762', 'tblTempUsageDetail_20' ) start [2025-01-14 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246762', 'tblTempUsageDetail_20' ) end [2025-01-14 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246762', 'tblTempVendorCDR_20' ) start [2025-01-14 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246762', 'tblTempVendorCDR_20' ) end [2025-01-14 14:02:25] Production.INFO: ProcessCDR(1,14246762,1,1,2) [2025-01-14 14:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246762', 'tblTempUsageDetail_20' ) start [2025-01-14 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246762', 'tblTempUsageDetail_20' ) end [2025-01-14 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:02:28] Production.INFO: ==30835== Releasing lock... [2025-01-14 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:02:28] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:03:05 [end_date_ymd] => 2025-01-14 14:03:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:03:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:03:20] Production.INFO: count ==5554 [2025-01-14 14:03:23] Production.ERROR: pbx CDR StartTime 2025-01-14 11:03:05 - End Time 2025-01-14 14:03:05 [2025-01-14 14:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246767', 'tblTempUsageDetail_20' ) start [2025-01-14 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246767', 'tblTempUsageDetail_20' ) end [2025-01-14 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246767', 'tblTempVendorCDR_20' ) start [2025-01-14 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246767', 'tblTempVendorCDR_20' ) end [2025-01-14 14:03:23] Production.INFO: ProcessCDR(1,14246767,1,1,2) [2025-01-14 14:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246767', 'tblTempUsageDetail_20' ) start [2025-01-14 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246767', 'tblTempUsageDetail_20' ) end [2025-01-14 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:03:28] Production.INFO: ==30911== Releasing lock... [2025-01-14 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:03:28] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:04:05 [end_date_ymd] => 2025-01-14 14:04:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:04:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:04:21] Production.INFO: count ==5545 [2025-01-14 14:04:23] Production.ERROR: pbx CDR StartTime 2025-01-14 11:04:05 - End Time 2025-01-14 14:04:05 [2025-01-14 14:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246772', 'tblTempUsageDetail_20' ) start [2025-01-14 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246772', 'tblTempUsageDetail_20' ) end [2025-01-14 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246772', 'tblTempVendorCDR_20' ) start [2025-01-14 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246772', 'tblTempVendorCDR_20' ) end [2025-01-14 14:04:24] Production.INFO: ProcessCDR(1,14246772,1,1,2) [2025-01-14 14:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246772', 'tblTempUsageDetail_20' ) start [2025-01-14 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246772', 'tblTempUsageDetail_20' ) end [2025-01-14 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:04:28] Production.INFO: ==30991== Releasing lock... [2025-01-14 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:04:28] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:05:05 [end_date_ymd] => 2025-01-14 14:05:05 [RateCDR] => 1 ) [2025-01-14 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:05:05' and `end` < '2025-01-14 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:05:19] Production.INFO: count ==5570 [2025-01-14 14:05:22] Production.ERROR: pbx CDR StartTime 2025-01-14 11:05:05 - End Time 2025-01-14 14:05:05 [2025-01-14 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246777', 'tblTempUsageDetail_20' ) start [2025-01-14 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246777', 'tblTempUsageDetail_20' ) end [2025-01-14 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246777', 'tblTempVendorCDR_20' ) start [2025-01-14 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246777', 'tblTempVendorCDR_20' ) end [2025-01-14 14:05:22] Production.INFO: ProcessCDR(1,14246777,1,1,2) [2025-01-14 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246777', 'tblTempUsageDetail_20' ) start [2025-01-14 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246777', 'tblTempUsageDetail_20' ) end [2025-01-14 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:05:27] Production.INFO: ==31061== Releasing lock... [2025-01-14 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:05:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:06:05 [end_date_ymd] => 2025-01-14 14:06:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:06:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:06:24] Production.INFO: count ==5566 [2025-01-14 14:06:26] Production.ERROR: pbx CDR StartTime 2025-01-14 11:06:05 - End Time 2025-01-14 14:06:05 [2025-01-14 14:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246782', 'tblTempUsageDetail_20' ) start [2025-01-14 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246782', 'tblTempUsageDetail_20' ) end [2025-01-14 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246782', 'tblTempVendorCDR_20' ) start [2025-01-14 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246782', 'tblTempVendorCDR_20' ) end [2025-01-14 14:06:26] Production.INFO: ProcessCDR(1,14246782,1,1,2) [2025-01-14 14:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246782', 'tblTempUsageDetail_20' ) start [2025-01-14 14:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246782', 'tblTempUsageDetail_20' ) end [2025-01-14 14:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:06:31] Production.INFO: ==31133== Releasing lock... [2025-01-14 14:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:06:31] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:07:05 [end_date_ymd] => 2025-01-14 14:07:05 [RateCDR] => 1 ) [2025-01-14 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:07:05' and `end` < '2025-01-14 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:07:22] Production.INFO: count ==5576 [2025-01-14 14:07:24] Production.ERROR: pbx CDR StartTime 2025-01-14 11:07:05 - End Time 2025-01-14 14:07:05 [2025-01-14 14:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246787', 'tblTempUsageDetail_20' ) start [2025-01-14 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246787', 'tblTempUsageDetail_20' ) end [2025-01-14 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246787', 'tblTempVendorCDR_20' ) start [2025-01-14 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246787', 'tblTempVendorCDR_20' ) end [2025-01-14 14:07:25] Production.INFO: ProcessCDR(1,14246787,1,1,2) [2025-01-14 14:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246787', 'tblTempUsageDetail_20' ) start [2025-01-14 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246787', 'tblTempUsageDetail_20' ) end [2025-01-14 14:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:07:29] Production.INFO: ==31206== Releasing lock... [2025-01-14 14:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:07:29] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:08:05 [end_date_ymd] => 2025-01-14 14:08:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:08:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:08:23] Production.INFO: count ==5573 [2025-01-14 14:08:25] Production.ERROR: pbx CDR StartTime 2025-01-14 11:08:05 - End Time 2025-01-14 14:08:05 [2025-01-14 14:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246792', 'tblTempUsageDetail_20' ) start [2025-01-14 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246792', 'tblTempUsageDetail_20' ) end [2025-01-14 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246792', 'tblTempVendorCDR_20' ) start [2025-01-14 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246792', 'tblTempVendorCDR_20' ) end [2025-01-14 14:08:25] Production.INFO: ProcessCDR(1,14246792,1,1,2) [2025-01-14 14:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246792', 'tblTempUsageDetail_20' ) start [2025-01-14 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246792', 'tblTempUsageDetail_20' ) end [2025-01-14 14:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:08:30] Production.INFO: ==31282== Releasing lock... [2025-01-14 14:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:08:30] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:09:05 [end_date_ymd] => 2025-01-14 14:09:05 [RateCDR] => 1 ) [2025-01-14 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:09:05' and `end` < '2025-01-14 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:09:19] Production.INFO: count ==5529 [2025-01-14 14:09:21] Production.ERROR: pbx CDR StartTime 2025-01-14 11:09:05 - End Time 2025-01-14 14:09:05 [2025-01-14 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246797', 'tblTempUsageDetail_20' ) start [2025-01-14 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246797', 'tblTempUsageDetail_20' ) end [2025-01-14 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246797', 'tblTempVendorCDR_20' ) start [2025-01-14 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246797', 'tblTempVendorCDR_20' ) end [2025-01-14 14:09:21] Production.INFO: ProcessCDR(1,14246797,1,1,2) [2025-01-14 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246797', 'tblTempUsageDetail_20' ) start [2025-01-14 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246797', 'tblTempUsageDetail_20' ) end [2025-01-14 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:09:26] Production.INFO: ==31354== Releasing lock... [2025-01-14 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:09:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:10:05 [end_date_ymd] => 2025-01-14 14:10:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:10:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:10:36] Production.INFO: count ==5514 [2025-01-14 14:10:38] Production.ERROR: pbx CDR StartTime 2025-01-14 11:10:05 - End Time 2025-01-14 14:10:05 [2025-01-14 14:10:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246803', 'tblTempUsageDetail_20' ) start [2025-01-14 14:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246803', 'tblTempUsageDetail_20' ) end [2025-01-14 14:10:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246803', 'tblTempVendorCDR_20' ) start [2025-01-14 14:10:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246803', 'tblTempVendorCDR_20' ) end [2025-01-14 14:10:39] Production.INFO: ProcessCDR(1,14246803,1,1,2) [2025-01-14 14:10:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:10:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:10:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:10:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:10:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246803', 'tblTempUsageDetail_20' ) start [2025-01-14 14:10:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246803', 'tblTempUsageDetail_20' ) end [2025-01-14 14:10:43] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:10:43] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:10:43] Production.INFO: ==31425== Releasing lock... [2025-01-14 14:10:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:10:43] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:11:05 [end_date_ymd] => 2025-01-14 14:11:05 [RateCDR] => 1 ) [2025-01-14 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:11:05' and `end` < '2025-01-14 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:11:30] Production.INFO: count ==5452 [2025-01-14 14:11:32] Production.ERROR: pbx CDR StartTime 2025-01-14 11:11:05 - End Time 2025-01-14 14:11:05 [2025-01-14 14:11:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246808', 'tblTempUsageDetail_20' ) start [2025-01-14 14:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246808', 'tblTempUsageDetail_20' ) end [2025-01-14 14:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246808', 'tblTempVendorCDR_20' ) start [2025-01-14 14:11:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246808', 'tblTempVendorCDR_20' ) end [2025-01-14 14:11:32] Production.INFO: ProcessCDR(1,14246808,1,1,2) [2025-01-14 14:11:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:11:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:11:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:11:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246808', 'tblTempUsageDetail_20' ) start [2025-01-14 14:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246808', 'tblTempUsageDetail_20' ) end [2025-01-14 14:11:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:11:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:11:37] Production.INFO: ==31500== Releasing lock... [2025-01-14 14:11:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:11:37] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:12:05 [end_date_ymd] => 2025-01-14 14:12:05 [RateCDR] => 1 ) [2025-01-14 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:12:05' and `end` < '2025-01-14 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:12:23] Production.INFO: count ==5439 [2025-01-14 14:12:25] Production.ERROR: pbx CDR StartTime 2025-01-14 11:12:05 - End Time 2025-01-14 14:12:05 [2025-01-14 14:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246813', 'tblTempUsageDetail_20' ) start [2025-01-14 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246813', 'tblTempUsageDetail_20' ) end [2025-01-14 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246813', 'tblTempVendorCDR_20' ) start [2025-01-14 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246813', 'tblTempVendorCDR_20' ) end [2025-01-14 14:12:25] Production.INFO: ProcessCDR(1,14246813,1,1,2) [2025-01-14 14:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246813', 'tblTempUsageDetail_20' ) start [2025-01-14 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246813', 'tblTempUsageDetail_20' ) end [2025-01-14 14:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:12:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:12:30] Production.INFO: ==31612== Releasing lock... [2025-01-14 14:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:12:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:13:05 [end_date_ymd] => 2025-01-14 14:13:05 [RateCDR] => 1 ) [2025-01-14 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:13:05' and `end` < '2025-01-14 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:13:19] Production.INFO: count ==5425 [2025-01-14 14:13:21] Production.ERROR: pbx CDR StartTime 2025-01-14 11:13:05 - End Time 2025-01-14 14:13:05 [2025-01-14 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246818', 'tblTempUsageDetail_20' ) start [2025-01-14 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246818', 'tblTempUsageDetail_20' ) end [2025-01-14 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246818', 'tblTempVendorCDR_20' ) start [2025-01-14 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246818', 'tblTempVendorCDR_20' ) end [2025-01-14 14:13:22] Production.INFO: ProcessCDR(1,14246818,1,1,2) [2025-01-14 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246818', 'tblTempUsageDetail_20' ) start [2025-01-14 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246818', 'tblTempUsageDetail_20' ) end [2025-01-14 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:13:27] Production.INFO: ==31685== Releasing lock... [2025-01-14 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:13:27] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:14:05 [end_date_ymd] => 2025-01-14 14:14:05 [RateCDR] => 1 ) [2025-01-14 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:14:05' and `end` < '2025-01-14 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:14:31] Production.INFO: count ==5439 [2025-01-14 14:14:34] Production.ERROR: pbx CDR StartTime 2025-01-14 11:14:05 - End Time 2025-01-14 14:14:05 [2025-01-14 14:14:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246823', 'tblTempUsageDetail_20' ) start [2025-01-14 14:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246823', 'tblTempUsageDetail_20' ) end [2025-01-14 14:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246823', 'tblTempVendorCDR_20' ) start [2025-01-14 14:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246823', 'tblTempVendorCDR_20' ) end [2025-01-14 14:14:34] Production.INFO: ProcessCDR(1,14246823,1,1,2) [2025-01-14 14:14:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:14:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:14:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:14:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:14:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246823', 'tblTempUsageDetail_20' ) start [2025-01-14 14:14:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246823', 'tblTempUsageDetail_20' ) end [2025-01-14 14:14:39] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:14:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:14:39] Production.INFO: ==31757== Releasing lock... [2025-01-14 14:14:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:14:39] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:15:04 [end_date_ymd] => 2025-01-14 14:15:04 [RateCDR] => 1 ) [2025-01-14 14:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:15:04' and `end` < '2025-01-14 14:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:15:33] Production.INFO: count ==5435 [2025-01-14 14:15:35] Production.ERROR: pbx CDR StartTime 2025-01-14 11:15:04 - End Time 2025-01-14 14:15:04 [2025-01-14 14:15:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246828', 'tblTempUsageDetail_20' ) start [2025-01-14 14:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246828', 'tblTempUsageDetail_20' ) end [2025-01-14 14:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246828', 'tblTempVendorCDR_20' ) start [2025-01-14 14:15:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246828', 'tblTempVendorCDR_20' ) end [2025-01-14 14:15:36] Production.INFO: ProcessCDR(1,14246828,1,1,2) [2025-01-14 14:15:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:15:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:15:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:15:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:15:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246828', 'tblTempUsageDetail_20' ) start [2025-01-14 14:15:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246828', 'tblTempUsageDetail_20' ) end [2025-01-14 14:15:41] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:15:41] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:15:41] Production.INFO: ==31831== Releasing lock... [2025-01-14 14:15:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:15:41] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:16:05 [end_date_ymd] => 2025-01-14 14:16:05 [RateCDR] => 1 ) [2025-01-14 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:16:05' and `end` < '2025-01-14 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:16:33] Production.INFO: count ==5443 [2025-01-14 14:16:36] Production.ERROR: pbx CDR StartTime 2025-01-14 11:16:05 - End Time 2025-01-14 14:16:05 [2025-01-14 14:16:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246833', 'tblTempUsageDetail_20' ) start [2025-01-14 14:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246833', 'tblTempUsageDetail_20' ) end [2025-01-14 14:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246833', 'tblTempVendorCDR_20' ) start [2025-01-14 14:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246833', 'tblTempVendorCDR_20' ) end [2025-01-14 14:16:36] Production.INFO: ProcessCDR(1,14246833,1,1,2) [2025-01-14 14:16:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:16:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:16:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:16:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:16:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246833', 'tblTempUsageDetail_20' ) start [2025-01-14 14:16:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246833', 'tblTempUsageDetail_20' ) end [2025-01-14 14:16:41] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:16:41] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:16:41] Production.INFO: ==31909== Releasing lock... [2025-01-14 14:16:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:16:41] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:17:04 [end_date_ymd] => 2025-01-14 14:17:04 [RateCDR] => 1 ) [2025-01-14 14:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:17:04' and `end` < '2025-01-14 14:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:17:26] Production.INFO: count ==5472 [2025-01-14 14:17:28] Production.ERROR: pbx CDR StartTime 2025-01-14 11:17:04 - End Time 2025-01-14 14:17:04 [2025-01-14 14:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246838', 'tblTempUsageDetail_20' ) start [2025-01-14 14:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246838', 'tblTempUsageDetail_20' ) end [2025-01-14 14:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246838', 'tblTempVendorCDR_20' ) start [2025-01-14 14:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246838', 'tblTempVendorCDR_20' ) end [2025-01-14 14:17:28] Production.INFO: ProcessCDR(1,14246838,1,1,2) [2025-01-14 14:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246838', 'tblTempUsageDetail_20' ) start [2025-01-14 14:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246838', 'tblTempUsageDetail_20' ) end [2025-01-14 14:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:17:33] Production.INFO: ==31981== Releasing lock... [2025-01-14 14:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:17:33] Production.INFO: 69 MB #Memory Used# [2025-01-14 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:18:05 [end_date_ymd] => 2025-01-14 14:18:05 [RateCDR] => 1 ) [2025-01-14 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:18:05' and `end` < '2025-01-14 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:18:21] Production.INFO: count ==5493 [2025-01-14 14:18:23] Production.ERROR: pbx CDR StartTime 2025-01-14 11:18:05 - End Time 2025-01-14 14:18:05 [2025-01-14 14:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246843', 'tblTempUsageDetail_20' ) start [2025-01-14 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246843', 'tblTempUsageDetail_20' ) end [2025-01-14 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246843', 'tblTempVendorCDR_20' ) start [2025-01-14 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246843', 'tblTempVendorCDR_20' ) end [2025-01-14 14:18:23] Production.INFO: ProcessCDR(1,14246843,1,1,2) [2025-01-14 14:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246843', 'tblTempUsageDetail_20' ) start [2025-01-14 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246843', 'tblTempUsageDetail_20' ) end [2025-01-14 14:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:18:28] Production.INFO: ==32054== Releasing lock... [2025-01-14 14:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:18:28] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:19:05 [end_date_ymd] => 2025-01-14 14:19:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:19:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:19:19] Production.INFO: count ==5501 [2025-01-14 14:19:21] Production.ERROR: pbx CDR StartTime 2025-01-14 11:19:05 - End Time 2025-01-14 14:19:05 [2025-01-14 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246848', 'tblTempUsageDetail_20' ) start [2025-01-14 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246848', 'tblTempUsageDetail_20' ) end [2025-01-14 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246848', 'tblTempVendorCDR_20' ) start [2025-01-14 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246848', 'tblTempVendorCDR_20' ) end [2025-01-14 14:19:22] Production.INFO: ProcessCDR(1,14246848,1,1,2) [2025-01-14 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246848', 'tblTempUsageDetail_20' ) start [2025-01-14 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246848', 'tblTempUsageDetail_20' ) end [2025-01-14 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:19:27] Production.INFO: ==32126== Releasing lock... [2025-01-14 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:19:27] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:20:06 [end_date_ymd] => 2025-01-14 14:20:06 [RateCDR] => 1 ) [2025-01-14 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:20:06' and `end` < '2025-01-14 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:20:32] Production.INFO: count ==5502 [2025-01-14 14:20:34] Production.ERROR: pbx CDR StartTime 2025-01-14 11:20:06 - End Time 2025-01-14 14:20:06 [2025-01-14 14:20:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246854', 'tblTempUsageDetail_20' ) start [2025-01-14 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246854', 'tblTempUsageDetail_20' ) end [2025-01-14 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246854', 'tblTempVendorCDR_20' ) start [2025-01-14 14:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246854', 'tblTempVendorCDR_20' ) end [2025-01-14 14:20:34] Production.INFO: ProcessCDR(1,14246854,1,1,2) [2025-01-14 14:20:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:20:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:20:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:20:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246854', 'tblTempUsageDetail_20' ) start [2025-01-14 14:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246854', 'tblTempUsageDetail_20' ) end [2025-01-14 14:20:39] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:20:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:20:39] Production.INFO: ==32201== Releasing lock... [2025-01-14 14:20:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:20:39] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:21:05 [end_date_ymd] => 2025-01-14 14:21:05 [RateCDR] => 1 ) [2025-01-14 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:21:05' and `end` < '2025-01-14 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:21:23] Production.INFO: count ==5473 [2025-01-14 14:21:25] Production.ERROR: pbx CDR StartTime 2025-01-14 11:21:05 - End Time 2025-01-14 14:21:05 [2025-01-14 14:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246859', 'tblTempUsageDetail_20' ) start [2025-01-14 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246859', 'tblTempUsageDetail_20' ) end [2025-01-14 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246859', 'tblTempVendorCDR_20' ) start [2025-01-14 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246859', 'tblTempVendorCDR_20' ) end [2025-01-14 14:21:25] Production.INFO: ProcessCDR(1,14246859,1,1,2) [2025-01-14 14:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246859', 'tblTempUsageDetail_20' ) start [2025-01-14 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246859', 'tblTempUsageDetail_20' ) end [2025-01-14 14:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:21:30] Production.INFO: ==32275== Releasing lock... [2025-01-14 14:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:21:30] Production.INFO: 69 MB #Memory Used# [2025-01-14 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:22:05 [end_date_ymd] => 2025-01-14 14:22:05 [RateCDR] => 1 ) [2025-01-14 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:22:05' and `end` < '2025-01-14 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:22:29] Production.INFO: count ==5495 [2025-01-14 14:22:31] Production.ERROR: pbx CDR StartTime 2025-01-14 11:22:05 - End Time 2025-01-14 14:22:05 [2025-01-14 14:22:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246864', 'tblTempUsageDetail_20' ) start [2025-01-14 14:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246864', 'tblTempUsageDetail_20' ) end [2025-01-14 14:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246864', 'tblTempVendorCDR_20' ) start [2025-01-14 14:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246864', 'tblTempVendorCDR_20' ) end [2025-01-14 14:22:31] Production.INFO: ProcessCDR(1,14246864,1,1,2) [2025-01-14 14:22:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:22:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:22:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:22:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246864', 'tblTempUsageDetail_20' ) start [2025-01-14 14:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246864', 'tblTempUsageDetail_20' ) end [2025-01-14 14:22:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:22:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:22:36] Production.INFO: ==32347== Releasing lock... [2025-01-14 14:22:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:22:36] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:23:05 [end_date_ymd] => 2025-01-14 14:23:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:23:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:23:26] Production.INFO: count ==5501 [2025-01-14 14:23:28] Production.ERROR: pbx CDR StartTime 2025-01-14 11:23:05 - End Time 2025-01-14 14:23:05 [2025-01-14 14:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246869', 'tblTempUsageDetail_20' ) start [2025-01-14 14:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246869', 'tblTempUsageDetail_20' ) end [2025-01-14 14:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246869', 'tblTempVendorCDR_20' ) start [2025-01-14 14:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246869', 'tblTempVendorCDR_20' ) end [2025-01-14 14:23:28] Production.INFO: ProcessCDR(1,14246869,1,1,2) [2025-01-14 14:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246869', 'tblTempUsageDetail_20' ) start [2025-01-14 14:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246869', 'tblTempUsageDetail_20' ) end [2025-01-14 14:23:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:23:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:23:33] Production.INFO: ==32417== Releasing lock... [2025-01-14 14:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:23:33] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:24:05 [end_date_ymd] => 2025-01-14 14:24:05 [RateCDR] => 1 ) [2025-01-14 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:24:05' and `end` < '2025-01-14 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:24:28] Production.INFO: count ==5513 [2025-01-14 14:24:31] Production.ERROR: pbx CDR StartTime 2025-01-14 11:24:05 - End Time 2025-01-14 14:24:05 [2025-01-14 14:24:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246874', 'tblTempUsageDetail_20' ) start [2025-01-14 14:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246874', 'tblTempUsageDetail_20' ) end [2025-01-14 14:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246874', 'tblTempVendorCDR_20' ) start [2025-01-14 14:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246874', 'tblTempVendorCDR_20' ) end [2025-01-14 14:24:31] Production.INFO: ProcessCDR(1,14246874,1,1,2) [2025-01-14 14:24:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246874', 'tblTempUsageDetail_20' ) start [2025-01-14 14:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246874', 'tblTempUsageDetail_20' ) end [2025-01-14 14:24:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:24:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:24:36] Production.INFO: ==32490== Releasing lock... [2025-01-14 14:24:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:24:36] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:25:04 [end_date_ymd] => 2025-01-14 14:25:04 [RateCDR] => 1 ) [2025-01-14 14:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:25:04' and `end` < '2025-01-14 14:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:25:22] Production.INFO: count ==5518 [2025-01-14 14:25:24] Production.ERROR: pbx CDR StartTime 2025-01-14 11:25:04 - End Time 2025-01-14 14:25:04 [2025-01-14 14:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246879', 'tblTempUsageDetail_20' ) start [2025-01-14 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246879', 'tblTempUsageDetail_20' ) end [2025-01-14 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246879', 'tblTempVendorCDR_20' ) start [2025-01-14 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246879', 'tblTempVendorCDR_20' ) end [2025-01-14 14:25:25] Production.INFO: ProcessCDR(1,14246879,1,1,2) [2025-01-14 14:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246879', 'tblTempUsageDetail_20' ) start [2025-01-14 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246879', 'tblTempUsageDetail_20' ) end [2025-01-14 14:25:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:25:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:25:29] Production.INFO: ==32562== Releasing lock... [2025-01-14 14:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:25:29] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:26:05 [end_date_ymd] => 2025-01-14 14:26:05 [RateCDR] => 1 ) [2025-01-14 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:26:05' and `end` < '2025-01-14 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:26:20] Production.INFO: count ==5526 [2025-01-14 14:26:22] Production.ERROR: pbx CDR StartTime 2025-01-14 11:26:05 - End Time 2025-01-14 14:26:05 [2025-01-14 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246884', 'tblTempUsageDetail_20' ) start [2025-01-14 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246884', 'tblTempUsageDetail_20' ) end [2025-01-14 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246884', 'tblTempVendorCDR_20' ) start [2025-01-14 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246884', 'tblTempVendorCDR_20' ) end [2025-01-14 14:26:22] Production.INFO: ProcessCDR(1,14246884,1,1,2) [2025-01-14 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246884', 'tblTempUsageDetail_20' ) start [2025-01-14 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246884', 'tblTempUsageDetail_20' ) end [2025-01-14 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:26:27] Production.INFO: ==32636== Releasing lock... [2025-01-14 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:26:27] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:27:05 [end_date_ymd] => 2025-01-14 14:27:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:27:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:27:21] Production.INFO: count ==5528 [2025-01-14 14:27:23] Production.ERROR: pbx CDR StartTime 2025-01-14 11:27:05 - End Time 2025-01-14 14:27:05 [2025-01-14 14:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246889', 'tblTempUsageDetail_20' ) start [2025-01-14 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246889', 'tblTempUsageDetail_20' ) end [2025-01-14 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246889', 'tblTempVendorCDR_20' ) start [2025-01-14 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246889', 'tblTempVendorCDR_20' ) end [2025-01-14 14:27:24] Production.INFO: ProcessCDR(1,14246889,1,1,2) [2025-01-14 14:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246889', 'tblTempUsageDetail_20' ) start [2025-01-14 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246889', 'tblTempUsageDetail_20' ) end [2025-01-14 14:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:27:29] Production.INFO: ==32707== Releasing lock... [2025-01-14 14:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:27:29] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:28:05 [end_date_ymd] => 2025-01-14 14:28:05 [RateCDR] => 1 ) [2025-01-14 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:28:05' and `end` < '2025-01-14 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:28:19] Production.INFO: count ==5549 [2025-01-14 14:28:21] Production.ERROR: pbx CDR StartTime 2025-01-14 11:28:05 - End Time 2025-01-14 14:28:05 [2025-01-14 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246894', 'tblTempUsageDetail_20' ) start [2025-01-14 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246894', 'tblTempUsageDetail_20' ) end [2025-01-14 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246894', 'tblTempVendorCDR_20' ) start [2025-01-14 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246894', 'tblTempVendorCDR_20' ) end [2025-01-14 14:28:21] Production.INFO: ProcessCDR(1,14246894,1,1,2) [2025-01-14 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246894', 'tblTempUsageDetail_20' ) start [2025-01-14 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246894', 'tblTempUsageDetail_20' ) end [2025-01-14 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:28:26] Production.INFO: ==379== Releasing lock... [2025-01-14 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:28:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:29:05 [end_date_ymd] => 2025-01-14 14:29:05 [RateCDR] => 1 ) [2025-01-14 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:29:05' and `end` < '2025-01-14 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:29:19] Production.INFO: count ==5595 [2025-01-14 14:29:21] Production.ERROR: pbx CDR StartTime 2025-01-14 11:29:05 - End Time 2025-01-14 14:29:05 [2025-01-14 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246899', 'tblTempUsageDetail_20' ) start [2025-01-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246899', 'tblTempUsageDetail_20' ) end [2025-01-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246899', 'tblTempVendorCDR_20' ) start [2025-01-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246899', 'tblTempVendorCDR_20' ) end [2025-01-14 14:29:21] Production.INFO: ProcessCDR(1,14246899,1,1,2) [2025-01-14 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246899', 'tblTempUsageDetail_20' ) start [2025-01-14 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246899', 'tblTempUsageDetail_20' ) end [2025-01-14 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:29:26] Production.INFO: ==451== Releasing lock... [2025-01-14 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:29:26] Production.INFO: 70 MB #Memory Used# [2025-01-14 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:30:06 [end_date_ymd] => 2025-01-14 14:30:06 [RateCDR] => 1 ) [2025-01-14 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:30:06' and `end` < '2025-01-14 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:30:21] Production.INFO: count ==5593 [2025-01-14 14:30:24] Production.ERROR: pbx CDR StartTime 2025-01-14 11:30:06 - End Time 2025-01-14 14:30:06 [2025-01-14 14:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246904', 'tblTempUsageDetail_20' ) start [2025-01-14 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246904', 'tblTempUsageDetail_20' ) end [2025-01-14 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246904', 'tblTempVendorCDR_20' ) start [2025-01-14 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246904', 'tblTempVendorCDR_20' ) end [2025-01-14 14:30:24] Production.INFO: ProcessCDR(1,14246904,1,1,2) [2025-01-14 14:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246904', 'tblTempUsageDetail_20' ) start [2025-01-14 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246904', 'tblTempUsageDetail_20' ) end [2025-01-14 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:30:29] Production.INFO: ==530== Releasing lock... [2025-01-14 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:30:29] Production.INFO: 70 MB #Memory Used# [2025-01-14 14:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:31:04 [end_date_ymd] => 2025-01-14 14:31:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:31:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:31:21] Production.INFO: count ==5618 [2025-01-14 14:31:23] Production.ERROR: pbx CDR StartTime 2025-01-14 11:31:04 - End Time 2025-01-14 14:31:04 [2025-01-14 14:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246910', 'tblTempUsageDetail_20' ) start [2025-01-14 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246910', 'tblTempUsageDetail_20' ) end [2025-01-14 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246910', 'tblTempVendorCDR_20' ) start [2025-01-14 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246910', 'tblTempVendorCDR_20' ) end [2025-01-14 14:31:23] Production.INFO: ProcessCDR(1,14246910,1,1,2) [2025-01-14 14:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246910', 'tblTempUsageDetail_20' ) start [2025-01-14 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246910', 'tblTempUsageDetail_20' ) end [2025-01-14 14:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:31:28] Production.INFO: ==606== Releasing lock... [2025-01-14 14:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:31:28] Production.INFO: 70 MB #Memory Used# [2025-01-14 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:32:05 [end_date_ymd] => 2025-01-14 14:32:05 [RateCDR] => 1 ) [2025-01-14 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:32:05' and `end` < '2025-01-14 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:32:33] Production.INFO: count ==5637 [2025-01-14 14:32:35] Production.ERROR: pbx CDR StartTime 2025-01-14 11:32:05 - End Time 2025-01-14 14:32:05 [2025-01-14 14:32:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246915', 'tblTempUsageDetail_20' ) start [2025-01-14 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246915', 'tblTempUsageDetail_20' ) end [2025-01-14 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246915', 'tblTempVendorCDR_20' ) start [2025-01-14 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246915', 'tblTempVendorCDR_20' ) end [2025-01-14 14:32:35] Production.INFO: ProcessCDR(1,14246915,1,1,2) [2025-01-14 14:32:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:32:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:32:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:32:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246915', 'tblTempUsageDetail_20' ) start [2025-01-14 14:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246915', 'tblTempUsageDetail_20' ) end [2025-01-14 14:32:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:32:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:32:40] Production.INFO: ==709== Releasing lock... [2025-01-14 14:32:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:32:40] Production.INFO: 70.25 MB #Memory Used# [2025-01-14 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:33:05 [end_date_ymd] => 2025-01-14 14:33:05 [RateCDR] => 1 ) [2025-01-14 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:33:05' and `end` < '2025-01-14 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:33:28] Production.INFO: count ==5700 [2025-01-14 14:33:30] Production.ERROR: pbx CDR StartTime 2025-01-14 11:33:05 - End Time 2025-01-14 14:33:05 [2025-01-14 14:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246920', 'tblTempUsageDetail_20' ) start [2025-01-14 14:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246920', 'tblTempUsageDetail_20' ) end [2025-01-14 14:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246920', 'tblTempVendorCDR_20' ) start [2025-01-14 14:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246920', 'tblTempVendorCDR_20' ) end [2025-01-14 14:33:31] Production.INFO: ProcessCDR(1,14246920,1,1,2) [2025-01-14 14:33:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:33:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:33:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246920', 'tblTempUsageDetail_20' ) start [2025-01-14 14:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246920', 'tblTempUsageDetail_20' ) end [2025-01-14 14:33:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:33:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:33:36] Production.INFO: ==789== Releasing lock... [2025-01-14 14:33:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:33:36] Production.INFO: 70.75 MB #Memory Used# [2025-01-14 14:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:34:04 [end_date_ymd] => 2025-01-14 14:34:04 [RateCDR] => 1 ) [2025-01-14 14:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:34:04' and `end` < '2025-01-14 14:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:34:25] Production.INFO: count ==5709 [2025-01-14 14:34:27] Production.ERROR: pbx CDR StartTime 2025-01-14 11:34:04 - End Time 2025-01-14 14:34:04 [2025-01-14 14:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246925', 'tblTempUsageDetail_20' ) start [2025-01-14 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246925', 'tblTempUsageDetail_20' ) end [2025-01-14 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246925', 'tblTempVendorCDR_20' ) start [2025-01-14 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246925', 'tblTempVendorCDR_20' ) end [2025-01-14 14:34:27] Production.INFO: ProcessCDR(1,14246925,1,1,2) [2025-01-14 14:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246925', 'tblTempUsageDetail_20' ) start [2025-01-14 14:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246925', 'tblTempUsageDetail_20' ) end [2025-01-14 14:34:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:34:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:34:32] Production.INFO: ==861== Releasing lock... [2025-01-14 14:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:34:32] Production.INFO: 70.75 MB #Memory Used# [2025-01-14 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:35:05 [end_date_ymd] => 2025-01-14 14:35:05 [RateCDR] => 1 ) [2025-01-14 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:35:05' and `end` < '2025-01-14 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:35:26] Production.INFO: count ==5719 [2025-01-14 14:35:28] Production.ERROR: pbx CDR StartTime 2025-01-14 11:35:05 - End Time 2025-01-14 14:35:05 [2025-01-14 14:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246930', 'tblTempUsageDetail_20' ) start [2025-01-14 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246930', 'tblTempUsageDetail_20' ) end [2025-01-14 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246930', 'tblTempVendorCDR_20' ) start [2025-01-14 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246930', 'tblTempVendorCDR_20' ) end [2025-01-14 14:35:29] Production.INFO: ProcessCDR(1,14246930,1,1,2) [2025-01-14 14:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246930', 'tblTempUsageDetail_20' ) start [2025-01-14 14:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246930', 'tblTempUsageDetail_20' ) end [2025-01-14 14:35:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:35:34] Production.INFO: ==942== Releasing lock... [2025-01-14 14:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:35:34] Production.INFO: 70.75 MB #Memory Used# [2025-01-14 14:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:36:04 [end_date_ymd] => 2025-01-14 14:36:04 [RateCDR] => 1 ) [2025-01-14 14: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` >= '2025-01-14 11:36:04' and `end` < '2025-01-14 14: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 ,'') [2025-01-14 14:36:26] Production.INFO: count ==5721 [2025-01-14 14:36:28] Production.ERROR: pbx CDR StartTime 2025-01-14 11:36:04 - End Time 2025-01-14 14:36:04 [2025-01-14 14:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246935', 'tblTempUsageDetail_20' ) start [2025-01-14 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246935', 'tblTempUsageDetail_20' ) end [2025-01-14 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246935', 'tblTempVendorCDR_20' ) start [2025-01-14 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246935', 'tblTempVendorCDR_20' ) end [2025-01-14 14:36:28] Production.INFO: ProcessCDR(1,14246935,1,1,2) [2025-01-14 14:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246935', 'tblTempUsageDetail_20' ) start [2025-01-14 14:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246935', 'tblTempUsageDetail_20' ) end [2025-01-14 14:36:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:36:33] Production.INFO: ==1014== Releasing lock... [2025-01-14 14:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:36:33] Production.INFO: 70.75 MB #Memory Used# [2025-01-14 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:37:05 [end_date_ymd] => 2025-01-14 14:37:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:37:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:37:33] Production.INFO: count ==5738 [2025-01-14 14:37:36] Production.ERROR: pbx CDR StartTime 2025-01-14 11:37:05 - End Time 2025-01-14 14:37:05 [2025-01-14 14:37:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246940', 'tblTempUsageDetail_20' ) start [2025-01-14 14:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246940', 'tblTempUsageDetail_20' ) end [2025-01-14 14:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246940', 'tblTempVendorCDR_20' ) start [2025-01-14 14:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246940', 'tblTempVendorCDR_20' ) end [2025-01-14 14:37:36] Production.INFO: ProcessCDR(1,14246940,1,1,2) [2025-01-14 14:37:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:37:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:37:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:37:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:37:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246940', 'tblTempUsageDetail_20' ) start [2025-01-14 14:37:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246940', 'tblTempUsageDetail_20' ) end [2025-01-14 14:37:41] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:37:41] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:37:41] Production.INFO: ==1086== Releasing lock... [2025-01-14 14:37:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:37:41] Production.INFO: 71 MB #Memory Used# [2025-01-14 14:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:38:04 [end_date_ymd] => 2025-01-14 14:38:04 [RateCDR] => 1 ) [2025-01-14 14:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:38:04' and `end` < '2025-01-14 14:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:38:32] Production.INFO: count ==5784 [2025-01-14 14:38:35] Production.ERROR: pbx CDR StartTime 2025-01-14 11:38:04 - End Time 2025-01-14 14:38:04 [2025-01-14 14:38:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246945', 'tblTempUsageDetail_20' ) start [2025-01-14 14:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246945', 'tblTempUsageDetail_20' ) end [2025-01-14 14:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246945', 'tblTempVendorCDR_20' ) start [2025-01-14 14:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246945', 'tblTempVendorCDR_20' ) end [2025-01-14 14:38:35] Production.INFO: ProcessCDR(1,14246945,1,1,2) [2025-01-14 14:38:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:38:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:38:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:38:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:38:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246945', 'tblTempUsageDetail_20' ) start [2025-01-14 14:38:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246945', 'tblTempUsageDetail_20' ) end [2025-01-14 14:38:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:38:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:38:40] Production.INFO: ==1161== Releasing lock... [2025-01-14 14:38:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:38:40] Production.INFO: 71.25 MB #Memory Used# [2025-01-14 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:39:04 [end_date_ymd] => 2025-01-14 14:39:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:39:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:39:33] Production.INFO: count ==5890 [2025-01-14 14:39:36] Production.ERROR: pbx CDR StartTime 2025-01-14 11:39:04 - End Time 2025-01-14 14:39:04 [2025-01-14 14:39:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246950', 'tblTempUsageDetail_20' ) start [2025-01-14 14:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246950', 'tblTempUsageDetail_20' ) end [2025-01-14 14:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246950', 'tblTempVendorCDR_20' ) start [2025-01-14 14:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246950', 'tblTempVendorCDR_20' ) end [2025-01-14 14:39:36] Production.INFO: ProcessCDR(1,14246950,1,1,2) [2025-01-14 14:39:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:39:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:39:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:39:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:39:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246950', 'tblTempUsageDetail_20' ) start [2025-01-14 14:39:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246950', 'tblTempUsageDetail_20' ) end [2025-01-14 14:39:41] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:39:41] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:39:41] Production.INFO: ==1243== Releasing lock... [2025-01-14 14:39:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:39:41] Production.INFO: 72 MB #Memory Used# [2025-01-14 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:40:06 [end_date_ymd] => 2025-01-14 14:40:06 [RateCDR] => 1 ) [2025-01-14 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:40:06' and `end` < '2025-01-14 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:40:30] Production.INFO: count ==5927 [2025-01-14 14:40:33] Production.ERROR: pbx CDR StartTime 2025-01-14 11:40:06 - End Time 2025-01-14 14:40:06 [2025-01-14 14:40:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246955', 'tblTempUsageDetail_20' ) start [2025-01-14 14:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246955', 'tblTempUsageDetail_20' ) end [2025-01-14 14:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246955', 'tblTempVendorCDR_20' ) start [2025-01-14 14:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246955', 'tblTempVendorCDR_20' ) end [2025-01-14 14:40:33] Production.INFO: ProcessCDR(1,14246955,1,1,2) [2025-01-14 14:40:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:40:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:40:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:40:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246955', 'tblTempUsageDetail_20' ) start [2025-01-14 14:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246955', 'tblTempUsageDetail_20' ) end [2025-01-14 14:40:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:40:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:40:38] Production.INFO: ==1326== Releasing lock... [2025-01-14 14:40:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:40:38] Production.INFO: 72.5 MB #Memory Used# [2025-01-14 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:41:05 [end_date_ymd] => 2025-01-14 14:41:05 [RateCDR] => 1 ) [2025-01-14 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:41:05' and `end` < '2025-01-14 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:41:27] Production.INFO: count ==5951 [2025-01-14 14:41:30] Production.ERROR: pbx CDR StartTime 2025-01-14 11:41:05 - End Time 2025-01-14 14:41:05 [2025-01-14 14:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246961', 'tblTempUsageDetail_20' ) start [2025-01-14 14:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246961', 'tblTempUsageDetail_20' ) end [2025-01-14 14:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246961', 'tblTempVendorCDR_20' ) start [2025-01-14 14:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246961', 'tblTempVendorCDR_20' ) end [2025-01-14 14:41:30] Production.INFO: ProcessCDR(1,14246961,1,1,2) [2025-01-14 14:41:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:41:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:41:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246961', 'tblTempUsageDetail_20' ) start [2025-01-14 14:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246961', 'tblTempUsageDetail_20' ) end [2025-01-14 14:41:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:41:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:41:35] Production.INFO: ==1404== Releasing lock... [2025-01-14 14:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:41:35] Production.INFO: 72.5 MB #Memory Used# [2025-01-14 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:42:05 [end_date_ymd] => 2025-01-14 14:42:05 [RateCDR] => 1 ) [2025-01-14 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:42:05' and `end` < '2025-01-14 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:42:28] Production.INFO: count ==5945 [2025-01-14 14:42:31] Production.ERROR: pbx CDR StartTime 2025-01-14 11:42:05 - End Time 2025-01-14 14:42:05 [2025-01-14 14:42:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246966', 'tblTempUsageDetail_20' ) start [2025-01-14 14:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246966', 'tblTempUsageDetail_20' ) end [2025-01-14 14:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246966', 'tblTempVendorCDR_20' ) start [2025-01-14 14:42:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246966', 'tblTempVendorCDR_20' ) end [2025-01-14 14:42:31] Production.INFO: ProcessCDR(1,14246966,1,1,2) [2025-01-14 14:42:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:42:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:42:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:42:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:42:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246966', 'tblTempUsageDetail_20' ) start [2025-01-14 14:42:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246966', 'tblTempUsageDetail_20' ) end [2025-01-14 14:42:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:42:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:42:36] Production.INFO: ==1477== Releasing lock... [2025-01-14 14:42:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:42:36] Production.INFO: 72.5 MB #Memory Used# [2025-01-14 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:43:04 [end_date_ymd] => 2025-01-14 14:43:04 [RateCDR] => 1 ) [2025-01-14 14: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` >= '2025-01-14 11:43:04' and `end` < '2025-01-14 14: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 ,'') [2025-01-14 14:43:22] Production.INFO: count ==5974 [2025-01-14 14:43:24] Production.ERROR: pbx CDR StartTime 2025-01-14 11:43:04 - End Time 2025-01-14 14:43:04 [2025-01-14 14:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246971', 'tblTempUsageDetail_20' ) start [2025-01-14 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246971', 'tblTempUsageDetail_20' ) end [2025-01-14 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246971', 'tblTempVendorCDR_20' ) start [2025-01-14 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246971', 'tblTempVendorCDR_20' ) end [2025-01-14 14:43:24] Production.INFO: ProcessCDR(1,14246971,1,1,2) [2025-01-14 14:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246971', 'tblTempUsageDetail_20' ) start [2025-01-14 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246971', 'tblTempUsageDetail_20' ) end [2025-01-14 14:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:43:30] Production.INFO: ==1626== Releasing lock... [2025-01-14 14:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:43:30] Production.INFO: 72.75 MB #Memory Used# [2025-01-14 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:44:05 [end_date_ymd] => 2025-01-14 14:44:05 [RateCDR] => 1 ) [2025-01-14 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:44:05' and `end` < '2025-01-14 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:44:26] Production.INFO: count ==5955 [2025-01-14 14:44:28] Production.ERROR: pbx CDR StartTime 2025-01-14 11:44:05 - End Time 2025-01-14 14:44:05 [2025-01-14 14:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246976', 'tblTempUsageDetail_20' ) start [2025-01-14 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246976', 'tblTempUsageDetail_20' ) end [2025-01-14 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246976', 'tblTempVendorCDR_20' ) start [2025-01-14 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246976', 'tblTempVendorCDR_20' ) end [2025-01-14 14:44:28] Production.INFO: ProcessCDR(1,14246976,1,1,2) [2025-01-14 14:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246976', 'tblTempUsageDetail_20' ) start [2025-01-14 14:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246976', 'tblTempUsageDetail_20' ) end [2025-01-14 14:44:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:44:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:44:34] Production.INFO: ==1697== Releasing lock... [2025-01-14 14:44:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:44:34] Production.INFO: 72.75 MB #Memory Used# [2025-01-14 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:45:04 [end_date_ymd] => 2025-01-14 14:45:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:45:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:45:19] Production.INFO: count ==5946 [2025-01-14 14:45:22] Production.ERROR: pbx CDR StartTime 2025-01-14 11:45:04 - End Time 2025-01-14 14:45:04 [2025-01-14 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246981', 'tblTempUsageDetail_20' ) start [2025-01-14 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246981', 'tblTempUsageDetail_20' ) end [2025-01-14 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246981', 'tblTempVendorCDR_20' ) start [2025-01-14 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246981', 'tblTempVendorCDR_20' ) end [2025-01-14 14:45:22] Production.INFO: ProcessCDR(1,14246981,1,1,2) [2025-01-14 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246981', 'tblTempUsageDetail_20' ) start [2025-01-14 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246981', 'tblTempUsageDetail_20' ) end [2025-01-14 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:45:27] Production.INFO: ==1770== Releasing lock... [2025-01-14 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:45:27] Production.INFO: 72.5 MB #Memory Used# [2025-01-14 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:46:05 [end_date_ymd] => 2025-01-14 14:46:05 [RateCDR] => 1 ) [2025-01-14 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:46:05' and `end` < '2025-01-14 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:46:19] Production.INFO: count ==5911 [2025-01-14 14:46:21] Production.ERROR: pbx CDR StartTime 2025-01-14 11:46:05 - End Time 2025-01-14 14:46:05 [2025-01-14 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246986', 'tblTempUsageDetail_20' ) start [2025-01-14 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246986', 'tblTempUsageDetail_20' ) end [2025-01-14 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246986', 'tblTempVendorCDR_20' ) start [2025-01-14 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246986', 'tblTempVendorCDR_20' ) end [2025-01-14 14:46:22] Production.INFO: ProcessCDR(1,14246986,1,1,2) [2025-01-14 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246986', 'tblTempUsageDetail_20' ) start [2025-01-14 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246986', 'tblTempUsageDetail_20' ) end [2025-01-14 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:46:26] Production.INFO: ==1852== Releasing lock... [2025-01-14 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:46:26] Production.INFO: 72.25 MB #Memory Used# [2025-01-14 14:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:47:04 [end_date_ymd] => 2025-01-14 14:47:04 [RateCDR] => 1 ) [2025-01-14 14: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` >= '2025-01-14 11:47:04' and `end` < '2025-01-14 14: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 ,'') [2025-01-14 14:47:31] Production.INFO: count ==5912 [2025-01-14 14:47:34] Production.ERROR: pbx CDR StartTime 2025-01-14 11:47:04 - End Time 2025-01-14 14:47:04 [2025-01-14 14:47:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246991', 'tblTempUsageDetail_20' ) start [2025-01-14 14:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246991', 'tblTempUsageDetail_20' ) end [2025-01-14 14:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246991', 'tblTempVendorCDR_20' ) start [2025-01-14 14:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246991', 'tblTempVendorCDR_20' ) end [2025-01-14 14:47:34] Production.INFO: ProcessCDR(1,14246991,1,1,2) [2025-01-14 14:47:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:47:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:47:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:47:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:47:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246991', 'tblTempUsageDetail_20' ) start [2025-01-14 14:47:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246991', 'tblTempUsageDetail_20' ) end [2025-01-14 14:47:39] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:47:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:47:39] Production.INFO: ==1926== Releasing lock... [2025-01-14 14:47:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:47:39] Production.INFO: 72.25 MB #Memory Used# [2025-01-14 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:48:05 [end_date_ymd] => 2025-01-14 14:48:05 [RateCDR] => 1 ) [2025-01-14 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:48:05' and `end` < '2025-01-14 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:48:24] Production.INFO: count ==5916 [2025-01-14 14:48:27] Production.ERROR: pbx CDR StartTime 2025-01-14 11:48:05 - End Time 2025-01-14 14:48:05 [2025-01-14 14:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246996', 'tblTempUsageDetail_20' ) start [2025-01-14 14:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14246996', 'tblTempUsageDetail_20' ) end [2025-01-14 14:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246996', 'tblTempVendorCDR_20' ) start [2025-01-14 14:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14246996', 'tblTempVendorCDR_20' ) end [2025-01-14 14:48:27] Production.INFO: ProcessCDR(1,14246996,1,1,2) [2025-01-14 14:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14246996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14246996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14246996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14246996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246996', 'tblTempUsageDetail_20' ) start [2025-01-14 14:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14246996', 'tblTempUsageDetail_20' ) end [2025-01-14 14:48:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:48:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:48:32] Production.INFO: ==2000== Releasing lock... [2025-01-14 14:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:48:32] Production.INFO: 72.25 MB #Memory Used# [2025-01-14 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:49:05 [end_date_ymd] => 2025-01-14 14:49:05 [RateCDR] => 1 ) [2025-01-14 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:49:05' and `end` < '2025-01-14 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:49:27] Production.INFO: count ==5947 [2025-01-14 14:49:30] Production.ERROR: pbx CDR StartTime 2025-01-14 11:49:05 - End Time 2025-01-14 14:49:05 [2025-01-14 14:49:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247001', 'tblTempUsageDetail_20' ) start [2025-01-14 14:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247001', 'tblTempUsageDetail_20' ) end [2025-01-14 14:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247001', 'tblTempVendorCDR_20' ) start [2025-01-14 14:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247001', 'tblTempVendorCDR_20' ) end [2025-01-14 14:49:30] Production.INFO: ProcessCDR(1,14247001,1,1,2) [2025-01-14 14:49:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:49:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:49:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:49:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:49:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247001', 'tblTempUsageDetail_20' ) start [2025-01-14 14:49:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247001', 'tblTempUsageDetail_20' ) end [2025-01-14 14:49:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:49:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:49:35] Production.INFO: ==2073== Releasing lock... [2025-01-14 14:49:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:49:35] Production.INFO: 72.5 MB #Memory Used# [2025-01-14 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:50:06 [end_date_ymd] => 2025-01-14 14:50:06 [RateCDR] => 1 ) [2025-01-14 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:50:06' and `end` < '2025-01-14 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:50:25] Production.INFO: count ==5991 [2025-01-14 14:50:28] Production.ERROR: pbx CDR StartTime 2025-01-14 11:50:06 - End Time 2025-01-14 14:50:06 [2025-01-14 14:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247007', 'tblTempUsageDetail_20' ) start [2025-01-14 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247007', 'tblTempUsageDetail_20' ) end [2025-01-14 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247007', 'tblTempVendorCDR_20' ) start [2025-01-14 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247007', 'tblTempVendorCDR_20' ) end [2025-01-14 14:50:28] Production.INFO: ProcessCDR(1,14247007,1,1,2) [2025-01-14 14:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247007', 'tblTempUsageDetail_20' ) start [2025-01-14 14:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247007', 'tblTempUsageDetail_20' ) end [2025-01-14 14:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:50:33] Production.INFO: ==2148== Releasing lock... [2025-01-14 14:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:50:33] Production.INFO: 73 MB #Memory Used# [2025-01-14 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:51:06 [end_date_ymd] => 2025-01-14 14:51:06 [RateCDR] => 1 ) [2025-01-14 14:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:51:06' and `end` < '2025-01-14 14:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:51:19] Production.INFO: count ==5951 [2025-01-14 14:51:22] Production.ERROR: pbx CDR StartTime 2025-01-14 11:51:06 - End Time 2025-01-14 14:51:06 [2025-01-14 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247012', 'tblTempUsageDetail_20' ) start [2025-01-14 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247012', 'tblTempUsageDetail_20' ) end [2025-01-14 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247012', 'tblTempVendorCDR_20' ) start [2025-01-14 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247012', 'tblTempVendorCDR_20' ) end [2025-01-14 14:51:22] Production.INFO: ProcessCDR(1,14247012,1,1,2) [2025-01-14 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247012', 'tblTempUsageDetail_20' ) start [2025-01-14 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247012', 'tblTempUsageDetail_20' ) end [2025-01-14 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:51:27] Production.INFO: ==2222== Releasing lock... [2025-01-14 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:51:27] Production.INFO: 72.5 MB #Memory Used# [2025-01-14 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:52:05 [end_date_ymd] => 2025-01-14 14:52:05 [RateCDR] => 1 ) [2025-01-14 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:52:05' and `end` < '2025-01-14 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:52:20] Production.INFO: count ==5965 [2025-01-14 14:52:23] Production.ERROR: pbx CDR StartTime 2025-01-14 11:52:05 - End Time 2025-01-14 14:52:05 [2025-01-14 14:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247017', 'tblTempUsageDetail_20' ) start [2025-01-14 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247017', 'tblTempUsageDetail_20' ) end [2025-01-14 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247017', 'tblTempVendorCDR_20' ) start [2025-01-14 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247017', 'tblTempVendorCDR_20' ) end [2025-01-14 14:52:23] Production.INFO: ProcessCDR(1,14247017,1,1,2) [2025-01-14 14:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247017', 'tblTempUsageDetail_20' ) start [2025-01-14 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247017', 'tblTempUsageDetail_20' ) end [2025-01-14 14:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:52:28] Production.INFO: ==2293== Releasing lock... [2025-01-14 14:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:52:28] Production.INFO: 72.75 MB #Memory Used# [2025-01-14 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:53:05 [end_date_ymd] => 2025-01-14 14:53:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:53:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:53:30] Production.INFO: count ==5947 [2025-01-14 14:53:32] Production.ERROR: pbx CDR StartTime 2025-01-14 11:53:05 - End Time 2025-01-14 14:53:05 [2025-01-14 14:53:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247022', 'tblTempUsageDetail_20' ) start [2025-01-14 14:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247022', 'tblTempUsageDetail_20' ) end [2025-01-14 14:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247022', 'tblTempVendorCDR_20' ) start [2025-01-14 14:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247022', 'tblTempVendorCDR_20' ) end [2025-01-14 14:53:32] Production.INFO: ProcessCDR(1,14247022,1,1,2) [2025-01-14 14:53:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:53:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:53:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:53:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:53:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247022', 'tblTempUsageDetail_20' ) start [2025-01-14 14:53:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247022', 'tblTempUsageDetail_20' ) end [2025-01-14 14:53:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:53:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:53:37] Production.INFO: ==2366== Releasing lock... [2025-01-14 14:53:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:53:37] Production.INFO: 72.5 MB #Memory Used# [2025-01-14 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:54:05 [end_date_ymd] => 2025-01-14 14:54:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:54:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:54:27] Production.INFO: count ==5930 [2025-01-14 14:54:29] Production.ERROR: pbx CDR StartTime 2025-01-14 11:54:05 - End Time 2025-01-14 14:54:05 [2025-01-14 14:54:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247027', 'tblTempUsageDetail_20' ) start [2025-01-14 14:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247027', 'tblTempUsageDetail_20' ) end [2025-01-14 14:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247027', 'tblTempVendorCDR_20' ) start [2025-01-14 14:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247027', 'tblTempVendorCDR_20' ) end [2025-01-14 14:54:30] Production.INFO: ProcessCDR(1,14247027,1,1,2) [2025-01-14 14:54:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:54:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:54:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:54:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247027', 'tblTempUsageDetail_20' ) start [2025-01-14 14:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247027', 'tblTempUsageDetail_20' ) end [2025-01-14 14:54:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:54:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:54:34] Production.INFO: ==2442== Releasing lock... [2025-01-14 14:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:54:34] Production.INFO: 72.5 MB #Memory Used# [2025-01-14 14:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:55:04 [end_date_ymd] => 2025-01-14 14:55:04 [RateCDR] => 1 ) [2025-01-14 14:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:55:04' and `end` < '2025-01-14 14:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:55:23] Production.INFO: count ==5921 [2025-01-14 14:55:25] Production.ERROR: pbx CDR StartTime 2025-01-14 11:55:04 - End Time 2025-01-14 14:55:04 [2025-01-14 14:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247032', 'tblTempUsageDetail_20' ) start [2025-01-14 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247032', 'tblTempUsageDetail_20' ) end [2025-01-14 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247032', 'tblTempVendorCDR_20' ) start [2025-01-14 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247032', 'tblTempVendorCDR_20' ) end [2025-01-14 14:55:26] Production.INFO: ProcessCDR(1,14247032,1,1,2) [2025-01-14 14:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247032', 'tblTempUsageDetail_20' ) start [2025-01-14 14:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247032', 'tblTempUsageDetail_20' ) end [2025-01-14 14:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:55:30] Production.INFO: ==2517== Releasing lock... [2025-01-14 14:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:55:30] Production.INFO: 72.25 MB #Memory Used# [2025-01-14 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:56:05 [end_date_ymd] => 2025-01-14 14:56:05 [RateCDR] => 1 ) [2025-01-14 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:56:05' and `end` < '2025-01-14 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:56:21] Production.INFO: count ==5925 [2025-01-14 14:56:24] Production.ERROR: pbx CDR StartTime 2025-01-14 11:56:05 - End Time 2025-01-14 14:56:05 [2025-01-14 14:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247037', 'tblTempUsageDetail_20' ) start [2025-01-14 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247037', 'tblTempUsageDetail_20' ) end [2025-01-14 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247037', 'tblTempVendorCDR_20' ) start [2025-01-14 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247037', 'tblTempVendorCDR_20' ) end [2025-01-14 14:56:24] Production.INFO: ProcessCDR(1,14247037,1,1,2) [2025-01-14 14:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247037', 'tblTempUsageDetail_20' ) start [2025-01-14 14:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247037', 'tblTempUsageDetail_20' ) end [2025-01-14 14:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:56:29] Production.INFO: ==2592== Releasing lock... [2025-01-14 14:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:56:29] Production.INFO: 72.5 MB #Memory Used# [2025-01-14 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:57:05 [end_date_ymd] => 2025-01-14 14:57:05 [RateCDR] => 1 ) [2025-01-14 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:57:05' and `end` < '2025-01-14 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:57:19] Production.INFO: count ==5902 [2025-01-14 14:57:21] Production.ERROR: pbx CDR StartTime 2025-01-14 11:57:05 - End Time 2025-01-14 14:57:05 [2025-01-14 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247042', 'tblTempUsageDetail_20' ) start [2025-01-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247042', 'tblTempUsageDetail_20' ) end [2025-01-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247042', 'tblTempVendorCDR_20' ) start [2025-01-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247042', 'tblTempVendorCDR_20' ) end [2025-01-14 14:57:21] Production.INFO: ProcessCDR(1,14247042,1,1,2) [2025-01-14 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247042', 'tblTempUsageDetail_20' ) start [2025-01-14 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247042', 'tblTempUsageDetail_20' ) end [2025-01-14 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:57:26] Production.INFO: ==2664== Releasing lock... [2025-01-14 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:57:26] Production.INFO: 72.25 MB #Memory Used# [2025-01-14 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:58:05 [end_date_ymd] => 2025-01-14 14:58:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 11:58:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 14:58:19] Production.INFO: count ==5889 [2025-01-14 14:58:22] Production.ERROR: pbx CDR StartTime 2025-01-14 11:58:05 - End Time 2025-01-14 14:58:05 [2025-01-14 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247047', 'tblTempUsageDetail_20' ) start [2025-01-14 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247047', 'tblTempUsageDetail_20' ) end [2025-01-14 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247047', 'tblTempVendorCDR_20' ) start [2025-01-14 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247047', 'tblTempVendorCDR_20' ) end [2025-01-14 14:58:22] Production.INFO: ProcessCDR(1,14247047,1,1,2) [2025-01-14 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247047', 'tblTempUsageDetail_20' ) start [2025-01-14 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247047', 'tblTempUsageDetail_20' ) end [2025-01-14 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:58:27] Production.INFO: ==2738== Releasing lock... [2025-01-14 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:58:27] Production.INFO: 72.25 MB #Memory Used# [2025-01-14 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 11:59:05 [end_date_ymd] => 2025-01-14 14:59:05 [RateCDR] => 1 ) [2025-01-14 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 11:59:05' and `end` < '2025-01-14 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 14:59:24] Production.INFO: count ==5874 [2025-01-14 14:59:26] Production.ERROR: pbx CDR StartTime 2025-01-14 11:59:05 - End Time 2025-01-14 14:59:05 [2025-01-14 14:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247052', 'tblTempUsageDetail_20' ) start [2025-01-14 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247052', 'tblTempUsageDetail_20' ) end [2025-01-14 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247052', 'tblTempVendorCDR_20' ) start [2025-01-14 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247052', 'tblTempVendorCDR_20' ) end [2025-01-14 14:59:26] Production.INFO: ProcessCDR(1,14247052,1,1,2) [2025-01-14 14:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 14:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 14:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247052', 'tblTempUsageDetail_20' ) start [2025-01-14 14:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247052', 'tblTempUsageDetail_20' ) end [2025-01-14 14:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 14:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 14:59:31] Production.INFO: ==2849== Releasing lock... [2025-01-14 14:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 14:59:31] Production.INFO: 72 MB #Memory Used# [2025-01-14 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:00:05 [end_date_ymd] => 2025-01-14 15:00:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:00:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:00:32] Production.INFO: count ==5884 [2025-01-14 15:00:34] Production.ERROR: pbx CDR StartTime 2025-01-14 12:00:05 - End Time 2025-01-14 15:00:05 [2025-01-14 15:00:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247058', 'tblTempUsageDetail_20' ) start [2025-01-14 15:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247058', 'tblTempUsageDetail_20' ) end [2025-01-14 15:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247058', 'tblTempVendorCDR_20' ) start [2025-01-14 15:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247058', 'tblTempVendorCDR_20' ) end [2025-01-14 15:00:34] Production.INFO: ProcessCDR(1,14247058,1,1,2) [2025-01-14 15:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:00:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:00:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:00:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247058', 'tblTempUsageDetail_20' ) start [2025-01-14 15:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247058', 'tblTempUsageDetail_20' ) end [2025-01-14 15:00:39] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:00:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:00:39] Production.INFO: ==2934== Releasing lock... [2025-01-14 15:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:00:39] Production.INFO: 72 MB #Memory Used# [2025-01-14 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:01:04 [end_date_ymd] => 2025-01-14 15:01:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:01:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:01:25] Production.INFO: count ==5868 [2025-01-14 15:01:28] Production.ERROR: pbx CDR StartTime 2025-01-14 12:01:04 - End Time 2025-01-14 15:01:04 [2025-01-14 15:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247063', 'tblTempUsageDetail_20' ) start [2025-01-14 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247063', 'tblTempUsageDetail_20' ) end [2025-01-14 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247063', 'tblTempVendorCDR_20' ) start [2025-01-14 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247063', 'tblTempVendorCDR_20' ) end [2025-01-14 15:01:28] Production.INFO: ProcessCDR(1,14247063,1,1,2) [2025-01-14 15:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247063', 'tblTempUsageDetail_20' ) start [2025-01-14 15:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247063', 'tblTempUsageDetail_20' ) end [2025-01-14 15:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:01:32] Production.INFO: ==3068== Releasing lock... [2025-01-14 15:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:01:32] Production.INFO: 72 MB #Memory Used# [2025-01-14 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:02:05 [end_date_ymd] => 2025-01-14 15:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:02:21] Production.INFO: count ==5870 [2025-01-14 15:02:23] Production.ERROR: pbx CDR StartTime 2025-01-14 12:02:05 - End Time 2025-01-14 15:02:05 [2025-01-14 15:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247068', 'tblTempUsageDetail_20' ) start [2025-01-14 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247068', 'tblTempUsageDetail_20' ) end [2025-01-14 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247068', 'tblTempVendorCDR_20' ) start [2025-01-14 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247068', 'tblTempVendorCDR_20' ) end [2025-01-14 15:02:23] Production.INFO: ProcessCDR(1,14247068,1,1,2) [2025-01-14 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247068', 'tblTempUsageDetail_20' ) start [2025-01-14 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247068', 'tblTempUsageDetail_20' ) end [2025-01-14 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:02:28] Production.INFO: ==3183== Releasing lock... [2025-01-14 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:02:28] Production.INFO: 72 MB #Memory Used# [2025-01-14 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:03:04 [end_date_ymd] => 2025-01-14 15:03:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:03:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:03:23] Production.INFO: count ==5870 [2025-01-14 15:03:25] Production.ERROR: pbx CDR StartTime 2025-01-14 12:03:04 - End Time 2025-01-14 15:03:04 [2025-01-14 15:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247073', 'tblTempUsageDetail_20' ) start [2025-01-14 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247073', 'tblTempUsageDetail_20' ) end [2025-01-14 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247073', 'tblTempVendorCDR_20' ) start [2025-01-14 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247073', 'tblTempVendorCDR_20' ) end [2025-01-14 15:03:26] Production.INFO: ProcessCDR(1,14247073,1,1,2) [2025-01-14 15:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247073', 'tblTempUsageDetail_20' ) start [2025-01-14 15:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247073', 'tblTempUsageDetail_20' ) end [2025-01-14 15:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:03:31] Production.INFO: ==3254== Releasing lock... [2025-01-14 15:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:03:31] Production.INFO: 72 MB #Memory Used# [2025-01-14 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:04:05 [end_date_ymd] => 2025-01-14 15:04:05 [RateCDR] => 1 ) [2025-01-14 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:04:05' and `end` < '2025-01-14 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:04:18] Production.INFO: count ==5879 [2025-01-14 15:04:20] Production.ERROR: pbx CDR StartTime 2025-01-14 12:04:05 - End Time 2025-01-14 15:04:05 [2025-01-14 15:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247078', 'tblTempUsageDetail_20' ) start [2025-01-14 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247078', 'tblTempUsageDetail_20' ) end [2025-01-14 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247078', 'tblTempVendorCDR_20' ) start [2025-01-14 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247078', 'tblTempVendorCDR_20' ) end [2025-01-14 15:04:21] Production.INFO: ProcessCDR(1,14247078,1,1,2) [2025-01-14 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247078', 'tblTempUsageDetail_20' ) start [2025-01-14 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247078', 'tblTempUsageDetail_20' ) end [2025-01-14 15:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:04:25] Production.INFO: ==3343== Releasing lock... [2025-01-14 15:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:04:25] Production.INFO: 72 MB #Memory Used# [2025-01-14 15:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:05:04 [end_date_ymd] => 2025-01-14 15:05:04 [RateCDR] => 1 ) [2025-01-14 15:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:05:04' and `end` < '2025-01-14 15:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:05:21] Production.INFO: count ==5885 [2025-01-14 15:05:24] Production.ERROR: pbx CDR StartTime 2025-01-14 12:05:04 - End Time 2025-01-14 15:05:04 [2025-01-14 15:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247083', 'tblTempUsageDetail_20' ) start [2025-01-14 15:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247083', 'tblTempUsageDetail_20' ) end [2025-01-14 15:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247083', 'tblTempVendorCDR_20' ) start [2025-01-14 15:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247083', 'tblTempVendorCDR_20' ) end [2025-01-14 15:05:24] Production.INFO: ProcessCDR(1,14247083,1,1,2) [2025-01-14 15:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247083', 'tblTempUsageDetail_20' ) start [2025-01-14 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247083', 'tblTempUsageDetail_20' ) end [2025-01-14 15:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:05:29] Production.INFO: ==3515== Releasing lock... [2025-01-14 15:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:05:29] Production.INFO: 72 MB #Memory Used# [2025-01-14 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:06:05 [end_date_ymd] => 2025-01-14 15:06:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:06:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:06:23] Production.INFO: count ==5860 [2025-01-14 15:06:25] Production.ERROR: pbx CDR StartTime 2025-01-14 12:06:05 - End Time 2025-01-14 15:06:05 [2025-01-14 15:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247088', 'tblTempUsageDetail_20' ) start [2025-01-14 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247088', 'tblTempUsageDetail_20' ) end [2025-01-14 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247088', 'tblTempVendorCDR_20' ) start [2025-01-14 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247088', 'tblTempVendorCDR_20' ) end [2025-01-14 15:06:26] Production.INFO: ProcessCDR(1,14247088,1,1,2) [2025-01-14 15:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247088', 'tblTempUsageDetail_20' ) start [2025-01-14 15:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247088', 'tblTempUsageDetail_20' ) end [2025-01-14 15:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:06:30] Production.INFO: ==3616== Releasing lock... [2025-01-14 15:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:06:30] Production.INFO: 72 MB #Memory Used# [2025-01-14 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:07:05 [end_date_ymd] => 2025-01-14 15:07:05 [RateCDR] => 1 ) [2025-01-14 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:07:05' and `end` < '2025-01-14 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:07:28] Production.INFO: count ==5830 [2025-01-14 15:07:31] Production.ERROR: pbx CDR StartTime 2025-01-14 12:07:05 - End Time 2025-01-14 15:07:05 [2025-01-14 15:07:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247093', 'tblTempUsageDetail_20' ) start [2025-01-14 15:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247093', 'tblTempUsageDetail_20' ) end [2025-01-14 15:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247093', 'tblTempVendorCDR_20' ) start [2025-01-14 15:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247093', 'tblTempVendorCDR_20' ) end [2025-01-14 15:07:31] Production.INFO: ProcessCDR(1,14247093,1,1,2) [2025-01-14 15:07:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:07:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:07:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:07:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247093', 'tblTempUsageDetail_20' ) start [2025-01-14 15:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247093', 'tblTempUsageDetail_20' ) end [2025-01-14 15:07:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:07:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:07:36] Production.INFO: ==3713== Releasing lock... [2025-01-14 15:07:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:07:36] Production.INFO: 71.75 MB #Memory Used# [2025-01-14 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:08:05 [end_date_ymd] => 2025-01-14 15:08:05 [RateCDR] => 1 ) [2025-01-14 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:08:05' and `end` < '2025-01-14 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:08:29] Production.INFO: count ==5846 [2025-01-14 15:08:32] Production.ERROR: pbx CDR StartTime 2025-01-14 12:08:05 - End Time 2025-01-14 15:08:05 [2025-01-14 15:08:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247098', 'tblTempUsageDetail_20' ) start [2025-01-14 15:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247098', 'tblTempUsageDetail_20' ) end [2025-01-14 15:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247098', 'tblTempVendorCDR_20' ) start [2025-01-14 15:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247098', 'tblTempVendorCDR_20' ) end [2025-01-14 15:08:32] Production.INFO: ProcessCDR(1,14247098,1,1,2) [2025-01-14 15:08:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:08:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:08:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:08:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247098', 'tblTempUsageDetail_20' ) start [2025-01-14 15:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247098', 'tblTempUsageDetail_20' ) end [2025-01-14 15:08:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:08:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:08:36] Production.INFO: ==3890== Releasing lock... [2025-01-14 15:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:08:36] Production.INFO: 71.75 MB #Memory Used# [2025-01-14 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:09:05 [end_date_ymd] => 2025-01-14 15:09:05 [RateCDR] => 1 ) [2025-01-14 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:09:05' and `end` < '2025-01-14 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:09:26] Production.INFO: count ==5884 [2025-01-14 15:09:29] Production.ERROR: pbx CDR StartTime 2025-01-14 12:09:05 - End Time 2025-01-14 15:09:05 [2025-01-14 15:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247103', 'tblTempUsageDetail_20' ) start [2025-01-14 15:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247103', 'tblTempUsageDetail_20' ) end [2025-01-14 15:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247103', 'tblTempVendorCDR_20' ) start [2025-01-14 15:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247103', 'tblTempVendorCDR_20' ) end [2025-01-14 15:09:29] Production.INFO: ProcessCDR(1,14247103,1,1,2) [2025-01-14 15:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247103', 'tblTempUsageDetail_20' ) start [2025-01-14 15:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247103', 'tblTempUsageDetail_20' ) end [2025-01-14 15:09:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:09:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:09:34] Production.INFO: ==3994== Releasing lock... [2025-01-14 15:09:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:09:34] Production.INFO: 72 MB #Memory Used# [2025-01-14 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:10:05 [end_date_ymd] => 2025-01-14 15:10:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:10:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:10:25] Production.INFO: count ==5918 [2025-01-14 15:10:27] Production.ERROR: pbx CDR StartTime 2025-01-14 12:10:05 - End Time 2025-01-14 15:10:05 [2025-01-14 15:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247109', 'tblTempUsageDetail_20' ) start [2025-01-14 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247109', 'tblTempUsageDetail_20' ) end [2025-01-14 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247109', 'tblTempVendorCDR_20' ) start [2025-01-14 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247109', 'tblTempVendorCDR_20' ) end [2025-01-14 15:10:28] Production.INFO: ProcessCDR(1,14247109,1,1,2) [2025-01-14 15:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247109', 'tblTempUsageDetail_20' ) start [2025-01-14 15:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247109', 'tblTempUsageDetail_20' ) end [2025-01-14 15:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:10:33] Production.INFO: ==4095== Releasing lock... [2025-01-14 15:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:10:33] Production.INFO: 72.25 MB #Memory Used# [2025-01-14 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:11:05 [end_date_ymd] => 2025-01-14 15:11:05 [RateCDR] => 1 ) [2025-01-14 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:11:05' and `end` < '2025-01-14 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:11:20] Production.INFO: count ==5960 [2025-01-14 15:11:22] Production.ERROR: pbx CDR StartTime 2025-01-14 12:11:05 - End Time 2025-01-14 15:11:05 [2025-01-14 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247114', 'tblTempUsageDetail_20' ) start [2025-01-14 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247114', 'tblTempUsageDetail_20' ) end [2025-01-14 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247114', 'tblTempVendorCDR_20' ) start [2025-01-14 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247114', 'tblTempVendorCDR_20' ) end [2025-01-14 15:11:23] Production.INFO: ProcessCDR(1,14247114,1,1,2) [2025-01-14 15:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247114', 'tblTempUsageDetail_20' ) start [2025-01-14 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247114', 'tblTempUsageDetail_20' ) end [2025-01-14 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:11:28] Production.INFO: ==4198== Releasing lock... [2025-01-14 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:11:28] Production.INFO: 72.75 MB #Memory Used# [2025-01-14 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:12:05 [end_date_ymd] => 2025-01-14 15:12:05 [RateCDR] => 1 ) [2025-01-14 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:12:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:12:25] Production.INFO: count ==6000 [2025-01-14 15:12:28] Production.ERROR: pbx CDR StartTime 2025-01-14 12:12:05 - End Time 2025-01-14 15:12:05 [2025-01-14 15:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247119', 'tblTempUsageDetail_20' ) start [2025-01-14 15:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247119', 'tblTempUsageDetail_20' ) end [2025-01-14 15:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247119', 'tblTempVendorCDR_20' ) start [2025-01-14 15:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247119', 'tblTempVendorCDR_20' ) end [2025-01-14 15:12:28] Production.INFO: ProcessCDR(1,14247119,1,1,2) [2025-01-14 15:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247119', 'tblTempUsageDetail_20' ) start [2025-01-14 15:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247119', 'tblTempUsageDetail_20' ) end [2025-01-14 15:12:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:12:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:12:34] Production.INFO: ==4371== Releasing lock... [2025-01-14 15:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:12:34] Production.INFO: 73 MB #Memory Used# [2025-01-14 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:13:05 [end_date_ymd] => 2025-01-14 15:13:05 [RateCDR] => 1 ) [2025-01-14 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:13:05' and `end` < '2025-01-14 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:13:25] Production.INFO: count ==5985 [2025-01-14 15:13:27] Production.ERROR: pbx CDR StartTime 2025-01-14 12:13:05 - End Time 2025-01-14 15:13:05 [2025-01-14 15:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247124', 'tblTempUsageDetail_20' ) start [2025-01-14 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247124', 'tblTempUsageDetail_20' ) end [2025-01-14 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247124', 'tblTempVendorCDR_20' ) start [2025-01-14 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247124', 'tblTempVendorCDR_20' ) end [2025-01-14 15:13:28] Production.INFO: ProcessCDR(1,14247124,1,1,2) [2025-01-14 15:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247124', 'tblTempUsageDetail_20' ) start [2025-01-14 15:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247124', 'tblTempUsageDetail_20' ) end [2025-01-14 15:13:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:13:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:13:33] Production.INFO: ==4464== Releasing lock... [2025-01-14 15:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:13:33] Production.INFO: 72.75 MB #Memory Used# [2025-01-14 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:14:05 [end_date_ymd] => 2025-01-14 15:14:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:14:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:14:23] Production.INFO: count ==6064 [2025-01-14 15:14:25] Production.ERROR: pbx CDR StartTime 2025-01-14 12:14:05 - End Time 2025-01-14 15:14:05 [2025-01-14 15:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247129', 'tblTempUsageDetail_20' ) start [2025-01-14 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247129', 'tblTempUsageDetail_20' ) end [2025-01-14 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247129', 'tblTempVendorCDR_20' ) start [2025-01-14 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247129', 'tblTempVendorCDR_20' ) end [2025-01-14 15:14:26] Production.INFO: ProcessCDR(1,14247129,1,1,2) [2025-01-14 15:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247129', 'tblTempUsageDetail_20' ) start [2025-01-14 15:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247129', 'tblTempUsageDetail_20' ) end [2025-01-14 15:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:14:31] Production.INFO: ==4561== Releasing lock... [2025-01-14 15:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:14:31] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:15:06 [end_date_ymd] => 2025-01-14 15:15:06 [RateCDR] => 1 ) [2025-01-14 15:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:15:06' and `end` < '2025-01-14 15:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:15:25] Production.INFO: count ==6047 [2025-01-14 15:15:28] Production.ERROR: pbx CDR StartTime 2025-01-14 12:15:06 - End Time 2025-01-14 15:15:06 [2025-01-14 15:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247134', 'tblTempUsageDetail_20' ) start [2025-01-14 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247134', 'tblTempUsageDetail_20' ) end [2025-01-14 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247134', 'tblTempVendorCDR_20' ) start [2025-01-14 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247134', 'tblTempVendorCDR_20' ) end [2025-01-14 15:15:28] Production.INFO: ProcessCDR(1,14247134,1,1,2) [2025-01-14 15:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247134', 'tblTempUsageDetail_20' ) start [2025-01-14 15:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247134', 'tblTempUsageDetail_20' ) end [2025-01-14 15:15:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:15:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:15:33] Production.INFO: ==4791== Releasing lock... [2025-01-14 15:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:15:33] Production.INFO: 73.25 MB #Memory Used# [2025-01-14 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:16:06 [end_date_ymd] => 2025-01-14 15:16:06 [RateCDR] => 1 ) [2025-01-14 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:16:06' and `end` < '2025-01-14 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:16:21] Production.INFO: count ==6041 [2025-01-14 15:16:23] Production.ERROR: pbx CDR StartTime 2025-01-14 12:16:06 - End Time 2025-01-14 15:16:06 [2025-01-14 15:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247139', 'tblTempUsageDetail_20' ) start [2025-01-14 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247139', 'tblTempUsageDetail_20' ) end [2025-01-14 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247139', 'tblTempVendorCDR_20' ) start [2025-01-14 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247139', 'tblTempVendorCDR_20' ) end [2025-01-14 15:16:24] Production.INFO: ProcessCDR(1,14247139,1,1,2) [2025-01-14 15:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247139', 'tblTempUsageDetail_20' ) start [2025-01-14 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247139', 'tblTempUsageDetail_20' ) end [2025-01-14 15:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:16:29] Production.INFO: ==4890== Releasing lock... [2025-01-14 15:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:16:29] Production.INFO: 73.25 MB #Memory Used# [2025-01-14 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:17:05 [end_date_ymd] => 2025-01-14 15:17:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:17:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:17:26] Production.INFO: count ==6072 [2025-01-14 15:17:29] Production.ERROR: pbx CDR StartTime 2025-01-14 12:17:05 - End Time 2025-01-14 15:17:05 [2025-01-14 15:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247144', 'tblTempUsageDetail_20' ) start [2025-01-14 15:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247144', 'tblTempUsageDetail_20' ) end [2025-01-14 15:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247144', 'tblTempVendorCDR_20' ) start [2025-01-14 15:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247144', 'tblTempVendorCDR_20' ) end [2025-01-14 15:17:29] Production.INFO: ProcessCDR(1,14247144,1,1,2) [2025-01-14 15:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247144', 'tblTempUsageDetail_20' ) start [2025-01-14 15:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247144', 'tblTempUsageDetail_20' ) end [2025-01-14 15:17:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:17:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:17:35] Production.INFO: ==4989== Releasing lock... [2025-01-14 15:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:17:35] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:18:05 [end_date_ymd] => 2025-01-14 15:18:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:18:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:18:33] Production.INFO: count ==6067 [2025-01-14 15:18:36] Production.ERROR: pbx CDR StartTime 2025-01-14 12:18:05 - End Time 2025-01-14 15:18:05 [2025-01-14 15:18:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:18:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247149', 'tblTempUsageDetail_20' ) start [2025-01-14 15:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247149', 'tblTempUsageDetail_20' ) end [2025-01-14 15:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247149', 'tblTempVendorCDR_20' ) start [2025-01-14 15:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247149', 'tblTempVendorCDR_20' ) end [2025-01-14 15:18:37] Production.INFO: ProcessCDR(1,14247149,1,1,2) [2025-01-14 15:18:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:18:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:18:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:18:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:18:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247149', 'tblTempUsageDetail_20' ) start [2025-01-14 15:18:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247149', 'tblTempUsageDetail_20' ) end [2025-01-14 15:18:42] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:18:42] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:18:42] Production.INFO: ==5092== Releasing lock... [2025-01-14 15:18:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:18:42] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:19:05 [end_date_ymd] => 2025-01-14 15:19:05 [RateCDR] => 1 ) [2025-01-14 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:19:05' and `end` < '2025-01-14 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:19:27] Production.INFO: count ==6068 [2025-01-14 15:19:29] Production.ERROR: pbx CDR StartTime 2025-01-14 12:19:05 - End Time 2025-01-14 15:19:05 [2025-01-14 15:19:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247154', 'tblTempUsageDetail_20' ) start [2025-01-14 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247154', 'tblTempUsageDetail_20' ) end [2025-01-14 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247154', 'tblTempVendorCDR_20' ) start [2025-01-14 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247154', 'tblTempVendorCDR_20' ) end [2025-01-14 15:19:29] Production.INFO: ProcessCDR(1,14247154,1,1,2) [2025-01-14 15:19:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:19:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:19:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:19:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247154', 'tblTempUsageDetail_20' ) start [2025-01-14 15:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247154', 'tblTempUsageDetail_20' ) end [2025-01-14 15:19:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:19:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:19:34] Production.INFO: ==5186== Releasing lock... [2025-01-14 15:19:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:19:34] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:20:05 [end_date_ymd] => 2025-01-14 15:20:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:20:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:20:28] Production.INFO: count ==6055 [2025-01-14 15:20:30] Production.ERROR: pbx CDR StartTime 2025-01-14 12:20:05 - End Time 2025-01-14 15:20:05 [2025-01-14 15:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247159', 'tblTempUsageDetail_20' ) start [2025-01-14 15:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247159', 'tblTempUsageDetail_20' ) end [2025-01-14 15:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247159', 'tblTempVendorCDR_20' ) start [2025-01-14 15:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247159', 'tblTempVendorCDR_20' ) end [2025-01-14 15:20:31] Production.INFO: ProcessCDR(1,14247159,1,1,2) [2025-01-14 15:20:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:20:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:20:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247159', 'tblTempUsageDetail_20' ) start [2025-01-14 15:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247159', 'tblTempUsageDetail_20' ) end [2025-01-14 15:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:20:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:20:36] Production.INFO: ==5267== Releasing lock... [2025-01-14 15:20:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:20:36] Production.INFO: 73.25 MB #Memory Used# [2025-01-14 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:21:05 [end_date_ymd] => 2025-01-14 15:21:05 [RateCDR] => 1 ) [2025-01-14 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:21:05' and `end` < '2025-01-14 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:21:23] Production.INFO: count ==6036 [2025-01-14 15:21:26] Production.ERROR: pbx CDR StartTime 2025-01-14 12:21:05 - End Time 2025-01-14 15:21:05 [2025-01-14 15:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247165', 'tblTempUsageDetail_20' ) start [2025-01-14 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247165', 'tblTempUsageDetail_20' ) end [2025-01-14 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247165', 'tblTempVendorCDR_20' ) start [2025-01-14 15:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247165', 'tblTempVendorCDR_20' ) end [2025-01-14 15:21:26] Production.INFO: ProcessCDR(1,14247165,1,1,2) [2025-01-14 15:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247165', 'tblTempUsageDetail_20' ) start [2025-01-14 15:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247165', 'tblTempUsageDetail_20' ) end [2025-01-14 15:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:21:30] Production.INFO: ==5358== Releasing lock... [2025-01-14 15:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:21:30] Production.INFO: 73.25 MB #Memory Used# [2025-01-14 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:22:05 [end_date_ymd] => 2025-01-14 15:22:05 [RateCDR] => 1 ) [2025-01-14 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:22:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:22:27] Production.INFO: count ==6058 [2025-01-14 15:22:29] Production.ERROR: pbx CDR StartTime 2025-01-14 12:22:05 - End Time 2025-01-14 15:22:05 [2025-01-14 15:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247170', 'tblTempUsageDetail_20' ) start [2025-01-14 15:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247170', 'tblTempUsageDetail_20' ) end [2025-01-14 15:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247170', 'tblTempVendorCDR_20' ) start [2025-01-14 15:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247170', 'tblTempVendorCDR_20' ) end [2025-01-14 15:22:30] Production.INFO: ProcessCDR(1,14247170,1,1,2) [2025-01-14 15:22:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:22:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247170', 'tblTempUsageDetail_20' ) start [2025-01-14 15:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247170', 'tblTempUsageDetail_20' ) end [2025-01-14 15:22:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:22:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:22:35] Production.INFO: ==5438== Releasing lock... [2025-01-14 15:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:22:35] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:23:06 [end_date_ymd] => 2025-01-14 15:23:06 [RateCDR] => 1 ) [2025-01-14 15:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:23:06' and `end` < '2025-01-14 15:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:23:25] Production.INFO: count ==6074 [2025-01-14 15:23:28] Production.ERROR: pbx CDR StartTime 2025-01-14 12:23:06 - End Time 2025-01-14 15:23:06 [2025-01-14 15:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247175', 'tblTempUsageDetail_20' ) start [2025-01-14 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247175', 'tblTempUsageDetail_20' ) end [2025-01-14 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247175', 'tblTempVendorCDR_20' ) start [2025-01-14 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247175', 'tblTempVendorCDR_20' ) end [2025-01-14 15:23:28] Production.INFO: ProcessCDR(1,14247175,1,1,2) [2025-01-14 15:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247175', 'tblTempUsageDetail_20' ) start [2025-01-14 15:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247175', 'tblTempUsageDetail_20' ) end [2025-01-14 15:23:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:23:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:23:33] Production.INFO: ==5516== Releasing lock... [2025-01-14 15:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:23:33] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:24:05 [end_date_ymd] => 2025-01-14 15:24:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:24:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:24:27] Production.INFO: count ==6092 [2025-01-14 15:24:30] Production.ERROR: pbx CDR StartTime 2025-01-14 12:24:05 - End Time 2025-01-14 15:24:05 [2025-01-14 15:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247180', 'tblTempUsageDetail_20' ) start [2025-01-14 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247180', 'tblTempUsageDetail_20' ) end [2025-01-14 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247180', 'tblTempVendorCDR_20' ) start [2025-01-14 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247180', 'tblTempVendorCDR_20' ) end [2025-01-14 15:24:30] Production.INFO: ProcessCDR(1,14247180,1,1,2) [2025-01-14 15:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247180', 'tblTempUsageDetail_20' ) start [2025-01-14 15:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247180', 'tblTempUsageDetail_20' ) end [2025-01-14 15:24:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:24:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:24:35] Production.INFO: ==5592== Releasing lock... [2025-01-14 15:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:24:35] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:25:05 [end_date_ymd] => 2025-01-14 15:25:05 [RateCDR] => 1 ) [2025-01-14 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:25:05' and `end` < '2025-01-14 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:25:23] Production.INFO: count ==6094 [2025-01-14 15:25:25] Production.ERROR: pbx CDR StartTime 2025-01-14 12:25:05 - End Time 2025-01-14 15:25:05 [2025-01-14 15:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247185', 'tblTempUsageDetail_20' ) start [2025-01-14 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247185', 'tblTempUsageDetail_20' ) end [2025-01-14 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247185', 'tblTempVendorCDR_20' ) start [2025-01-14 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247185', 'tblTempVendorCDR_20' ) end [2025-01-14 15:25:26] Production.INFO: ProcessCDR(1,14247185,1,1,2) [2025-01-14 15:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247185', 'tblTempUsageDetail_20' ) start [2025-01-14 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247185', 'tblTempUsageDetail_20' ) end [2025-01-14 15:25:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:25:31] Production.INFO: ==5669== Releasing lock... [2025-01-14 15:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:25:31] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:26:05 [end_date_ymd] => 2025-01-14 15:26:05 [RateCDR] => 1 ) [2025-01-14 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:26:05' and `end` < '2025-01-14 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:26:23] Production.INFO: count ==6093 [2025-01-14 15:26:25] Production.ERROR: pbx CDR StartTime 2025-01-14 12:26:05 - End Time 2025-01-14 15:26:05 [2025-01-14 15:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247190', 'tblTempUsageDetail_20' ) start [2025-01-14 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247190', 'tblTempUsageDetail_20' ) end [2025-01-14 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247190', 'tblTempVendorCDR_20' ) start [2025-01-14 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247190', 'tblTempVendorCDR_20' ) end [2025-01-14 15:26:25] Production.INFO: ProcessCDR(1,14247190,1,1,2) [2025-01-14 15:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247190', 'tblTempUsageDetail_20' ) start [2025-01-14 15:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247190', 'tblTempUsageDetail_20' ) end [2025-01-14 15:26:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:26:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:26:31] Production.INFO: ==5745== Releasing lock... [2025-01-14 15:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:26:31] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:27:06 [end_date_ymd] => 2025-01-14 15:27:06 [RateCDR] => 1 ) [2025-01-14 15:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:27:06' and `end` < '2025-01-14 15:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:27:31] Production.INFO: count ==6117 [2025-01-14 15:27:33] Production.ERROR: pbx CDR StartTime 2025-01-14 12:27:06 - End Time 2025-01-14 15:27:06 [2025-01-14 15:27:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247195', 'tblTempUsageDetail_20' ) start [2025-01-14 15:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247195', 'tblTempUsageDetail_20' ) end [2025-01-14 15:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247195', 'tblTempVendorCDR_20' ) start [2025-01-14 15:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247195', 'tblTempVendorCDR_20' ) end [2025-01-14 15:27:34] Production.INFO: ProcessCDR(1,14247195,1,1,2) [2025-01-14 15:27:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:27:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:27:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:27:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247195', 'tblTempUsageDetail_20' ) start [2025-01-14 15:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247195', 'tblTempUsageDetail_20' ) end [2025-01-14 15:27:39] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:27:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:27:39] Production.INFO: ==5822== Releasing lock... [2025-01-14 15:27:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:27:39] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:28:05 [end_date_ymd] => 2025-01-14 15:28:05 [RateCDR] => 1 ) [2025-01-14 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:28:05' and `end` < '2025-01-14 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:28:26] Production.INFO: count ==6121 [2025-01-14 15:28:29] Production.ERROR: pbx CDR StartTime 2025-01-14 12:28:05 - End Time 2025-01-14 15:28:05 [2025-01-14 15:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247200', 'tblTempUsageDetail_20' ) start [2025-01-14 15:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247200', 'tblTempUsageDetail_20' ) end [2025-01-14 15:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247200', 'tblTempVendorCDR_20' ) start [2025-01-14 15:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247200', 'tblTempVendorCDR_20' ) end [2025-01-14 15:28:29] Production.INFO: ProcessCDR(1,14247200,1,1,2) [2025-01-14 15:28:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:28:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:28:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:28:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247200', 'tblTempUsageDetail_20' ) start [2025-01-14 15:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247200', 'tblTempUsageDetail_20' ) end [2025-01-14 15:28:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:28:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:28:34] Production.INFO: ==5903== Releasing lock... [2025-01-14 15:28:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:28:34] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:29:06 [end_date_ymd] => 2025-01-14 15:29:06 [RateCDR] => 1 ) [2025-01-14 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:29:06' and `end` < '2025-01-14 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:29:30] Production.INFO: count ==6125 [2025-01-14 15:29:33] Production.ERROR: pbx CDR StartTime 2025-01-14 12:29:06 - End Time 2025-01-14 15:29:06 [2025-01-14 15:29:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247205', 'tblTempUsageDetail_20' ) start [2025-01-14 15:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247205', 'tblTempUsageDetail_20' ) end [2025-01-14 15:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247205', 'tblTempVendorCDR_20' ) start [2025-01-14 15:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247205', 'tblTempVendorCDR_20' ) end [2025-01-14 15:29:33] Production.INFO: ProcessCDR(1,14247205,1,1,2) [2025-01-14 15:29:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:29:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:29:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:29:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:29:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247205', 'tblTempUsageDetail_20' ) start [2025-01-14 15:29:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247205', 'tblTempUsageDetail_20' ) end [2025-01-14 15:29:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:29:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:29:39] Production.INFO: ==5978== Releasing lock... [2025-01-14 15:29:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:29:39] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:30:06 [end_date_ymd] => 2025-01-14 15:30:06 [RateCDR] => 1 ) [2025-01-14 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:30:06' and `end` < '2025-01-14 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:30:35] Production.INFO: count ==6124 [2025-01-14 15:30:38] Production.ERROR: pbx CDR StartTime 2025-01-14 12:30:06 - End Time 2025-01-14 15:30:06 [2025-01-14 15:30:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247211', 'tblTempUsageDetail_20' ) start [2025-01-14 15:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247211', 'tblTempUsageDetail_20' ) end [2025-01-14 15:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247211', 'tblTempVendorCDR_20' ) start [2025-01-14 15:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247211', 'tblTempVendorCDR_20' ) end [2025-01-14 15:30:38] Production.INFO: ProcessCDR(1,14247211,1,1,2) [2025-01-14 15:30:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:30:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:30:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:30:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:30:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247211', 'tblTempUsageDetail_20' ) start [2025-01-14 15:30:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247211', 'tblTempUsageDetail_20' ) end [2025-01-14 15:30:43] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:30:43] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:30:43] Production.INFO: ==6093== Releasing lock... [2025-01-14 15:30:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:30:43] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:31:05 [end_date_ymd] => 2025-01-14 15:31:05 [RateCDR] => 1 ) [2025-01-14 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:31:05' and `end` < '2025-01-14 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:31:24] Production.INFO: count ==6141 [2025-01-14 15:31:27] Production.ERROR: pbx CDR StartTime 2025-01-14 12:31:05 - End Time 2025-01-14 15:31:05 [2025-01-14 15:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247216', 'tblTempUsageDetail_20' ) start [2025-01-14 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247216', 'tblTempUsageDetail_20' ) end [2025-01-14 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247216', 'tblTempVendorCDR_20' ) start [2025-01-14 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247216', 'tblTempVendorCDR_20' ) end [2025-01-14 15:31:27] Production.INFO: ProcessCDR(1,14247216,1,1,2) [2025-01-14 15:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:31:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:31:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247216', 'tblTempUsageDetail_20' ) start [2025-01-14 15:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247216', 'tblTempUsageDetail_20' ) end [2025-01-14 15:31:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:31:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:31:32] Production.INFO: ==6170== Releasing lock... [2025-01-14 15:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:31:32] Production.INFO: 74 MB #Memory Used# [2025-01-14 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:32:05 [end_date_ymd] => 2025-01-14 15:32:05 [RateCDR] => 1 ) [2025-01-14 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:32:05' and `end` < '2025-01-14 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:32:23] Production.INFO: count ==6139 [2025-01-14 15:32:25] Production.ERROR: pbx CDR StartTime 2025-01-14 12:32:05 - End Time 2025-01-14 15:32:05 [2025-01-14 15:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247221', 'tblTempUsageDetail_20' ) start [2025-01-14 15:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247221', 'tblTempUsageDetail_20' ) end [2025-01-14 15:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247221', 'tblTempVendorCDR_20' ) start [2025-01-14 15:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247221', 'tblTempVendorCDR_20' ) end [2025-01-14 15:32:26] Production.INFO: ProcessCDR(1,14247221,1,1,2) [2025-01-14 15:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247221', 'tblTempUsageDetail_20' ) start [2025-01-14 15:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247221', 'tblTempUsageDetail_20' ) end [2025-01-14 15:32:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:32:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:32:29] Production.INFO: ==6247== Releasing lock... [2025-01-14 15:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:32:29] Production.INFO: 74 MB #Memory Used# [2025-01-14 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:33:05 [end_date_ymd] => 2025-01-14 15:33:05 [RateCDR] => 1 ) [2025-01-14 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:33:05' and `end` < '2025-01-14 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:33:19] Production.INFO: count ==6153 [2025-01-14 15:33:21] Production.ERROR: pbx CDR StartTime 2025-01-14 12:33:05 - End Time 2025-01-14 15:33:05 [2025-01-14 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247226', 'tblTempUsageDetail_20' ) start [2025-01-14 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247226', 'tblTempUsageDetail_20' ) end [2025-01-14 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247226', 'tblTempVendorCDR_20' ) start [2025-01-14 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247226', 'tblTempVendorCDR_20' ) end [2025-01-14 15:33:22] Production.INFO: ProcessCDR(1,14247226,1,1,2) [2025-01-14 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247226', 'tblTempUsageDetail_20' ) start [2025-01-14 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247226', 'tblTempUsageDetail_20' ) end [2025-01-14 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:33:26] Production.INFO: ==6330== Releasing lock... [2025-01-14 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:33:26] Production.INFO: 74 MB #Memory Used# [2025-01-14 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:34:05 [end_date_ymd] => 2025-01-14 15:34:05 [RateCDR] => 1 ) [2025-01-14 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:34:05' and `end` < '2025-01-14 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:34:19] Production.INFO: count ==6153 [2025-01-14 15:34:22] Production.ERROR: pbx CDR StartTime 2025-01-14 12:34:05 - End Time 2025-01-14 15:34:05 [2025-01-14 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247231', 'tblTempUsageDetail_20' ) start [2025-01-14 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247231', 'tblTempUsageDetail_20' ) end [2025-01-14 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247231', 'tblTempVendorCDR_20' ) start [2025-01-14 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247231', 'tblTempVendorCDR_20' ) end [2025-01-14 15:34:22] Production.INFO: ProcessCDR(1,14247231,1,1,2) [2025-01-14 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247231', 'tblTempUsageDetail_20' ) start [2025-01-14 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247231', 'tblTempUsageDetail_20' ) end [2025-01-14 15:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:34:25] Production.INFO: ==6416== Releasing lock... [2025-01-14 15:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:34:25] Production.INFO: 74 MB #Memory Used# [2025-01-14 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:35:05 [end_date_ymd] => 2025-01-14 15:35:05 [RateCDR] => 1 ) [2025-01-14 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:35:05' and `end` < '2025-01-14 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:35:19] Production.INFO: count ==6147 [2025-01-14 15:35:22] Production.ERROR: pbx CDR StartTime 2025-01-14 12:35:05 - End Time 2025-01-14 15:35:05 [2025-01-14 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247236', 'tblTempUsageDetail_20' ) start [2025-01-14 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247236', 'tblTempUsageDetail_20' ) end [2025-01-14 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247236', 'tblTempVendorCDR_20' ) start [2025-01-14 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247236', 'tblTempVendorCDR_20' ) end [2025-01-14 15:35:22] Production.INFO: ProcessCDR(1,14247236,1,1,2) [2025-01-14 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247236', 'tblTempUsageDetail_20' ) start [2025-01-14 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247236', 'tblTempUsageDetail_20' ) end [2025-01-14 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:35:27] Production.INFO: ==6499== Releasing lock... [2025-01-14 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:35:27] Production.INFO: 74 MB #Memory Used# [2025-01-14 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:36:05 [end_date_ymd] => 2025-01-14 15:36:05 [RateCDR] => 1 ) [2025-01-14 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:36:05' and `end` < '2025-01-14 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:36:19] Production.INFO: count ==6153 [2025-01-14 15:36:22] Production.ERROR: pbx CDR StartTime 2025-01-14 12:36:05 - End Time 2025-01-14 15:36:05 [2025-01-14 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247241', 'tblTempUsageDetail_20' ) start [2025-01-14 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247241', 'tblTempUsageDetail_20' ) end [2025-01-14 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247241', 'tblTempVendorCDR_20' ) start [2025-01-14 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247241', 'tblTempVendorCDR_20' ) end [2025-01-14 15:36:23] Production.INFO: ProcessCDR(1,14247241,1,1,2) [2025-01-14 15:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247241', 'tblTempUsageDetail_20' ) start [2025-01-14 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247241', 'tblTempUsageDetail_20' ) end [2025-01-14 15:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:36:28] Production.INFO: ==6581== Releasing lock... [2025-01-14 15:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:36:28] Production.INFO: 74 MB #Memory Used# [2025-01-14 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:37:06 [end_date_ymd] => 2025-01-14 15:37:06 [RateCDR] => 1 ) [2025-01-14 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:37:06' and `end` < '2025-01-14 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:37:22] Production.INFO: count ==6121 [2025-01-14 15:37:25] Production.ERROR: pbx CDR StartTime 2025-01-14 12:37:06 - End Time 2025-01-14 15:37:06 [2025-01-14 15:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247245', 'tblTempUsageDetail_20' ) start [2025-01-14 15:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247245', 'tblTempUsageDetail_20' ) end [2025-01-14 15:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247245', 'tblTempVendorCDR_20' ) start [2025-01-14 15:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247245', 'tblTempVendorCDR_20' ) end [2025-01-14 15:37:25] Production.INFO: ProcessCDR(1,14247245,1,1,2) [2025-01-14 15:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247245', 'tblTempUsageDetail_20' ) start [2025-01-14 15:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247245', 'tblTempUsageDetail_20' ) end [2025-01-14 15:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:37:30] Production.INFO: ==6665== Releasing lock... [2025-01-14 15:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:37:30] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:38:05 [end_date_ymd] => 2025-01-14 15:38:05 [RateCDR] => 1 ) [2025-01-14 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:38:05' and `end` < '2025-01-14 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:38:26] Production.INFO: count ==6116 [2025-01-14 15:38:29] Production.ERROR: pbx CDR StartTime 2025-01-14 12:38:05 - End Time 2025-01-14 15:38:05 [2025-01-14 15:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247251', 'tblTempUsageDetail_20' ) start [2025-01-14 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247251', 'tblTempUsageDetail_20' ) end [2025-01-14 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247251', 'tblTempVendorCDR_20' ) start [2025-01-14 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247251', 'tblTempVendorCDR_20' ) end [2025-01-14 15:38:29] Production.INFO: ProcessCDR(1,14247251,1,1,2) [2025-01-14 15:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247251', 'tblTempUsageDetail_20' ) start [2025-01-14 15:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247251', 'tblTempUsageDetail_20' ) end [2025-01-14 15:38:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:38:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:38:34] Production.INFO: ==6747== Releasing lock... [2025-01-14 15:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:38:34] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:39:06 [end_date_ymd] => 2025-01-14 15:39:06 [RateCDR] => 1 ) [2025-01-14 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:39:06' and `end` < '2025-01-14 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:39:26] Production.INFO: count ==6099 [2025-01-14 15:39:28] Production.ERROR: pbx CDR StartTime 2025-01-14 12:39:06 - End Time 2025-01-14 15:39:06 [2025-01-14 15:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247256', 'tblTempUsageDetail_20' ) start [2025-01-14 15:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247256', 'tblTempUsageDetail_20' ) end [2025-01-14 15:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247256', 'tblTempVendorCDR_20' ) start [2025-01-14 15:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247256', 'tblTempVendorCDR_20' ) end [2025-01-14 15:39:29] Production.INFO: ProcessCDR(1,14247256,1,1,2) [2025-01-14 15:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:39:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247256', 'tblTempUsageDetail_20' ) start [2025-01-14 15:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247256', 'tblTempUsageDetail_20' ) end [2025-01-14 15:39:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:39:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:39:34] Production.INFO: ==6834== Releasing lock... [2025-01-14 15:39:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:39:34] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:40:06 [end_date_ymd] => 2025-01-14 15:40:06 [RateCDR] => 1 ) [2025-01-14 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:40:06' and `end` < '2025-01-14 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:40:25] Production.INFO: count ==6093 [2025-01-14 15:40:28] Production.ERROR: pbx CDR StartTime 2025-01-14 12:40:06 - End Time 2025-01-14 15:40:06 [2025-01-14 15:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247262', 'tblTempUsageDetail_20' ) start [2025-01-14 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247262', 'tblTempUsageDetail_20' ) end [2025-01-14 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247262', 'tblTempVendorCDR_20' ) start [2025-01-14 15:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247262', 'tblTempVendorCDR_20' ) end [2025-01-14 15:40:28] Production.INFO: ProcessCDR(1,14247262,1,1,2) [2025-01-14 15:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247262', 'tblTempUsageDetail_20' ) start [2025-01-14 15:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247262', 'tblTempUsageDetail_20' ) end [2025-01-14 15:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:40:33] Production.INFO: ==6905== Releasing lock... [2025-01-14 15:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:40:33] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:41:05 [end_date_ymd] => 2025-01-14 15:41:05 [RateCDR] => 1 ) [2025-01-14 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:41:05' and `end` < '2025-01-14 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:41:22] Production.INFO: count ==6106 [2025-01-14 15:41:24] Production.ERROR: pbx CDR StartTime 2025-01-14 12:41:05 - End Time 2025-01-14 15:41:05 [2025-01-14 15:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247267', 'tblTempUsageDetail_20' ) start [2025-01-14 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247267', 'tblTempUsageDetail_20' ) end [2025-01-14 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247267', 'tblTempVendorCDR_20' ) start [2025-01-14 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247267', 'tblTempVendorCDR_20' ) end [2025-01-14 15:41:25] Production.INFO: ProcessCDR(1,14247267,1,1,2) [2025-01-14 15:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247267', 'tblTempUsageDetail_20' ) start [2025-01-14 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247267', 'tblTempUsageDetail_20' ) end [2025-01-14 15:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:41:30] Production.INFO: ==6978== Releasing lock... [2025-01-14 15:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:41:30] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:42:05 [end_date_ymd] => 2025-01-14 15:42:05 [RateCDR] => 1 ) [2025-01-14 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:42:05' and `end` < '2025-01-14 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:42:21] Production.INFO: count ==6075 [2025-01-14 15:42:23] Production.ERROR: pbx CDR StartTime 2025-01-14 12:42:05 - End Time 2025-01-14 15:42:05 [2025-01-14 15:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247272', 'tblTempUsageDetail_20' ) start [2025-01-14 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247272', 'tblTempUsageDetail_20' ) end [2025-01-14 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247272', 'tblTempVendorCDR_20' ) start [2025-01-14 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247272', 'tblTempVendorCDR_20' ) end [2025-01-14 15:42:24] Production.INFO: ProcessCDR(1,14247272,1,1,2) [2025-01-14 15:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247272', 'tblTempUsageDetail_20' ) start [2025-01-14 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247272', 'tblTempUsageDetail_20' ) end [2025-01-14 15:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:42:29] Production.INFO: ==7050== Releasing lock... [2025-01-14 15:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:42:29] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:43:05 [end_date_ymd] => 2025-01-14 15:43:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:43:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:43:19] Production.INFO: count ==6053 [2025-01-14 15:43:22] Production.ERROR: pbx CDR StartTime 2025-01-14 12:43:05 - End Time 2025-01-14 15:43:05 [2025-01-14 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247277', 'tblTempUsageDetail_20' ) start [2025-01-14 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247277', 'tblTempUsageDetail_20' ) end [2025-01-14 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247277', 'tblTempVendorCDR_20' ) start [2025-01-14 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247277', 'tblTempVendorCDR_20' ) end [2025-01-14 15:43:22] Production.INFO: ProcessCDR(1,14247277,1,1,2) [2025-01-14 15:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247277', 'tblTempUsageDetail_20' ) start [2025-01-14 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247277', 'tblTempUsageDetail_20' ) end [2025-01-14 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:43:27] Production.INFO: ==7125== Releasing lock... [2025-01-14 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:43:27] Production.INFO: 73.25 MB #Memory Used# [2025-01-14 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:44:05 [end_date_ymd] => 2025-01-14 15:44:05 [RateCDR] => 1 ) [2025-01-14 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:44:05' and `end` < '2025-01-14 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:44:20] Production.INFO: count ==6049 [2025-01-14 15:44:23] Production.ERROR: pbx CDR StartTime 2025-01-14 12:44:05 - End Time 2025-01-14 15:44:05 [2025-01-14 15:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247282', 'tblTempUsageDetail_20' ) start [2025-01-14 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247282', 'tblTempUsageDetail_20' ) end [2025-01-14 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247282', 'tblTempVendorCDR_20' ) start [2025-01-14 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247282', 'tblTempVendorCDR_20' ) end [2025-01-14 15:44:23] Production.INFO: ProcessCDR(1,14247282,1,1,2) [2025-01-14 15:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247282', 'tblTempUsageDetail_20' ) start [2025-01-14 15:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247282', 'tblTempUsageDetail_20' ) end [2025-01-14 15:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:44:28] Production.INFO: ==7195== Releasing lock... [2025-01-14 15:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:44:28] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:45:05 [end_date_ymd] => 2025-01-14 15:45:05 [RateCDR] => 1 ) [2025-01-14 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:45:05' and `end` < '2025-01-14 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:45:21] Production.INFO: count ==6051 [2025-01-14 15:45:23] Production.ERROR: pbx CDR StartTime 2025-01-14 12:45:05 - End Time 2025-01-14 15:45:05 [2025-01-14 15:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247287', 'tblTempUsageDetail_20' ) start [2025-01-14 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247287', 'tblTempUsageDetail_20' ) end [2025-01-14 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247287', 'tblTempVendorCDR_20' ) start [2025-01-14 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247287', 'tblTempVendorCDR_20' ) end [2025-01-14 15:45:24] Production.INFO: ProcessCDR(1,14247287,1,1,2) [2025-01-14 15:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247287', 'tblTempUsageDetail_20' ) start [2025-01-14 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247287', 'tblTempUsageDetail_20' ) end [2025-01-14 15:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:45:29] Production.INFO: ==7271== Releasing lock... [2025-01-14 15:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:45:29] Production.INFO: 73.25 MB #Memory Used# [2025-01-14 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:46:05 [end_date_ymd] => 2025-01-14 15:46:05 [RateCDR] => 1 ) [2025-01-14 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:46:05' and `end` < '2025-01-14 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:46:26] Production.INFO: count ==6063 [2025-01-14 15:46:28] Production.ERROR: pbx CDR StartTime 2025-01-14 12:46:05 - End Time 2025-01-14 15:46:05 [2025-01-14 15:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247292', 'tblTempUsageDetail_20' ) start [2025-01-14 15:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247292', 'tblTempUsageDetail_20' ) end [2025-01-14 15:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247292', 'tblTempVendorCDR_20' ) start [2025-01-14 15:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247292', 'tblTempVendorCDR_20' ) end [2025-01-14 15:46:29] Production.INFO: ProcessCDR(1,14247292,1,1,2) [2025-01-14 15:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247292', 'tblTempUsageDetail_20' ) start [2025-01-14 15:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247292', 'tblTempUsageDetail_20' ) end [2025-01-14 15:46:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:46:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:46:34] Production.INFO: ==7379== Releasing lock... [2025-01-14 15:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:46:34] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:47:05 [end_date_ymd] => 2025-01-14 15:47:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:47:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:47:32] Production.INFO: count ==6069 [2025-01-14 15:47:35] Production.ERROR: pbx CDR StartTime 2025-01-14 12:47:05 - End Time 2025-01-14 15:47:05 [2025-01-14 15:47:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247297', 'tblTempUsageDetail_20' ) start [2025-01-14 15:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247297', 'tblTempUsageDetail_20' ) end [2025-01-14 15:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247297', 'tblTempVendorCDR_20' ) start [2025-01-14 15:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247297', 'tblTempVendorCDR_20' ) end [2025-01-14 15:47:35] Production.INFO: ProcessCDR(1,14247297,1,1,2) [2025-01-14 15:47:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:47:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:47:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:47:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:47:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247297', 'tblTempUsageDetail_20' ) start [2025-01-14 15:47:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247297', 'tblTempUsageDetail_20' ) end [2025-01-14 15:47:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:47:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:47:40] Production.INFO: ==7450== Releasing lock... [2025-01-14 15:47:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:47:40] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:48:06 [end_date_ymd] => 2025-01-14 15:48:06 [RateCDR] => 1 ) [2025-01-14 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:48:06' and `end` < '2025-01-14 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:48:27] Production.INFO: count ==6072 [2025-01-14 15:48:30] Production.ERROR: pbx CDR StartTime 2025-01-14 12:48:06 - End Time 2025-01-14 15:48:06 [2025-01-14 15:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247302', 'tblTempUsageDetail_20' ) start [2025-01-14 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247302', 'tblTempUsageDetail_20' ) end [2025-01-14 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247302', 'tblTempVendorCDR_20' ) start [2025-01-14 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247302', 'tblTempVendorCDR_20' ) end [2025-01-14 15:48:30] Production.INFO: ProcessCDR(1,14247302,1,1,2) [2025-01-14 15:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247302', 'tblTempUsageDetail_20' ) start [2025-01-14 15:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247302', 'tblTempUsageDetail_20' ) end [2025-01-14 15:48:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:48:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:48:35] Production.INFO: ==7521== Releasing lock... [2025-01-14 15:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:48:35] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:49:06 [end_date_ymd] => 2025-01-14 15:49:06 [RateCDR] => 1 ) [2025-01-14 15:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:49:06' and `end` < '2025-01-14 15:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:49:24] Production.INFO: count ==6072 [2025-01-14 15:49:27] Production.ERROR: pbx CDR StartTime 2025-01-14 12:49:06 - End Time 2025-01-14 15:49:06 [2025-01-14 15:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247307', 'tblTempUsageDetail_20' ) start [2025-01-14 15:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247307', 'tblTempUsageDetail_20' ) end [2025-01-14 15:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247307', 'tblTempVendorCDR_20' ) start [2025-01-14 15:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247307', 'tblTempVendorCDR_20' ) end [2025-01-14 15:49:27] Production.INFO: ProcessCDR(1,14247307,1,1,2) [2025-01-14 15:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247307', 'tblTempUsageDetail_20' ) start [2025-01-14 15:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247307', 'tblTempUsageDetail_20' ) end [2025-01-14 15:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:49:32] Production.INFO: ==7595== Releasing lock... [2025-01-14 15:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:49:32] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:50:06 [end_date_ymd] => 2025-01-14 15:50:06 [RateCDR] => 1 ) [2025-01-14 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:50:06' and `end` < '2025-01-14 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:50:22] Production.INFO: count ==6085 [2025-01-14 15:50:25] Production.ERROR: pbx CDR StartTime 2025-01-14 12:50:06 - End Time 2025-01-14 15:50:06 [2025-01-14 15:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247313', 'tblTempUsageDetail_20' ) start [2025-01-14 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247313', 'tblTempUsageDetail_20' ) end [2025-01-14 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247313', 'tblTempVendorCDR_20' ) start [2025-01-14 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247313', 'tblTempVendorCDR_20' ) end [2025-01-14 15:50:25] Production.INFO: ProcessCDR(1,14247313,1,1,2) [2025-01-14 15:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247313', 'tblTempUsageDetail_20' ) start [2025-01-14 15:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247313', 'tblTempUsageDetail_20' ) end [2025-01-14 15:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:50:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:50:30] Production.INFO: ==7668== Releasing lock... [2025-01-14 15:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:50:30] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:51:05 [end_date_ymd] => 2025-01-14 15:51:05 [RateCDR] => 1 ) [2025-01-14 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:51:05' and `end` < '2025-01-14 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:51:23] Production.INFO: count ==6135 [2025-01-14 15:51:26] Production.ERROR: pbx CDR StartTime 2025-01-14 12:51:05 - End Time 2025-01-14 15:51:05 [2025-01-14 15:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247318', 'tblTempUsageDetail_20' ) start [2025-01-14 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247318', 'tblTempUsageDetail_20' ) end [2025-01-14 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247318', 'tblTempVendorCDR_20' ) start [2025-01-14 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247318', 'tblTempVendorCDR_20' ) end [2025-01-14 15:51:26] Production.INFO: ProcessCDR(1,14247318,1,1,2) [2025-01-14 15:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247318', 'tblTempUsageDetail_20' ) start [2025-01-14 15:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247318', 'tblTempUsageDetail_20' ) end [2025-01-14 15:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:51:31] Production.INFO: ==7743== Releasing lock... [2025-01-14 15:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:51:31] Production.INFO: 74 MB #Memory Used# [2025-01-14 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:52:05 [end_date_ymd] => 2025-01-14 15:52:05 [RateCDR] => 1 ) [2025-01-14 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:52:05' and `end` < '2025-01-14 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:52:19] Production.INFO: count ==6146 [2025-01-14 15:52:21] Production.ERROR: pbx CDR StartTime 2025-01-14 12:52:05 - End Time 2025-01-14 15:52:05 [2025-01-14 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247323', 'tblTempUsageDetail_20' ) start [2025-01-14 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247323', 'tblTempUsageDetail_20' ) end [2025-01-14 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247323', 'tblTempVendorCDR_20' ) start [2025-01-14 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247323', 'tblTempVendorCDR_20' ) end [2025-01-14 15:52:22] Production.INFO: ProcessCDR(1,14247323,1,1,2) [2025-01-14 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247323', 'tblTempUsageDetail_20' ) start [2025-01-14 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247323', 'tblTempUsageDetail_20' ) end [2025-01-14 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:52:27] Production.INFO: ==7815== Releasing lock... [2025-01-14 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:52:27] Production.INFO: 74 MB #Memory Used# [2025-01-14 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:53:05 [end_date_ymd] => 2025-01-14 15:53:05 [RateCDR] => 1 ) [2025-01-14 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:53:05' and `end` < '2025-01-14 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:53:25] Production.INFO: count ==6164 [2025-01-14 15:53:28] Production.ERROR: pbx CDR StartTime 2025-01-14 12:53:05 - End Time 2025-01-14 15:53:05 [2025-01-14 15:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247328', 'tblTempUsageDetail_20' ) start [2025-01-14 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247328', 'tblTempUsageDetail_20' ) end [2025-01-14 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247328', 'tblTempVendorCDR_20' ) start [2025-01-14 15:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247328', 'tblTempVendorCDR_20' ) end [2025-01-14 15:53:28] Production.INFO: ProcessCDR(1,14247328,1,1,2) [2025-01-14 15:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247328', 'tblTempUsageDetail_20' ) start [2025-01-14 15:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247328', 'tblTempUsageDetail_20' ) end [2025-01-14 15:53:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:53:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:53:33] Production.INFO: ==7885== Releasing lock... [2025-01-14 15:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:53:33] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:54:05 [end_date_ymd] => 2025-01-14 15:54:05 [RateCDR] => 1 ) [2025-01-14 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:54:05' and `end` < '2025-01-14 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:54:26] Production.INFO: count ==6169 [2025-01-14 15:54:28] Production.ERROR: pbx CDR StartTime 2025-01-14 12:54:05 - End Time 2025-01-14 15:54:05 [2025-01-14 15:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247333', 'tblTempUsageDetail_20' ) start [2025-01-14 15:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247333', 'tblTempUsageDetail_20' ) end [2025-01-14 15:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247333', 'tblTempVendorCDR_20' ) start [2025-01-14 15:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247333', 'tblTempVendorCDR_20' ) end [2025-01-14 15:54:29] Production.INFO: ProcessCDR(1,14247333,1,1,2) [2025-01-14 15:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:54:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247333', 'tblTempUsageDetail_20' ) start [2025-01-14 15:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247333', 'tblTempUsageDetail_20' ) end [2025-01-14 15:54:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:54:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:54:34] Production.INFO: ==7960== Releasing lock... [2025-01-14 15:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:54:34] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:55:05 [end_date_ymd] => 2025-01-14 15:55:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:55:05' and `end` < '2025-01-14 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:55:30] Production.INFO: count ==6165 [2025-01-14 15:55:33] Production.ERROR: pbx CDR StartTime 2025-01-14 12:55:05 - End Time 2025-01-14 15:55:05 [2025-01-14 15:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247338', 'tblTempUsageDetail_20' ) start [2025-01-14 15:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247338', 'tblTempUsageDetail_20' ) end [2025-01-14 15:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247338', 'tblTempVendorCDR_20' ) start [2025-01-14 15:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247338', 'tblTempVendorCDR_20' ) end [2025-01-14 15:55:34] Production.INFO: ProcessCDR(1,14247338,1,1,2) [2025-01-14 15:55:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247338', 'tblTempUsageDetail_20' ) start [2025-01-14 15:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247338', 'tblTempUsageDetail_20' ) end [2025-01-14 15:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:55:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:55:39] Production.INFO: ==8030== Releasing lock... [2025-01-14 15:55:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:55:39] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:56:05 [end_date_ymd] => 2025-01-14 15:56:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:56:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:56:30] Production.INFO: count ==6163 [2025-01-14 15:56:32] Production.ERROR: pbx CDR StartTime 2025-01-14 12:56:05 - End Time 2025-01-14 15:56:05 [2025-01-14 15:56:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247343', 'tblTempUsageDetail_20' ) start [2025-01-14 15:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247343', 'tblTempUsageDetail_20' ) end [2025-01-14 15:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247343', 'tblTempVendorCDR_20' ) start [2025-01-14 15:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247343', 'tblTempVendorCDR_20' ) end [2025-01-14 15:56:33] Production.INFO: ProcessCDR(1,14247343,1,1,2) [2025-01-14 15:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:56:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247343', 'tblTempUsageDetail_20' ) start [2025-01-14 15:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247343', 'tblTempUsageDetail_20' ) end [2025-01-14 15:56:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:56:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:56:38] Production.INFO: ==8109== Releasing lock... [2025-01-14 15:56:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:56:38] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:57:05 [end_date_ymd] => 2025-01-14 15:57:05 [RateCDR] => 1 ) [2025-01-14 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:57:05' and `end` < '2025-01-14 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:57:29] Production.INFO: count ==6164 [2025-01-14 15:57:31] Production.ERROR: pbx CDR StartTime 2025-01-14 12:57:05 - End Time 2025-01-14 15:57:05 [2025-01-14 15:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247348', 'tblTempUsageDetail_20' ) start [2025-01-14 15:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247348', 'tblTempUsageDetail_20' ) end [2025-01-14 15:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247348', 'tblTempVendorCDR_20' ) start [2025-01-14 15:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247348', 'tblTempVendorCDR_20' ) end [2025-01-14 15:57:32] Production.INFO: ProcessCDR(1,14247348,1,1,2) [2025-01-14 15:57:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:57:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:57:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247348', 'tblTempUsageDetail_20' ) start [2025-01-14 15:57:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247348', 'tblTempUsageDetail_20' ) end [2025-01-14 15:57:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:57:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:57:37] Production.INFO: ==8199== Releasing lock... [2025-01-14 15:57:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:57:37] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:58:05 [end_date_ymd] => 2025-01-14 15:58:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 12:58:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 15:58:33] Production.INFO: count ==6182 [2025-01-14 15:58:35] Production.ERROR: pbx CDR StartTime 2025-01-14 12:58:05 - End Time 2025-01-14 15:58:05 [2025-01-14 15:58:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:58:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247353', 'tblTempUsageDetail_20' ) start [2025-01-14 15:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247353', 'tblTempUsageDetail_20' ) end [2025-01-14 15:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247353', 'tblTempVendorCDR_20' ) start [2025-01-14 15:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247353', 'tblTempVendorCDR_20' ) end [2025-01-14 15:58:36] Production.INFO: ProcessCDR(1,14247353,1,1,2) [2025-01-14 15:58:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:58:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:58:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:58:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:58:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247353', 'tblTempUsageDetail_20' ) start [2025-01-14 15:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247353', 'tblTempUsageDetail_20' ) end [2025-01-14 15:58:41] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:58:41] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:58:41] Production.INFO: ==8284== Releasing lock... [2025-01-14 15:58:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:58:41] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 12:59:05 [end_date_ymd] => 2025-01-14 15:59:05 [RateCDR] => 1 ) [2025-01-14 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 12:59:05' and `end` < '2025-01-14 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 15:59:30] Production.INFO: count ==6169 [2025-01-14 15:59:33] Production.ERROR: pbx CDR StartTime 2025-01-14 12:59:05 - End Time 2025-01-14 15:59:05 [2025-01-14 15:59:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 15:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247358', 'tblTempUsageDetail_20' ) start [2025-01-14 15:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247358', 'tblTempUsageDetail_20' ) end [2025-01-14 15:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247358', 'tblTempVendorCDR_20' ) start [2025-01-14 15:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247358', 'tblTempVendorCDR_20' ) end [2025-01-14 15:59:33] Production.INFO: ProcessCDR(1,14247358,1,1,2) [2025-01-14 15:59:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:59:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 15:59:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:59:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 15:59:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247358', 'tblTempUsageDetail_20' ) start [2025-01-14 15:59:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247358', 'tblTempUsageDetail_20' ) end [2025-01-14 15:59:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 15:59:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 15:59:38] Production.INFO: ==8367== Releasing lock... [2025-01-14 15:59:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 15:59:38] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:00:06 [end_date_ymd] => 2025-01-14 16:00:06 [RateCDR] => 1 ) [2025-01-14 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:00:06' and `end` < '2025-01-14 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:00:26] Production.INFO: count ==6167 [2025-01-14 16:00:29] Production.ERROR: pbx CDR StartTime 2025-01-14 13:00:06 - End Time 2025-01-14 16:00:06 [2025-01-14 16:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247363', 'tblTempUsageDetail_20' ) start [2025-01-14 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247363', 'tblTempUsageDetail_20' ) end [2025-01-14 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247363', 'tblTempVendorCDR_20' ) start [2025-01-14 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247363', 'tblTempVendorCDR_20' ) end [2025-01-14 16:00:29] Production.INFO: ProcessCDR(1,14247363,1,1,2) [2025-01-14 16:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247363', 'tblTempUsageDetail_20' ) start [2025-01-14 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247363', 'tblTempUsageDetail_20' ) end [2025-01-14 16:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:00:34] Production.INFO: ==8448== Releasing lock... [2025-01-14 16:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:00:34] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:01:05 [end_date_ymd] => 2025-01-14 16:01:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:01:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:01:25] Production.INFO: count ==6156 [2025-01-14 16:01:28] Production.ERROR: pbx CDR StartTime 2025-01-14 13:01:05 - End Time 2025-01-14 16:01:05 [2025-01-14 16:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247369', 'tblTempUsageDetail_20' ) start [2025-01-14 16:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247369', 'tblTempUsageDetail_20' ) end [2025-01-14 16:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247369', 'tblTempVendorCDR_20' ) start [2025-01-14 16:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247369', 'tblTempVendorCDR_20' ) end [2025-01-14 16:01:28] Production.INFO: ProcessCDR(1,14247369,1,1,2) [2025-01-14 16:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247369', 'tblTempUsageDetail_20' ) start [2025-01-14 16:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247369', 'tblTempUsageDetail_20' ) end [2025-01-14 16:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:01:33] Production.INFO: ==8585== Releasing lock... [2025-01-14 16:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:01:33] Production.INFO: 74 MB #Memory Used# [2025-01-14 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:02:05 [end_date_ymd] => 2025-01-14 16:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:02:22] Production.INFO: count ==6164 [2025-01-14 16:02:25] Production.ERROR: pbx CDR StartTime 2025-01-14 13:02:05 - End Time 2025-01-14 16:02:05 [2025-01-14 16:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247374', 'tblTempUsageDetail_20' ) start [2025-01-14 16:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247374', 'tblTempUsageDetail_20' ) end [2025-01-14 16:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247374', 'tblTempVendorCDR_20' ) start [2025-01-14 16:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247374', 'tblTempVendorCDR_20' ) end [2025-01-14 16:02:25] Production.INFO: ProcessCDR(1,14247374,1,1,2) [2025-01-14 16:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247374', 'tblTempUsageDetail_20' ) start [2025-01-14 16:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247374', 'tblTempUsageDetail_20' ) end [2025-01-14 16:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:02:30] Production.INFO: ==8669== Releasing lock... [2025-01-14 16:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:02:30] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:03:05 [end_date_ymd] => 2025-01-14 16:03:05 [RateCDR] => 1 ) [2025-01-14 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:03:05' and `end` < '2025-01-14 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:03:20] Production.INFO: count ==6178 [2025-01-14 16:03:22] Production.ERROR: pbx CDR StartTime 2025-01-14 13:03:05 - End Time 2025-01-14 16:03:05 [2025-01-14 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247379', 'tblTempUsageDetail_20' ) start [2025-01-14 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247379', 'tblTempUsageDetail_20' ) end [2025-01-14 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247379', 'tblTempVendorCDR_20' ) start [2025-01-14 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247379', 'tblTempVendorCDR_20' ) end [2025-01-14 16:03:23] Production.INFO: ProcessCDR(1,14247379,1,1,2) [2025-01-14 16:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247379', 'tblTempUsageDetail_20' ) start [2025-01-14 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247379', 'tblTempUsageDetail_20' ) end [2025-01-14 16:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:03:27] Production.INFO: ==8754== Releasing lock... [2025-01-14 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:03:27] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:04:05 [end_date_ymd] => 2025-01-14 16:04:05 [RateCDR] => 1 ) [2025-01-14 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:04:05' and `end` < '2025-01-14 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:04:22] Production.INFO: count ==6171 [2025-01-14 16:04:24] Production.ERROR: pbx CDR StartTime 2025-01-14 13:04:05 - End Time 2025-01-14 16:04:05 [2025-01-14 16:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247384', 'tblTempUsageDetail_20' ) start [2025-01-14 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247384', 'tblTempUsageDetail_20' ) end [2025-01-14 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247384', 'tblTempVendorCDR_20' ) start [2025-01-14 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247384', 'tblTempVendorCDR_20' ) end [2025-01-14 16:04:25] Production.INFO: ProcessCDR(1,14247384,1,1,2) [2025-01-14 16:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247384', 'tblTempUsageDetail_20' ) start [2025-01-14 16:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247384', 'tblTempUsageDetail_20' ) end [2025-01-14 16:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:04:30] Production.INFO: ==8840== Releasing lock... [2025-01-14 16:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:04:30] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:05:05 [end_date_ymd] => 2025-01-14 16:05:05 [RateCDR] => 1 ) [2025-01-14 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:05:05' and `end` < '2025-01-14 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:05:19] Production.INFO: count ==6167 [2025-01-14 16:05:22] Production.ERROR: pbx CDR StartTime 2025-01-14 13:05:05 - End Time 2025-01-14 16:05:05 [2025-01-14 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247389', 'tblTempUsageDetail_20' ) start [2025-01-14 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247389', 'tblTempUsageDetail_20' ) end [2025-01-14 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247389', 'tblTempVendorCDR_20' ) start [2025-01-14 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247389', 'tblTempVendorCDR_20' ) end [2025-01-14 16:05:22] Production.INFO: ProcessCDR(1,14247389,1,1,2) [2025-01-14 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247389', 'tblTempUsageDetail_20' ) start [2025-01-14 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247389', 'tblTempUsageDetail_20' ) end [2025-01-14 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:05:27] Production.INFO: ==8923== Releasing lock... [2025-01-14 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:05:27] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:06:05 [end_date_ymd] => 2025-01-14 16:06:05 [RateCDR] => 1 ) [2025-01-14 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:06:05' and `end` < '2025-01-14 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:06:33] Production.INFO: count ==6161 [2025-01-14 16:06:36] Production.ERROR: pbx CDR StartTime 2025-01-14 13:06:05 - End Time 2025-01-14 16:06:05 [2025-01-14 16:06:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247394', 'tblTempUsageDetail_20' ) start [2025-01-14 16:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247394', 'tblTempUsageDetail_20' ) end [2025-01-14 16:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247394', 'tblTempVendorCDR_20' ) start [2025-01-14 16:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247394', 'tblTempVendorCDR_20' ) end [2025-01-14 16:06:36] Production.INFO: ProcessCDR(1,14247394,1,1,2) [2025-01-14 16:06:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:06:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:06:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:06:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247394', 'tblTempUsageDetail_20' ) start [2025-01-14 16:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247394', 'tblTempUsageDetail_20' ) end [2025-01-14 16:06:41] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:06:41] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:06:41] Production.INFO: ==9009== Releasing lock... [2025-01-14 16:06:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:06:41] Production.INFO: 74 MB #Memory Used# [2025-01-14 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:07:05 [end_date_ymd] => 2025-01-14 16:07:05 [RateCDR] => 1 ) [2025-01-14 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:07:05' and `end` < '2025-01-14 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:07:26] Production.INFO: count ==6146 [2025-01-14 16:07:29] Production.ERROR: pbx CDR StartTime 2025-01-14 13:07:05 - End Time 2025-01-14 16:07:05 [2025-01-14 16:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247399', 'tblTempUsageDetail_20' ) start [2025-01-14 16:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247399', 'tblTempUsageDetail_20' ) end [2025-01-14 16:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247399', 'tblTempVendorCDR_20' ) start [2025-01-14 16:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247399', 'tblTempVendorCDR_20' ) end [2025-01-14 16:07:29] Production.INFO: ProcessCDR(1,14247399,1,1,2) [2025-01-14 16:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247399', 'tblTempUsageDetail_20' ) start [2025-01-14 16:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247399', 'tblTempUsageDetail_20' ) end [2025-01-14 16:07:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:07:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:07:32] Production.INFO: ==9088== Releasing lock... [2025-01-14 16:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:07:32] Production.INFO: 74 MB #Memory Used# [2025-01-14 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:08:05 [end_date_ymd] => 2025-01-14 16:08:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:08:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:08:30] Production.INFO: count ==6157 [2025-01-14 16:08:33] Production.ERROR: pbx CDR StartTime 2025-01-14 13:08:05 - End Time 2025-01-14 16:08:05 [2025-01-14 16:08:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247404', 'tblTempUsageDetail_20' ) start [2025-01-14 16:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247404', 'tblTempUsageDetail_20' ) end [2025-01-14 16:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247404', 'tblTempVendorCDR_20' ) start [2025-01-14 16:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247404', 'tblTempVendorCDR_20' ) end [2025-01-14 16:08:33] Production.INFO: ProcessCDR(1,14247404,1,1,2) [2025-01-14 16:08:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:08:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:08:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:08:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:08:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247404', 'tblTempUsageDetail_20' ) start [2025-01-14 16:08:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247404', 'tblTempUsageDetail_20' ) end [2025-01-14 16:08:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:08:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:08:38] Production.INFO: ==9170== Releasing lock... [2025-01-14 16:08:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:08:38] Production.INFO: 74 MB #Memory Used# [2025-01-14 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:09:04 [end_date_ymd] => 2025-01-14 16:09:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:09:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:09:27] Production.INFO: count ==6143 [2025-01-14 16:09:30] Production.ERROR: pbx CDR StartTime 2025-01-14 13:09:04 - End Time 2025-01-14 16:09:04 [2025-01-14 16:09:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247409', 'tblTempUsageDetail_20' ) start [2025-01-14 16:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247409', 'tblTempUsageDetail_20' ) end [2025-01-14 16:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247409', 'tblTempVendorCDR_20' ) start [2025-01-14 16:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247409', 'tblTempVendorCDR_20' ) end [2025-01-14 16:09:30] Production.INFO: ProcessCDR(1,14247409,1,1,2) [2025-01-14 16:09:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247409', 'tblTempUsageDetail_20' ) start [2025-01-14 16:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247409', 'tblTempUsageDetail_20' ) end [2025-01-14 16:09:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:09:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:09:35] Production.INFO: ==9252== Releasing lock... [2025-01-14 16:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:09:35] Production.INFO: 74 MB #Memory Used# [2025-01-14 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:10:06 [end_date_ymd] => 2025-01-14 16:10:06 [RateCDR] => 1 ) [2025-01-14 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:10:06' and `end` < '2025-01-14 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:10:34] Production.INFO: count ==6165 [2025-01-14 16:10:37] Production.ERROR: pbx CDR StartTime 2025-01-14 13:10:06 - End Time 2025-01-14 16:10:06 [2025-01-14 16:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247415', 'tblTempUsageDetail_20' ) start [2025-01-14 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247415', 'tblTempUsageDetail_20' ) end [2025-01-14 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247415', 'tblTempVendorCDR_20' ) start [2025-01-14 16:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247415', 'tblTempVendorCDR_20' ) end [2025-01-14 16:10:37] Production.INFO: ProcessCDR(1,14247415,1,1,2) [2025-01-14 16:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:10:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:10:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:10:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247415', 'tblTempUsageDetail_20' ) start [2025-01-14 16:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247415', 'tblTempUsageDetail_20' ) end [2025-01-14 16:10:42] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:10:42] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:10:42] Production.INFO: ==9344== Releasing lock... [2025-01-14 16:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:10:42] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:11:04 [end_date_ymd] => 2025-01-14 16:11:04 [RateCDR] => 1 ) [2025-01-14 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:11:04' and `end` < '2025-01-14 16:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:11:32] Production.INFO: count ==6198 [2025-01-14 16:11:34] Production.ERROR: pbx CDR StartTime 2025-01-14 13:11:04 - End Time 2025-01-14 16:11:04 [2025-01-14 16:11:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247420', 'tblTempUsageDetail_20' ) start [2025-01-14 16:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247420', 'tblTempUsageDetail_20' ) end [2025-01-14 16:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247420', 'tblTempVendorCDR_20' ) start [2025-01-14 16:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247420', 'tblTempVendorCDR_20' ) end [2025-01-14 16:11:34] Production.INFO: ProcessCDR(1,14247420,1,1,2) [2025-01-14 16:11:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:11:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:11:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:11:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247420', 'tblTempUsageDetail_20' ) start [2025-01-14 16:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247420', 'tblTempUsageDetail_20' ) end [2025-01-14 16:11:39] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:11:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:11:39] Production.INFO: ==9441== Releasing lock... [2025-01-14 16:11:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:11:39] Production.INFO: 74.5 MB #Memory Used# [2025-01-14 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:12:05 [end_date_ymd] => 2025-01-14 16:12:05 [RateCDR] => 1 ) [2025-01-14 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:12:05' and `end` < '2025-01-14 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:12:30] Production.INFO: count ==6204 [2025-01-14 16:12:33] Production.ERROR: pbx CDR StartTime 2025-01-14 13:12:05 - End Time 2025-01-14 16:12:05 [2025-01-14 16:12:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247425', 'tblTempUsageDetail_20' ) start [2025-01-14 16:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247425', 'tblTempUsageDetail_20' ) end [2025-01-14 16:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247425', 'tblTempVendorCDR_20' ) start [2025-01-14 16:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247425', 'tblTempVendorCDR_20' ) end [2025-01-14 16:12:33] Production.INFO: ProcessCDR(1,14247425,1,1,2) [2025-01-14 16:12:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:12:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:12:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:12:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:12:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247425', 'tblTempUsageDetail_20' ) start [2025-01-14 16:12:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247425', 'tblTempUsageDetail_20' ) end [2025-01-14 16:12:39] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:12:39] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:12:39] Production.INFO: ==9528== Releasing lock... [2025-01-14 16:12:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:12:39] Production.INFO: 74.5 MB #Memory Used# [2025-01-14 16:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:13:04 [end_date_ymd] => 2025-01-14 16:13:04 [RateCDR] => 1 ) [2025-01-14 16: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` >= '2025-01-14 13:13:04' and `end` < '2025-01-14 16: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 ,'') [2025-01-14 16:13:32] Production.INFO: count ==6196 [2025-01-14 16:13:34] Production.ERROR: pbx CDR StartTime 2025-01-14 13:13:04 - End Time 2025-01-14 16:13:04 [2025-01-14 16:13:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:13:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247430', 'tblTempUsageDetail_20' ) start [2025-01-14 16:13:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247430', 'tblTempUsageDetail_20' ) end [2025-01-14 16:13:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247430', 'tblTempVendorCDR_20' ) start [2025-01-14 16:13:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247430', 'tblTempVendorCDR_20' ) end [2025-01-14 16:13:35] Production.INFO: ProcessCDR(1,14247430,1,1,2) [2025-01-14 16:13:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:13:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:13:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:13:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:13:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247430', 'tblTempUsageDetail_20' ) start [2025-01-14 16:13:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247430', 'tblTempUsageDetail_20' ) end [2025-01-14 16:13:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:13:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:13:40] Production.INFO: ==9620== Releasing lock... [2025-01-14 16:13:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:13:40] Production.INFO: 74.5 MB #Memory Used# [2025-01-14 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:14:05 [end_date_ymd] => 2025-01-14 16:14:05 [RateCDR] => 1 ) [2025-01-14 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:14:05' and `end` < '2025-01-14 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:14:26] Production.INFO: count ==6186 [2025-01-14 16:14:28] Production.ERROR: pbx CDR StartTime 2025-01-14 13:14:05 - End Time 2025-01-14 16:14:05 [2025-01-14 16:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247435', 'tblTempUsageDetail_20' ) start [2025-01-14 16:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247435', 'tblTempUsageDetail_20' ) end [2025-01-14 16:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247435', 'tblTempVendorCDR_20' ) start [2025-01-14 16:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247435', 'tblTempVendorCDR_20' ) end [2025-01-14 16:14:29] Production.INFO: ProcessCDR(1,14247435,1,1,2) [2025-01-14 16:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:14:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:14:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247435', 'tblTempUsageDetail_20' ) start [2025-01-14 16:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247435', 'tblTempUsageDetail_20' ) end [2025-01-14 16:14:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:14:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:14:34] Production.INFO: ==9712== Releasing lock... [2025-01-14 16:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:14:34] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:15:06 [end_date_ymd] => 2025-01-14 16:15:06 [RateCDR] => 1 ) [2025-01-14 16:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:15:06' and `end` < '2025-01-14 16:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:15:30] Production.INFO: count ==6184 [2025-01-14 16:15:33] Production.ERROR: pbx CDR StartTime 2025-01-14 13:15:06 - End Time 2025-01-14 16:15:06 [2025-01-14 16:15:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247440', 'tblTempUsageDetail_20' ) start [2025-01-14 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247440', 'tblTempUsageDetail_20' ) end [2025-01-14 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247440', 'tblTempVendorCDR_20' ) start [2025-01-14 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247440', 'tblTempVendorCDR_20' ) end [2025-01-14 16:15:33] Production.INFO: ProcessCDR(1,14247440,1,1,2) [2025-01-14 16:15:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:15:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:15:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:15:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247440', 'tblTempUsageDetail_20' ) start [2025-01-14 16:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247440', 'tblTempUsageDetail_20' ) end [2025-01-14 16:15:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:15:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:15:38] Production.INFO: ==9802== Releasing lock... [2025-01-14 16:15:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:15:38] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:16:05 [end_date_ymd] => 2025-01-14 16:16:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:16:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:16:24] Production.INFO: count ==6195 [2025-01-14 16:16:26] Production.ERROR: pbx CDR StartTime 2025-01-14 13:16:05 - End Time 2025-01-14 16:16:05 [2025-01-14 16:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247445', 'tblTempUsageDetail_20' ) start [2025-01-14 16:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247445', 'tblTempUsageDetail_20' ) end [2025-01-14 16:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247445', 'tblTempVendorCDR_20' ) start [2025-01-14 16:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247445', 'tblTempVendorCDR_20' ) end [2025-01-14 16:16:27] Production.INFO: ProcessCDR(1,14247445,1,1,2) [2025-01-14 16:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247445', 'tblTempUsageDetail_20' ) start [2025-01-14 16:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247445', 'tblTempUsageDetail_20' ) end [2025-01-14 16:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:16:32] Production.INFO: ==9886== Releasing lock... [2025-01-14 16:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:16:32] Production.INFO: 74.5 MB #Memory Used# [2025-01-14 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:17:05 [end_date_ymd] => 2025-01-14 16:17:05 [RateCDR] => 1 ) [2025-01-14 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:17:05' and `end` < '2025-01-14 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:17:28] Production.INFO: count ==6174 [2025-01-14 16:17:31] Production.ERROR: pbx CDR StartTime 2025-01-14 13:17:05 - End Time 2025-01-14 16:17:05 [2025-01-14 16:17:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247450', 'tblTempUsageDetail_20' ) start [2025-01-14 16:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247450', 'tblTempUsageDetail_20' ) end [2025-01-14 16:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247450', 'tblTempVendorCDR_20' ) start [2025-01-14 16:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247450', 'tblTempVendorCDR_20' ) end [2025-01-14 16:17:31] Production.INFO: ProcessCDR(1,14247450,1,1,2) [2025-01-14 16:17:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:17:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:17:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:17:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247450', 'tblTempUsageDetail_20' ) start [2025-01-14 16:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247450', 'tblTempUsageDetail_20' ) end [2025-01-14 16:17:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:17:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:17:36] Production.INFO: ==10009== Releasing lock... [2025-01-14 16:17:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:17:36] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:18:04 [end_date_ymd] => 2025-01-14 16:18:04 [RateCDR] => 1 ) [2025-01-14 16:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:18:04' and `end` < '2025-01-14 16:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:18:24] Production.INFO: count ==6175 [2025-01-14 16:18:27] Production.ERROR: pbx CDR StartTime 2025-01-14 13:18:04 - End Time 2025-01-14 16:18:04 [2025-01-14 16:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247455', 'tblTempUsageDetail_20' ) start [2025-01-14 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247455', 'tblTempUsageDetail_20' ) end [2025-01-14 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247455', 'tblTempVendorCDR_20' ) start [2025-01-14 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247455', 'tblTempVendorCDR_20' ) end [2025-01-14 16:18:27] Production.INFO: ProcessCDR(1,14247455,1,1,2) [2025-01-14 16:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247455', 'tblTempUsageDetail_20' ) start [2025-01-14 16:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247455', 'tblTempUsageDetail_20' ) end [2025-01-14 16:18:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:18:32] Production.INFO: ==10100== Releasing lock... [2025-01-14 16:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:18:32] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:19:05 [end_date_ymd] => 2025-01-14 16:19:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:19:05' and `end` < '2025-01-14 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:19:26] Production.INFO: count ==6162 [2025-01-14 16:19:28] Production.ERROR: pbx CDR StartTime 2025-01-14 13:19:05 - End Time 2025-01-14 16:19:05 [2025-01-14 16:19:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247460', 'tblTempUsageDetail_20' ) start [2025-01-14 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247460', 'tblTempUsageDetail_20' ) end [2025-01-14 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247460', 'tblTempVendorCDR_20' ) start [2025-01-14 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247460', 'tblTempVendorCDR_20' ) end [2025-01-14 16:19:28] Production.INFO: ProcessCDR(1,14247460,1,1,2) [2025-01-14 16:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:19:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:19:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:19:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247460', 'tblTempUsageDetail_20' ) start [2025-01-14 16:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247460', 'tblTempUsageDetail_20' ) end [2025-01-14 16:19:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:19:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:19:34] Production.INFO: ==10178== Releasing lock... [2025-01-14 16:19:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:19:34] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:20:05 [end_date_ymd] => 2025-01-14 16:20:05 [RateCDR] => 1 ) [2025-01-14 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:20:05' and `end` < '2025-01-14 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:20:19] Production.INFO: count ==6170 [2025-01-14 16:20:21] Production.ERROR: pbx CDR StartTime 2025-01-14 13:20:05 - End Time 2025-01-14 16:20:05 [2025-01-14 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247466', 'tblTempUsageDetail_20' ) start [2025-01-14 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247466', 'tblTempUsageDetail_20' ) end [2025-01-14 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247466', 'tblTempVendorCDR_20' ) start [2025-01-14 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247466', 'tblTempVendorCDR_20' ) end [2025-01-14 16:20:22] Production.INFO: ProcessCDR(1,14247466,1,1,2) [2025-01-14 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247466', 'tblTempUsageDetail_20' ) start [2025-01-14 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247466', 'tblTempUsageDetail_20' ) end [2025-01-14 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:20:27] Production.INFO: ==10255== Releasing lock... [2025-01-14 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:20:27] Production.INFO: 74.25 MB #Memory Used# [2025-01-14 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:21:05 [end_date_ymd] => 2025-01-14 16:21:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:21:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:21:28] Production.INFO: count ==6252 [2025-01-14 16:21:30] Production.ERROR: pbx CDR StartTime 2025-01-14 13:21:05 - End Time 2025-01-14 16:21:05 [2025-01-14 16:21:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247471', 'tblTempUsageDetail_20' ) start [2025-01-14 16:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247471', 'tblTempUsageDetail_20' ) end [2025-01-14 16:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247471', 'tblTempVendorCDR_20' ) start [2025-01-14 16:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247471', 'tblTempVendorCDR_20' ) end [2025-01-14 16:21:31] Production.INFO: ProcessCDR(1,14247471,1,1,2) [2025-01-14 16:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:21:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:21:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:21:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247471', 'tblTempUsageDetail_20' ) start [2025-01-14 16:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247471', 'tblTempUsageDetail_20' ) end [2025-01-14 16:21:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:21:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:21:36] Production.INFO: ==10336== Releasing lock... [2025-01-14 16:21:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:21:36] Production.INFO: 74.75 MB #Memory Used# [2025-01-14 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:22:05 [end_date_ymd] => 2025-01-14 16:22:05 [RateCDR] => 1 ) [2025-01-14 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:22:05' and `end` < '2025-01-14 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:22:27] Production.INFO: count ==6279 [2025-01-14 16:22:29] Production.ERROR: pbx CDR StartTime 2025-01-14 13:22:05 - End Time 2025-01-14 16:22:05 [2025-01-14 16:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247476', 'tblTempUsageDetail_20' ) start [2025-01-14 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247476', 'tblTempUsageDetail_20' ) end [2025-01-14 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247476', 'tblTempVendorCDR_20' ) start [2025-01-14 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247476', 'tblTempVendorCDR_20' ) end [2025-01-14 16:22:29] Production.INFO: ProcessCDR(1,14247476,1,1,2) [2025-01-14 16:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247476', 'tblTempUsageDetail_20' ) start [2025-01-14 16:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247476', 'tblTempUsageDetail_20' ) end [2025-01-14 16:22:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:22:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:22:35] Production.INFO: ==10412== Releasing lock... [2025-01-14 16:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:22:35] Production.INFO: 75 MB #Memory Used# [2025-01-14 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:23:05 [end_date_ymd] => 2025-01-14 16:23:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:23:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:23:21] Production.INFO: count ==6296 [2025-01-14 16:23:24] Production.ERROR: pbx CDR StartTime 2025-01-14 13:23:05 - End Time 2025-01-14 16:23:05 [2025-01-14 16:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247481', 'tblTempUsageDetail_20' ) start [2025-01-14 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247481', 'tblTempUsageDetail_20' ) end [2025-01-14 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247481', 'tblTempVendorCDR_20' ) start [2025-01-14 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247481', 'tblTempVendorCDR_20' ) end [2025-01-14 16:23:24] Production.INFO: ProcessCDR(1,14247481,1,1,2) [2025-01-14 16:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247481', 'tblTempUsageDetail_20' ) start [2025-01-14 16:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247481', 'tblTempUsageDetail_20' ) end [2025-01-14 16:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:23:29] Production.INFO: ==10484== Releasing lock... [2025-01-14 16:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:23:29] Production.INFO: 75.25 MB #Memory Used# [2025-01-14 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:24:05 [end_date_ymd] => 2025-01-14 16:24:05 [RateCDR] => 1 ) [2025-01-14 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:24:05' and `end` < '2025-01-14 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:24:30] Production.INFO: count ==6298 [2025-01-14 16:24:33] Production.ERROR: pbx CDR StartTime 2025-01-14 13:24:05 - End Time 2025-01-14 16:24:05 [2025-01-14 16:24:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247486', 'tblTempUsageDetail_20' ) start [2025-01-14 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247486', 'tblTempUsageDetail_20' ) end [2025-01-14 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247486', 'tblTempVendorCDR_20' ) start [2025-01-14 16:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247486', 'tblTempVendorCDR_20' ) end [2025-01-14 16:24:33] Production.INFO: ProcessCDR(1,14247486,1,1,2) [2025-01-14 16:24:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:24:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:24:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:24:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247486', 'tblTempUsageDetail_20' ) start [2025-01-14 16:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247486', 'tblTempUsageDetail_20' ) end [2025-01-14 16:24:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:24:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:24:38] Production.INFO: ==10555== Releasing lock... [2025-01-14 16:24:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:24:38] Production.INFO: 75.25 MB #Memory Used# [2025-01-14 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:25:05 [end_date_ymd] => 2025-01-14 16:25:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:25:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:25:32] Production.INFO: count ==6283 [2025-01-14 16:25:35] Production.ERROR: pbx CDR StartTime 2025-01-14 13:25:05 - End Time 2025-01-14 16:25:05 [2025-01-14 16:25:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247491', 'tblTempUsageDetail_20' ) start [2025-01-14 16:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247491', 'tblTempUsageDetail_20' ) end [2025-01-14 16:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247491', 'tblTempVendorCDR_20' ) start [2025-01-14 16:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247491', 'tblTempVendorCDR_20' ) end [2025-01-14 16:25:35] Production.INFO: ProcessCDR(1,14247491,1,1,2) [2025-01-14 16:25:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:25:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:25:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:25:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247491', 'tblTempUsageDetail_20' ) start [2025-01-14 16:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247491', 'tblTempUsageDetail_20' ) end [2025-01-14 16:25:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:25:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:25:40] Production.INFO: ==10631== Releasing lock... [2025-01-14 16:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:25:40] Production.INFO: 75 MB #Memory Used# [2025-01-14 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:26:05 [end_date_ymd] => 2025-01-14 16:26:05 [RateCDR] => 1 ) [2025-01-14 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:26:05' and `end` < '2025-01-14 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:26:23] Production.INFO: count ==6257 [2025-01-14 16:26:26] Production.ERROR: pbx CDR StartTime 2025-01-14 13:26:05 - End Time 2025-01-14 16:26:05 [2025-01-14 16:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247496', 'tblTempUsageDetail_20' ) start [2025-01-14 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247496', 'tblTempUsageDetail_20' ) end [2025-01-14 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247496', 'tblTempVendorCDR_20' ) start [2025-01-14 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247496', 'tblTempVendorCDR_20' ) end [2025-01-14 16:26:26] Production.INFO: ProcessCDR(1,14247496,1,1,2) [2025-01-14 16:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247496', 'tblTempUsageDetail_20' ) start [2025-01-14 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247496', 'tblTempUsageDetail_20' ) end [2025-01-14 16:26:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:26:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:26:31] Production.INFO: ==10705== Releasing lock... [2025-01-14 16:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:26:31] Production.INFO: 74.75 MB #Memory Used# [2025-01-14 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:27:05 [end_date_ymd] => 2025-01-14 16:27:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:27:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:27:21] Production.INFO: count ==6248 [2025-01-14 16:27:23] Production.ERROR: pbx CDR StartTime 2025-01-14 13:27:05 - End Time 2025-01-14 16:27:05 [2025-01-14 16:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247501', 'tblTempUsageDetail_20' ) start [2025-01-14 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247501', 'tblTempUsageDetail_20' ) end [2025-01-14 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247501', 'tblTempVendorCDR_20' ) start [2025-01-14 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247501', 'tblTempVendorCDR_20' ) end [2025-01-14 16:27:23] Production.INFO: ProcessCDR(1,14247501,1,1,2) [2025-01-14 16:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247501', 'tblTempUsageDetail_20' ) start [2025-01-14 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247501', 'tblTempUsageDetail_20' ) end [2025-01-14 16:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:27:28] Production.INFO: ==10775== Releasing lock... [2025-01-14 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:27:28] Production.INFO: 74.75 MB #Memory Used# [2025-01-14 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:28:05 [end_date_ymd] => 2025-01-14 16:28:05 [RateCDR] => 1 ) [2025-01-14 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:28:05' and `end` < '2025-01-14 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:28:19] Production.INFO: count ==6257 [2025-01-14 16:28:22] Production.ERROR: pbx CDR StartTime 2025-01-14 13:28:05 - End Time 2025-01-14 16:28:05 [2025-01-14 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247506', 'tblTempUsageDetail_20' ) start [2025-01-14 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247506', 'tblTempUsageDetail_20' ) end [2025-01-14 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247506', 'tblTempVendorCDR_20' ) start [2025-01-14 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247506', 'tblTempVendorCDR_20' ) end [2025-01-14 16:28:22] Production.INFO: ProcessCDR(1,14247506,1,1,2) [2025-01-14 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247506', 'tblTempUsageDetail_20' ) start [2025-01-14 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247506', 'tblTempUsageDetail_20' ) end [2025-01-14 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:28:27] Production.INFO: ==10845== Releasing lock... [2025-01-14 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:28:27] Production.INFO: 74.75 MB #Memory Used# [2025-01-14 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:29:05 [end_date_ymd] => 2025-01-14 16:29:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:29:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:29:27] Production.INFO: count ==6254 [2025-01-14 16:29:29] Production.ERROR: pbx CDR StartTime 2025-01-14 13:29:05 - End Time 2025-01-14 16:29:05 [2025-01-14 16:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247511', 'tblTempUsageDetail_20' ) start [2025-01-14 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247511', 'tblTempUsageDetail_20' ) end [2025-01-14 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247511', 'tblTempVendorCDR_20' ) start [2025-01-14 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247511', 'tblTempVendorCDR_20' ) end [2025-01-14 16:29:30] Production.INFO: ProcessCDR(1,14247511,1,1,2) [2025-01-14 16:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247511', 'tblTempUsageDetail_20' ) start [2025-01-14 16:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247511', 'tblTempUsageDetail_20' ) end [2025-01-14 16:29:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:29:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:29:35] Production.INFO: ==10921== Releasing lock... [2025-01-14 16:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:29:35] Production.INFO: 74.75 MB #Memory Used# [2025-01-14 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:30:06 [end_date_ymd] => 2025-01-14 16:30:06 [RateCDR] => 1 ) [2025-01-14 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:30:06' and `end` < '2025-01-14 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:30:29] Production.INFO: count ==6252 [2025-01-14 16:30:32] Production.ERROR: pbx CDR StartTime 2025-01-14 13:30:06 - End Time 2025-01-14 16:30:06 [2025-01-14 16:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247517', 'tblTempUsageDetail_20' ) start [2025-01-14 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247517', 'tblTempUsageDetail_20' ) end [2025-01-14 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247517', 'tblTempVendorCDR_20' ) start [2025-01-14 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247517', 'tblTempVendorCDR_20' ) end [2025-01-14 16:30:32] Production.INFO: ProcessCDR(1,14247517,1,1,2) [2025-01-14 16:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247517', 'tblTempUsageDetail_20' ) start [2025-01-14 16:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247517', 'tblTempUsageDetail_20' ) end [2025-01-14 16:30:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:30:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:30:37] Production.INFO: ==10994== Releasing lock... [2025-01-14 16:30:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:30:37] Production.INFO: 74.75 MB #Memory Used# [2025-01-14 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:31:05 [end_date_ymd] => 2025-01-14 16:31:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:31:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:31:32] Production.INFO: count ==6297 [2025-01-14 16:31:35] Production.ERROR: pbx CDR StartTime 2025-01-14 13:31:05 - End Time 2025-01-14 16:31:05 [2025-01-14 16:31:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247522', 'tblTempUsageDetail_20' ) start [2025-01-14 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247522', 'tblTempUsageDetail_20' ) end [2025-01-14 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247522', 'tblTempVendorCDR_20' ) start [2025-01-14 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247522', 'tblTempVendorCDR_20' ) end [2025-01-14 16:31:35] Production.INFO: ProcessCDR(1,14247522,1,1,2) [2025-01-14 16:31:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:31:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:31:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:31:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:31:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247522', 'tblTempUsageDetail_20' ) start [2025-01-14 16:31:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247522', 'tblTempUsageDetail_20' ) end [2025-01-14 16:31:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:31:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:31:40] Production.INFO: ==11067== Releasing lock... [2025-01-14 16:31:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:31:40] Production.INFO: 75.25 MB #Memory Used# [2025-01-14 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:32:05 [end_date_ymd] => 2025-01-14 16:32:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:32:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:32:32] Production.INFO: count ==6326 [2025-01-14 16:32:35] Production.ERROR: pbx CDR StartTime 2025-01-14 13:32:05 - End Time 2025-01-14 16:32:05 [2025-01-14 16:32:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247527', 'tblTempUsageDetail_20' ) start [2025-01-14 16:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247527', 'tblTempUsageDetail_20' ) end [2025-01-14 16:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247527', 'tblTempVendorCDR_20' ) start [2025-01-14 16:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247527', 'tblTempVendorCDR_20' ) end [2025-01-14 16:32:35] Production.INFO: ProcessCDR(1,14247527,1,1,2) [2025-01-14 16:32:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:32:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:32:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:32:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247527', 'tblTempUsageDetail_20' ) start [2025-01-14 16:32:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247527', 'tblTempUsageDetail_20' ) end [2025-01-14 16:32:40] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:32:40] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:32:40] Production.INFO: ==11138== Releasing lock... [2025-01-14 16:32:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:32:40] Production.INFO: 75.25 MB #Memory Used# [2025-01-14 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:33:05 [end_date_ymd] => 2025-01-14 16:33:05 [RateCDR] => 1 ) [2025-01-14 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:33:05' and `end` < '2025-01-14 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:33:28] Production.INFO: count ==6337 [2025-01-14 16:33:30] Production.ERROR: pbx CDR StartTime 2025-01-14 13:33:05 - End Time 2025-01-14 16:33:05 [2025-01-14 16:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247532', 'tblTempUsageDetail_20' ) start [2025-01-14 16:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247532', 'tblTempUsageDetail_20' ) end [2025-01-14 16:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247532', 'tblTempVendorCDR_20' ) start [2025-01-14 16:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247532', 'tblTempVendorCDR_20' ) end [2025-01-14 16:33:31] Production.INFO: ProcessCDR(1,14247532,1,1,2) [2025-01-14 16:33:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:33:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:33:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:33:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247532', 'tblTempUsageDetail_20' ) start [2025-01-14 16:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247532', 'tblTempUsageDetail_20' ) end [2025-01-14 16:33:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:33:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:33:36] Production.INFO: ==11248== Releasing lock... [2025-01-14 16:33:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:33:36] Production.INFO: 75.5 MB #Memory Used# [2025-01-14 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:34:05 [end_date_ymd] => 2025-01-14 16:34:05 [RateCDR] => 1 ) [2025-01-14 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:34:05' and `end` < '2025-01-14 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:34:27] Production.INFO: count ==6342 [2025-01-14 16:34:30] Production.ERROR: pbx CDR StartTime 2025-01-14 13:34:05 - End Time 2025-01-14 16:34:05 [2025-01-14 16:34:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247537', 'tblTempUsageDetail_20' ) start [2025-01-14 16:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247537', 'tblTempUsageDetail_20' ) end [2025-01-14 16:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247537', 'tblTempVendorCDR_20' ) start [2025-01-14 16:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247537', 'tblTempVendorCDR_20' ) end [2025-01-14 16:34:30] Production.INFO: ProcessCDR(1,14247537,1,1,2) [2025-01-14 16:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:34:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247537', 'tblTempUsageDetail_20' ) start [2025-01-14 16:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247537', 'tblTempUsageDetail_20' ) end [2025-01-14 16:34:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:34:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:34:35] Production.INFO: ==11317== Releasing lock... [2025-01-14 16:34:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:34:35] Production.INFO: 75.5 MB #Memory Used# [2025-01-14 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:35:06 [end_date_ymd] => 2025-01-14 16:35:06 [RateCDR] => 1 ) [2025-01-14 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:35:06' and `end` < '2025-01-14 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:35:26] Production.INFO: count ==6353 [2025-01-14 16:35:29] Production.ERROR: pbx CDR StartTime 2025-01-14 13:35:06 - End Time 2025-01-14 16:35:06 [2025-01-14 16:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247542', 'tblTempUsageDetail_20' ) start [2025-01-14 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247542', 'tblTempUsageDetail_20' ) end [2025-01-14 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247542', 'tblTempVendorCDR_20' ) start [2025-01-14 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247542', 'tblTempVendorCDR_20' ) end [2025-01-14 16:35:29] Production.INFO: ProcessCDR(1,14247542,1,1,2) [2025-01-14 16:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247542', 'tblTempUsageDetail_20' ) start [2025-01-14 16:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247542', 'tblTempUsageDetail_20' ) end [2025-01-14 16:35:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:35:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:35:35] Production.INFO: ==11388== Releasing lock... [2025-01-14 16:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:35:35] Production.INFO: 75.5 MB #Memory Used# [2025-01-14 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:36:05 [end_date_ymd] => 2025-01-14 16:36:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:36:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:36:30] Production.INFO: count ==6356 [2025-01-14 16:36:32] Production.ERROR: pbx CDR StartTime 2025-01-14 13:36:05 - End Time 2025-01-14 16:36:05 [2025-01-14 16:36:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247547', 'tblTempUsageDetail_20' ) start [2025-01-14 16:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247547', 'tblTempUsageDetail_20' ) end [2025-01-14 16:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247547', 'tblTempVendorCDR_20' ) start [2025-01-14 16:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247547', 'tblTempVendorCDR_20' ) end [2025-01-14 16:36:33] Production.INFO: ProcessCDR(1,14247547,1,1,2) [2025-01-14 16:36:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:36:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:36:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:36:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247547', 'tblTempUsageDetail_20' ) start [2025-01-14 16:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247547', 'tblTempUsageDetail_20' ) end [2025-01-14 16:36:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:36:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:36:38] Production.INFO: ==11460== Releasing lock... [2025-01-14 16:36:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:36:38] Production.INFO: 75.5 MB #Memory Used# [2025-01-14 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:37:06 [end_date_ymd] => 2025-01-14 16:37:06 [RateCDR] => 1 ) [2025-01-14 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:37:06' and `end` < '2025-01-14 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:37:29] Production.INFO: count ==6375 [2025-01-14 16:37:32] Production.ERROR: pbx CDR StartTime 2025-01-14 13:37:06 - End Time 2025-01-14 16:37:06 [2025-01-14 16:37:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247552', 'tblTempUsageDetail_20' ) start [2025-01-14 16:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247552', 'tblTempUsageDetail_20' ) end [2025-01-14 16:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247552', 'tblTempVendorCDR_20' ) start [2025-01-14 16:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247552', 'tblTempVendorCDR_20' ) end [2025-01-14 16:37:33] Production.INFO: ProcessCDR(1,14247552,1,1,2) [2025-01-14 16:37:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:37:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:37:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:37:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247552', 'tblTempUsageDetail_20' ) start [2025-01-14 16:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247552', 'tblTempUsageDetail_20' ) end [2025-01-14 16:37:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:37:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:37:38] Production.INFO: ==11537== Releasing lock... [2025-01-14 16:37:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:37:38] Production.INFO: 75.75 MB #Memory Used# [2025-01-14 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:38:05 [end_date_ymd] => 2025-01-14 16:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:38:24] Production.INFO: count ==6379 [2025-01-14 16:38:27] Production.ERROR: pbx CDR StartTime 2025-01-14 13:38:05 - End Time 2025-01-14 16:38:05 [2025-01-14 16:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247557', 'tblTempUsageDetail_20' ) start [2025-01-14 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247557', 'tblTempUsageDetail_20' ) end [2025-01-14 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247557', 'tblTempVendorCDR_20' ) start [2025-01-14 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247557', 'tblTempVendorCDR_20' ) end [2025-01-14 16:38:27] Production.INFO: ProcessCDR(1,14247557,1,1,2) [2025-01-14 16:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247557', 'tblTempUsageDetail_20' ) start [2025-01-14 16:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247557', 'tblTempUsageDetail_20' ) end [2025-01-14 16:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:38:32] Production.INFO: ==11607== Releasing lock... [2025-01-14 16:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:38:32] Production.INFO: 75.75 MB #Memory Used# [2025-01-14 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:39:05 [end_date_ymd] => 2025-01-14 16:39:05 [RateCDR] => 1 ) [2025-01-14 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:39:05' and `end` < '2025-01-14 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:39:24] Production.INFO: count ==6376 [2025-01-14 16:39:27] Production.ERROR: pbx CDR StartTime 2025-01-14 13:39:05 - End Time 2025-01-14 16:39:05 [2025-01-14 16:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247562', 'tblTempUsageDetail_20' ) start [2025-01-14 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247562', 'tblTempUsageDetail_20' ) end [2025-01-14 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247562', 'tblTempVendorCDR_20' ) start [2025-01-14 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247562', 'tblTempVendorCDR_20' ) end [2025-01-14 16:39:27] Production.INFO: ProcessCDR(1,14247562,1,1,2) [2025-01-14 16:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:39:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247562', 'tblTempUsageDetail_20' ) start [2025-01-14 16:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247562', 'tblTempUsageDetail_20' ) end [2025-01-14 16:39:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:39:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:39:32] Production.INFO: ==11682== Releasing lock... [2025-01-14 16:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:39:32] Production.INFO: 75.75 MB #Memory Used# [2025-01-14 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:40:05 [end_date_ymd] => 2025-01-14 16:40:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:40:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:40:25] Production.INFO: count ==6374 [2025-01-14 16:40:28] Production.ERROR: pbx CDR StartTime 2025-01-14 13:40:05 - End Time 2025-01-14 16:40:05 [2025-01-14 16:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247568', 'tblTempUsageDetail_20' ) start [2025-01-14 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247568', 'tblTempUsageDetail_20' ) end [2025-01-14 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247568', 'tblTempVendorCDR_20' ) start [2025-01-14 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247568', 'tblTempVendorCDR_20' ) end [2025-01-14 16:40:29] Production.INFO: ProcessCDR(1,14247568,1,1,2) [2025-01-14 16:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247568', 'tblTempUsageDetail_20' ) start [2025-01-14 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247568', 'tblTempUsageDetail_20' ) end [2025-01-14 16:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:40:34] Production.INFO: ==11754== Releasing lock... [2025-01-14 16:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:40:34] Production.INFO: 75.75 MB #Memory Used# [2025-01-14 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:41:05 [end_date_ymd] => 2025-01-14 16:41:05 [RateCDR] => 1 ) [2025-01-14 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:41:05' and `end` < '2025-01-14 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:41:25] Production.INFO: count ==6376 [2025-01-14 16:41:28] Production.ERROR: pbx CDR StartTime 2025-01-14 13:41:05 - End Time 2025-01-14 16:41:05 [2025-01-14 16:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247573', 'tblTempUsageDetail_20' ) start [2025-01-14 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247573', 'tblTempUsageDetail_20' ) end [2025-01-14 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247573', 'tblTempVendorCDR_20' ) start [2025-01-14 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247573', 'tblTempVendorCDR_20' ) end [2025-01-14 16:41:28] Production.INFO: ProcessCDR(1,14247573,1,1,2) [2025-01-14 16:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:41:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:41:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247573', 'tblTempUsageDetail_20' ) start [2025-01-14 16:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247573', 'tblTempUsageDetail_20' ) end [2025-01-14 16:41:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:41:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:41:33] Production.INFO: ==11827== Releasing lock... [2025-01-14 16:41:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:41:33] Production.INFO: 75.75 MB #Memory Used# [2025-01-14 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:42:05 [end_date_ymd] => 2025-01-14 16:42:05 [RateCDR] => 1 ) [2025-01-14 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:42:05' and `end` < '2025-01-14 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:42:22] Production.INFO: count ==6352 [2025-01-14 16:42:25] Production.ERROR: pbx CDR StartTime 2025-01-14 13:42:05 - End Time 2025-01-14 16:42:05 [2025-01-14 16:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247578', 'tblTempUsageDetail_20' ) start [2025-01-14 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247578', 'tblTempUsageDetail_20' ) end [2025-01-14 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247578', 'tblTempVendorCDR_20' ) start [2025-01-14 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247578', 'tblTempVendorCDR_20' ) end [2025-01-14 16:42:25] Production.INFO: ProcessCDR(1,14247578,1,1,2) [2025-01-14 16:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247578', 'tblTempUsageDetail_20' ) start [2025-01-14 16:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247578', 'tblTempUsageDetail_20' ) end [2025-01-14 16:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:42:30] Production.INFO: ==11903== Releasing lock... [2025-01-14 16:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:42:30] Production.INFO: 75.5 MB #Memory Used# [2025-01-14 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:43:05 [end_date_ymd] => 2025-01-14 16:43:05 [RateCDR] => 1 ) [2025-01-14 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:43:05' and `end` < '2025-01-14 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:43:22] Production.INFO: count ==6334 [2025-01-14 16:43:25] Production.ERROR: pbx CDR StartTime 2025-01-14 13:43:05 - End Time 2025-01-14 16:43:05 [2025-01-14 16:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247583', 'tblTempUsageDetail_20' ) start [2025-01-14 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247583', 'tblTempUsageDetail_20' ) end [2025-01-14 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247583', 'tblTempVendorCDR_20' ) start [2025-01-14 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247583', 'tblTempVendorCDR_20' ) end [2025-01-14 16:43:25] Production.INFO: ProcessCDR(1,14247583,1,1,2) [2025-01-14 16:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247583', 'tblTempUsageDetail_20' ) start [2025-01-14 16:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247583', 'tblTempUsageDetail_20' ) end [2025-01-14 16:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:43:30] Production.INFO: ==11974== Releasing lock... [2025-01-14 16:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:43:30] Production.INFO: 75.5 MB #Memory Used# [2025-01-14 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:44:05 [end_date_ymd] => 2025-01-14 16:44:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:44:05' and `end` < '2025-01-14 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:44:21] Production.INFO: count ==6330 [2025-01-14 16:44:24] Production.ERROR: pbx CDR StartTime 2025-01-14 13:44:05 - End Time 2025-01-14 16:44:05 [2025-01-14 16:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247588', 'tblTempUsageDetail_20' ) start [2025-01-14 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247588', 'tblTempUsageDetail_20' ) end [2025-01-14 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247588', 'tblTempVendorCDR_20' ) start [2025-01-14 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247588', 'tblTempVendorCDR_20' ) end [2025-01-14 16:44:24] Production.INFO: ProcessCDR(1,14247588,1,1,2) [2025-01-14 16:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247588', 'tblTempUsageDetail_20' ) start [2025-01-14 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247588', 'tblTempUsageDetail_20' ) end [2025-01-14 16:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:44:29] Production.INFO: ==12045== Releasing lock... [2025-01-14 16:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:44:29] Production.INFO: 75.5 MB #Memory Used# [2025-01-14 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:45:05 [end_date_ymd] => 2025-01-14 16:45:05 [RateCDR] => 1 ) [2025-01-14 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:45:05' and `end` < '2025-01-14 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:45:18] Production.INFO: count ==6317 [2025-01-14 16:45:21] Production.ERROR: pbx CDR StartTime 2025-01-14 13:45:05 - End Time 2025-01-14 16:45:05 [2025-01-14 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247593', 'tblTempUsageDetail_20' ) start [2025-01-14 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247593', 'tblTempUsageDetail_20' ) end [2025-01-14 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247593', 'tblTempVendorCDR_20' ) start [2025-01-14 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247593', 'tblTempVendorCDR_20' ) end [2025-01-14 16:45:21] Production.INFO: ProcessCDR(1,14247593,1,1,2) [2025-01-14 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247593', 'tblTempUsageDetail_20' ) start [2025-01-14 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247593', 'tblTempUsageDetail_20' ) end [2025-01-14 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:45:27] Production.INFO: ==12117== Releasing lock... [2025-01-14 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:45:27] Production.INFO: 75.25 MB #Memory Used# [2025-01-14 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:46:06 [end_date_ymd] => 2025-01-14 16:46:06 [RateCDR] => 1 ) [2025-01-14 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:46:06' and `end` < '2025-01-14 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:46:19] Production.INFO: count ==6332 [2025-01-14 16:46:22] Production.ERROR: pbx CDR StartTime 2025-01-14 13:46:06 - End Time 2025-01-14 16:46:06 [2025-01-14 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247598', 'tblTempUsageDetail_20' ) start [2025-01-14 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247598', 'tblTempUsageDetail_20' ) end [2025-01-14 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247598', 'tblTempVendorCDR_20' ) start [2025-01-14 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247598', 'tblTempVendorCDR_20' ) end [2025-01-14 16:46:22] Production.INFO: ProcessCDR(1,14247598,1,1,2) [2025-01-14 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247598', 'tblTempUsageDetail_20' ) start [2025-01-14 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247598', 'tblTempUsageDetail_20' ) end [2025-01-14 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:46:27] Production.INFO: ==12190== Releasing lock... [2025-01-14 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:46:27] Production.INFO: 75.5 MB #Memory Used# [2025-01-14 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:47:05 [end_date_ymd] => 2025-01-14 16:47:05 [RateCDR] => 1 ) [2025-01-14 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:47:05' and `end` < '2025-01-14 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:47:18] Production.INFO: count ==6322 [2025-01-14 16:47:21] Production.ERROR: pbx CDR StartTime 2025-01-14 13:47:05 - End Time 2025-01-14 16:47:05 [2025-01-14 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247603', 'tblTempUsageDetail_20' ) start [2025-01-14 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247603', 'tblTempUsageDetail_20' ) end [2025-01-14 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247603', 'tblTempVendorCDR_20' ) start [2025-01-14 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247603', 'tblTempVendorCDR_20' ) end [2025-01-14 16:47:21] Production.INFO: ProcessCDR(1,14247603,1,1,2) [2025-01-14 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247603', 'tblTempUsageDetail_20' ) start [2025-01-14 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247603', 'tblTempUsageDetail_20' ) end [2025-01-14 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:47:26] Production.INFO: ==12262== Releasing lock... [2025-01-14 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:47:26] Production.INFO: 75.25 MB #Memory Used# [2025-01-14 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:48:06 [end_date_ymd] => 2025-01-14 16:48:06 [RateCDR] => 1 ) [2025-01-14 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:48:06' and `end` < '2025-01-14 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:48:21] Production.INFO: count ==6322 [2025-01-14 16:48:24] Production.ERROR: pbx CDR StartTime 2025-01-14 13:48:06 - End Time 2025-01-14 16:48:06 [2025-01-14 16:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247608', 'tblTempUsageDetail_20' ) start [2025-01-14 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247608', 'tblTempUsageDetail_20' ) end [2025-01-14 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247608', 'tblTempVendorCDR_20' ) start [2025-01-14 16:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247608', 'tblTempVendorCDR_20' ) end [2025-01-14 16:48:24] Production.INFO: ProcessCDR(1,14247608,1,1,2) [2025-01-14 16:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247608', 'tblTempUsageDetail_20' ) start [2025-01-14 16:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247608', 'tblTempUsageDetail_20' ) end [2025-01-14 16:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:48:30] Production.INFO: ==12373== Releasing lock... [2025-01-14 16:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:48:30] Production.INFO: 75.25 MB #Memory Used# [2025-01-14 16:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:49:04 [end_date_ymd] => 2025-01-14 16:49:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:49:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:49:23] Production.INFO: count ==6336 [2025-01-14 16:49:26] Production.ERROR: pbx CDR StartTime 2025-01-14 13:49:04 - End Time 2025-01-14 16:49:04 [2025-01-14 16:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247613', 'tblTempUsageDetail_20' ) start [2025-01-14 16:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247613', 'tblTempUsageDetail_20' ) end [2025-01-14 16:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247613', 'tblTempVendorCDR_20' ) start [2025-01-14 16:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247613', 'tblTempVendorCDR_20' ) end [2025-01-14 16:49:26] Production.INFO: ProcessCDR(1,14247613,1,1,2) [2025-01-14 16:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247613', 'tblTempUsageDetail_20' ) start [2025-01-14 16:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247613', 'tblTempUsageDetail_20' ) end [2025-01-14 16:49:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:49:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:49:31] Production.INFO: ==12445== Releasing lock... [2025-01-14 16:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:49:31] Production.INFO: 75.5 MB #Memory Used# [2025-01-14 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:50:06 [end_date_ymd] => 2025-01-14 16:50:06 [RateCDR] => 1 ) [2025-01-14 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:50:06' and `end` < '2025-01-14 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:50:23] Production.INFO: count ==6349 [2025-01-14 16:50:25] Production.ERROR: pbx CDR StartTime 2025-01-14 13:50:06 - End Time 2025-01-14 16:50:06 [2025-01-14 16:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247619', 'tblTempUsageDetail_20' ) start [2025-01-14 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247619', 'tblTempUsageDetail_20' ) end [2025-01-14 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247619', 'tblTempVendorCDR_20' ) start [2025-01-14 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247619', 'tblTempVendorCDR_20' ) end [2025-01-14 16:50:26] Production.INFO: ProcessCDR(1,14247619,1,1,2) [2025-01-14 16:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247619', 'tblTempUsageDetail_20' ) start [2025-01-14 16:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247619', 'tblTempUsageDetail_20' ) end [2025-01-14 16:50:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:50:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:50:31] Production.INFO: ==12520== Releasing lock... [2025-01-14 16:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:50:31] Production.INFO: 75.5 MB #Memory Used# [2025-01-14 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:51:05 [end_date_ymd] => 2025-01-14 16:51:05 [RateCDR] => 1 ) [2025-01-14 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:51:05' and `end` < '2025-01-14 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:51:22] Production.INFO: count ==6361 [2025-01-14 16:51:25] Production.ERROR: pbx CDR StartTime 2025-01-14 13:51:05 - End Time 2025-01-14 16:51:05 [2025-01-14 16:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247624', 'tblTempUsageDetail_20' ) start [2025-01-14 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247624', 'tblTempUsageDetail_20' ) end [2025-01-14 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247624', 'tblTempVendorCDR_20' ) start [2025-01-14 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247624', 'tblTempVendorCDR_20' ) end [2025-01-14 16:51:25] Production.INFO: ProcessCDR(1,14247624,1,1,2) [2025-01-14 16:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247624', 'tblTempUsageDetail_20' ) start [2025-01-14 16:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247624', 'tblTempUsageDetail_20' ) end [2025-01-14 16:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:51:30] Production.INFO: ==12593== Releasing lock... [2025-01-14 16:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:51:30] Production.INFO: 75.5 MB #Memory Used# [2025-01-14 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:52:05 [end_date_ymd] => 2025-01-14 16:52:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:52:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:52:27] Production.INFO: count ==6383 [2025-01-14 16:52:30] Production.ERROR: pbx CDR StartTime 2025-01-14 13:52:05 - End Time 2025-01-14 16:52:05 [2025-01-14 16:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247629', 'tblTempUsageDetail_20' ) start [2025-01-14 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247629', 'tblTempUsageDetail_20' ) end [2025-01-14 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247629', 'tblTempVendorCDR_20' ) start [2025-01-14 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247629', 'tblTempVendorCDR_20' ) end [2025-01-14 16:52:30] Production.INFO: ProcessCDR(1,14247629,1,1,2) [2025-01-14 16:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:52:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247629', 'tblTempUsageDetail_20' ) start [2025-01-14 16:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247629', 'tblTempUsageDetail_20' ) end [2025-01-14 16:52:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:52:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:52:35] Production.INFO: ==12664== Releasing lock... [2025-01-14 16:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:52:35] Production.INFO: 75.75 MB #Memory Used# [2025-01-14 16:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:53:04 [end_date_ymd] => 2025-01-14 16:53:04 [RateCDR] => 1 ) [2025-01-14 16:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:53:04' and `end` < '2025-01-14 16:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:53:24] Production.INFO: count ==6476 [2025-01-14 16:53:27] Production.ERROR: pbx CDR StartTime 2025-01-14 13:53:04 - End Time 2025-01-14 16:53:04 [2025-01-14 16:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247634', 'tblTempUsageDetail_20' ) start [2025-01-14 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247634', 'tblTempUsageDetail_20' ) end [2025-01-14 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247634', 'tblTempVendorCDR_20' ) start [2025-01-14 16:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247634', 'tblTempVendorCDR_20' ) end [2025-01-14 16:53:27] Production.INFO: ProcessCDR(1,14247634,1,1,2) [2025-01-14 16:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247634', 'tblTempUsageDetail_20' ) start [2025-01-14 16:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247634', 'tblTempUsageDetail_20' ) end [2025-01-14 16:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:53:32] Production.INFO: ==12740== Releasing lock... [2025-01-14 16:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:53:32] Production.INFO: 76.5 MB #Memory Used# [2025-01-14 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:54:05 [end_date_ymd] => 2025-01-14 16:54:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:54:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:54:28] Production.INFO: count ==6508 [2025-01-14 16:54:30] Production.ERROR: pbx CDR StartTime 2025-01-14 13:54:05 - End Time 2025-01-14 16:54:05 [2025-01-14 16:54:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247639', 'tblTempUsageDetail_20' ) start [2025-01-14 16:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247639', 'tblTempUsageDetail_20' ) end [2025-01-14 16:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247639', 'tblTempVendorCDR_20' ) start [2025-01-14 16:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247639', 'tblTempVendorCDR_20' ) end [2025-01-14 16:54:31] Production.INFO: ProcessCDR(1,14247639,1,1,2) [2025-01-14 16:54:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:54:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:54:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:54:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247639', 'tblTempUsageDetail_20' ) start [2025-01-14 16:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247639', 'tblTempUsageDetail_20' ) end [2025-01-14 16:54:36] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:54:36] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:54:36] Production.INFO: ==12813== Releasing lock... [2025-01-14 16:54:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:54:36] Production.INFO: 76.75 MB #Memory Used# [2025-01-14 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:55:05 [end_date_ymd] => 2025-01-14 16:55:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:55:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:55:23] Production.INFO: count ==6515 [2025-01-14 16:55:26] Production.ERROR: pbx CDR StartTime 2025-01-14 13:55:05 - End Time 2025-01-14 16:55:05 [2025-01-14 16:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247644', 'tblTempUsageDetail_20' ) start [2025-01-14 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247644', 'tblTempUsageDetail_20' ) end [2025-01-14 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247644', 'tblTempVendorCDR_20' ) start [2025-01-14 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247644', 'tblTempVendorCDR_20' ) end [2025-01-14 16:55:26] Production.INFO: ProcessCDR(1,14247644,1,1,2) [2025-01-14 16:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247644', 'tblTempUsageDetail_20' ) start [2025-01-14 16:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247644', 'tblTempUsageDetail_20' ) end [2025-01-14 16:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:55:30] Production.INFO: ==12888== Releasing lock... [2025-01-14 16:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:55:30] Production.INFO: 76.75 MB #Memory Used# [2025-01-14 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:56:05 [end_date_ymd] => 2025-01-14 16:56:05 [RateCDR] => 1 ) [2025-01-14 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:56:05' and `end` < '2025-01-14 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:56:23] Production.INFO: count ==6522 [2025-01-14 16:56:26] Production.ERROR: pbx CDR StartTime 2025-01-14 13:56:05 - End Time 2025-01-14 16:56:05 [2025-01-14 16:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247649', 'tblTempUsageDetail_20' ) start [2025-01-14 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247649', 'tblTempUsageDetail_20' ) end [2025-01-14 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247649', 'tblTempVendorCDR_20' ) start [2025-01-14 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247649', 'tblTempVendorCDR_20' ) end [2025-01-14 16:56:26] Production.INFO: ProcessCDR(1,14247649,1,1,2) [2025-01-14 16:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247649', 'tblTempUsageDetail_20' ) start [2025-01-14 16:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247649', 'tblTempUsageDetail_20' ) end [2025-01-14 16:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:56:31] Production.INFO: ==12960== Releasing lock... [2025-01-14 16:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:56:31] Production.INFO: 76.75 MB #Memory Used# [2025-01-14 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:57:04 [end_date_ymd] => 2025-01-14 16:57:04 [RateCDR] => 1 ) [2025-01-14 16:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 13:57:04' and `end` < '2025-01-14 16:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 16:57:19] Production.INFO: count ==6604 [2025-01-14 16:57:22] Production.ERROR: pbx CDR StartTime 2025-01-14 13:57:04 - End Time 2025-01-14 16:57:04 [2025-01-14 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247654', 'tblTempUsageDetail_20' ) start [2025-01-14 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247654', 'tblTempUsageDetail_20' ) end [2025-01-14 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247654', 'tblTempVendorCDR_20' ) start [2025-01-14 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247654', 'tblTempVendorCDR_20' ) end [2025-01-14 16:57:22] Production.INFO: ProcessCDR(1,14247654,1,1,2) [2025-01-14 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247654', 'tblTempUsageDetail_20' ) start [2025-01-14 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247654', 'tblTempUsageDetail_20' ) end [2025-01-14 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:57:27] Production.INFO: ==13034== Releasing lock... [2025-01-14 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:57:27] Production.INFO: 77.5 MB #Memory Used# [2025-01-14 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:58:05 [end_date_ymd] => 2025-01-14 16:58:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:58:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:58:20] Production.INFO: count ==6605 [2025-01-14 16:58:23] Production.ERROR: pbx CDR StartTime 2025-01-14 13:58:05 - End Time 2025-01-14 16:58:05 [2025-01-14 16:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247659', 'tblTempUsageDetail_20' ) start [2025-01-14 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247659', 'tblTempUsageDetail_20' ) end [2025-01-14 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247659', 'tblTempVendorCDR_20' ) start [2025-01-14 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247659', 'tblTempVendorCDR_20' ) end [2025-01-14 16:58:23] Production.INFO: ProcessCDR(1,14247659,1,1,2) [2025-01-14 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247659', 'tblTempUsageDetail_20' ) start [2025-01-14 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247659', 'tblTempUsageDetail_20' ) end [2025-01-14 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:58:27] Production.INFO: ==13112== Releasing lock... [2025-01-14 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:58:27] Production.INFO: 77.5 MB #Memory Used# [2025-01-14 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 13:59:05 [end_date_ymd] => 2025-01-14 16:59:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 13:59:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 16:59:19] Production.INFO: count ==6624 [2025-01-14 16:59:22] Production.ERROR: pbx CDR StartTime 2025-01-14 13:59:05 - End Time 2025-01-14 16:59:05 [2025-01-14 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247664', 'tblTempUsageDetail_20' ) start [2025-01-14 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247664', 'tblTempUsageDetail_20' ) end [2025-01-14 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247664', 'tblTempVendorCDR_20' ) start [2025-01-14 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247664', 'tblTempVendorCDR_20' ) end [2025-01-14 16:59:22] Production.INFO: ProcessCDR(1,14247664,1,1,2) [2025-01-14 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247664', 'tblTempUsageDetail_20' ) start [2025-01-14 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247664', 'tblTempUsageDetail_20' ) end [2025-01-14 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 16:59:27] Production.INFO: ==13186== Releasing lock... [2025-01-14 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 16:59:27] Production.INFO: 77.5 MB #Memory Used# [2025-01-14 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:00:06 [end_date_ymd] => 2025-01-14 17:00:06 [RateCDR] => 1 ) [2025-01-14 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:00:06' and `end` < '2025-01-14 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:00:29] Production.INFO: count ==6619 [2025-01-14 17:00:32] Production.ERROR: pbx CDR StartTime 2025-01-14 14:00:06 - End Time 2025-01-14 17:00:06 [2025-01-14 17:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247669', 'tblTempUsageDetail_20' ) start [2025-01-14 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247669', 'tblTempUsageDetail_20' ) end [2025-01-14 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247669', 'tblTempVendorCDR_20' ) start [2025-01-14 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247669', 'tblTempVendorCDR_20' ) end [2025-01-14 17:00:32] Production.INFO: ProcessCDR(1,14247669,1,1,2) [2025-01-14 17:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247669', 'tblTempUsageDetail_20' ) start [2025-01-14 17:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247669', 'tblTempUsageDetail_20' ) end [2025-01-14 17:00:38] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:00:38] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:00:38] Production.INFO: ==13260== Releasing lock... [2025-01-14 17:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:00:38] Production.INFO: 77.5 MB #Memory Used# [2025-01-14 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:01:05 [end_date_ymd] => 2025-01-14 17:01:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:01:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:01:24] Production.INFO: count ==6642 [2025-01-14 17:01:26] Production.ERROR: pbx CDR StartTime 2025-01-14 14:01:05 - End Time 2025-01-14 17:01:05 [2025-01-14 17:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247675', 'tblTempUsageDetail_20' ) start [2025-01-14 17:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247675', 'tblTempUsageDetail_20' ) end [2025-01-14 17:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247675', 'tblTempVendorCDR_20' ) start [2025-01-14 17:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247675', 'tblTempVendorCDR_20' ) end [2025-01-14 17:01:27] Production.INFO: ProcessCDR(1,14247675,1,1,2) [2025-01-14 17:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247675', 'tblTempUsageDetail_20' ) start [2025-01-14 17:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247675', 'tblTempUsageDetail_20' ) end [2025-01-14 17:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:01:32] Production.INFO: ==13361== Releasing lock... [2025-01-14 17:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:01:32] Production.INFO: 77.75 MB #Memory Used# [2025-01-14 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:02:05 [end_date_ymd] => 2025-01-14 17:02:05 [RateCDR] => 1 ) [2025-01-14 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:02:05' and `end` < '2025-01-14 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:02:20] Production.INFO: count ==6729 [2025-01-14 17:02:23] Production.ERROR: pbx CDR StartTime 2025-01-14 14:02:05 - End Time 2025-01-14 17:02:05 [2025-01-14 17:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247680', 'tblTempUsageDetail_20' ) start [2025-01-14 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247680', 'tblTempUsageDetail_20' ) end [2025-01-14 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247680', 'tblTempVendorCDR_20' ) start [2025-01-14 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247680', 'tblTempVendorCDR_20' ) end [2025-01-14 17:02:23] Production.INFO: ProcessCDR(1,14247680,1,1,2) [2025-01-14 17:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247680', 'tblTempUsageDetail_20' ) start [2025-01-14 17:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247680', 'tblTempUsageDetail_20' ) end [2025-01-14 17:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:02:29] Production.INFO: ==13442== Releasing lock... [2025-01-14 17:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:02:29] Production.INFO: 78.25 MB #Memory Used# [2025-01-14 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:03:05 [end_date_ymd] => 2025-01-14 17:03:05 [RateCDR] => 1 ) [2025-01-14 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:03:05' and `end` < '2025-01-14 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:03:20] Production.INFO: count ==6703 [2025-01-14 17:03:23] Production.ERROR: pbx CDR StartTime 2025-01-14 14:03:05 - End Time 2025-01-14 17:03:05 [2025-01-14 17:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247685', 'tblTempUsageDetail_20' ) start [2025-01-14 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247685', 'tblTempUsageDetail_20' ) end [2025-01-14 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247685', 'tblTempVendorCDR_20' ) start [2025-01-14 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247685', 'tblTempVendorCDR_20' ) end [2025-01-14 17:03:23] Production.INFO: ProcessCDR(1,14247685,1,1,2) [2025-01-14 17:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247685', 'tblTempUsageDetail_20' ) start [2025-01-14 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247685', 'tblTempUsageDetail_20' ) end [2025-01-14 17:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:03:29] Production.INFO: ==13522== Releasing lock... [2025-01-14 17:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:03:29] Production.INFO: 78.25 MB #Memory Used# [2025-01-14 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:04:05 [end_date_ymd] => 2025-01-14 17:04:05 [RateCDR] => 1 ) [2025-01-14 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:04:05' and `end` < '2025-01-14 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:04:20] Production.INFO: count ==6679 [2025-01-14 17:04:23] Production.ERROR: pbx CDR StartTime 2025-01-14 14:04:05 - End Time 2025-01-14 17:04:05 [2025-01-14 17:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247690', 'tblTempUsageDetail_20' ) start [2025-01-14 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247690', 'tblTempUsageDetail_20' ) end [2025-01-14 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247690', 'tblTempVendorCDR_20' ) start [2025-01-14 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247690', 'tblTempVendorCDR_20' ) end [2025-01-14 17:04:23] Production.INFO: ProcessCDR(1,14247690,1,1,2) [2025-01-14 17:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247690', 'tblTempUsageDetail_20' ) start [2025-01-14 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247690', 'tblTempUsageDetail_20' ) end [2025-01-14 17:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:04:28] Production.INFO: ==13647== Releasing lock... [2025-01-14 17:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:04:28] Production.INFO: 78 MB #Memory Used# [2025-01-14 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:05:06 [end_date_ymd] => 2025-01-14 17:05:06 [RateCDR] => 1 ) [2025-01-14 17:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:05:06' and `end` < '2025-01-14 17:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:05:27] Production.INFO: count ==6654 [2025-01-14 17:05:30] Production.ERROR: pbx CDR StartTime 2025-01-14 14:05:06 - End Time 2025-01-14 17:05:06 [2025-01-14 17:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247695', 'tblTempUsageDetail_20' ) start [2025-01-14 17:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247695', 'tblTempUsageDetail_20' ) end [2025-01-14 17:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247695', 'tblTempVendorCDR_20' ) start [2025-01-14 17:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247695', 'tblTempVendorCDR_20' ) end [2025-01-14 17:05:30] Production.INFO: ProcessCDR(1,14247695,1,1,2) [2025-01-14 17:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247695', 'tblTempUsageDetail_20' ) start [2025-01-14 17:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247695', 'tblTempUsageDetail_20' ) end [2025-01-14 17:05:35] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:05:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:05:35] Production.INFO: ==13732== Releasing lock... [2025-01-14 17:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:05:35] Production.INFO: 77.75 MB #Memory Used# [2025-01-14 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:06:05 [end_date_ymd] => 2025-01-14 17:06:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:06:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:06:21] Production.INFO: count ==6645 [2025-01-14 17:06:24] Production.ERROR: pbx CDR StartTime 2025-01-14 14:06:05 - End Time 2025-01-14 17:06:05 [2025-01-14 17:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247700', 'tblTempUsageDetail_20' ) start [2025-01-14 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247700', 'tblTempUsageDetail_20' ) end [2025-01-14 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247700', 'tblTempVendorCDR_20' ) start [2025-01-14 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247700', 'tblTempVendorCDR_20' ) end [2025-01-14 17:06:24] Production.INFO: ProcessCDR(1,14247700,1,1,2) [2025-01-14 17:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247700', 'tblTempUsageDetail_20' ) start [2025-01-14 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247700', 'tblTempUsageDetail_20' ) end [2025-01-14 17:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:06:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:06:28] Production.INFO: ==13825== Releasing lock... [2025-01-14 17:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:06:28] Production.INFO: 77.75 MB #Memory Used# [2025-01-14 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:07:05 [end_date_ymd] => 2025-01-14 17:07:05 [RateCDR] => 1 ) [2025-01-14 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:07:05' and `end` < '2025-01-14 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:07:20] Production.INFO: count ==6645 [2025-01-14 17:07:23] Production.ERROR: pbx CDR StartTime 2025-01-14 14:07:05 - End Time 2025-01-14 17:07:05 [2025-01-14 17:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247705', 'tblTempUsageDetail_20' ) start [2025-01-14 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247705', 'tblTempUsageDetail_20' ) end [2025-01-14 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247705', 'tblTempVendorCDR_20' ) start [2025-01-14 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247705', 'tblTempVendorCDR_20' ) end [2025-01-14 17:07:23] Production.INFO: ProcessCDR(1,14247705,1,1,2) [2025-01-14 17:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247705', 'tblTempUsageDetail_20' ) start [2025-01-14 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247705', 'tblTempUsageDetail_20' ) end [2025-01-14 17:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:07:28] Production.INFO: ==13933== Releasing lock... [2025-01-14 17:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:07:28] Production.INFO: 77.75 MB #Memory Used# [2025-01-14 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:08:05 [end_date_ymd] => 2025-01-14 17:08:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:08:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:08:24] Production.INFO: count ==6634 [2025-01-14 17:08:27] Production.ERROR: pbx CDR StartTime 2025-01-14 14:08:05 - End Time 2025-01-14 17:08:05 [2025-01-14 17:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247710', 'tblTempUsageDetail_20' ) start [2025-01-14 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247710', 'tblTempUsageDetail_20' ) end [2025-01-14 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247710', 'tblTempVendorCDR_20' ) start [2025-01-14 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247710', 'tblTempVendorCDR_20' ) end [2025-01-14 17:08:27] Production.INFO: ProcessCDR(1,14247710,1,1,2) [2025-01-14 17:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247710', 'tblTempUsageDetail_20' ) start [2025-01-14 17:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247710', 'tblTempUsageDetail_20' ) end [2025-01-14 17:08:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:08:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:08:32] Production.INFO: ==14025== Releasing lock... [2025-01-14 17:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:08:32] Production.INFO: 77.75 MB #Memory Used# [2025-01-14 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:09:05 [end_date_ymd] => 2025-01-14 17:09:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:09:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:09:19] Production.INFO: count ==6627 [2025-01-14 17:09:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:09:05 - End Time 2025-01-14 17:09:05 [2025-01-14 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247715', 'tblTempUsageDetail_20' ) start [2025-01-14 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247715', 'tblTempUsageDetail_20' ) end [2025-01-14 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247715', 'tblTempVendorCDR_20' ) start [2025-01-14 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247715', 'tblTempVendorCDR_20' ) end [2025-01-14 17:09:22] Production.INFO: ProcessCDR(1,14247715,1,1,2) [2025-01-14 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247715', 'tblTempUsageDetail_20' ) start [2025-01-14 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247715', 'tblTempUsageDetail_20' ) end [2025-01-14 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:09:27] Production.INFO: ==14118== Releasing lock... [2025-01-14 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:09:27] Production.INFO: 77.5 MB #Memory Used# [2025-01-14 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:10:05 [end_date_ymd] => 2025-01-14 17:10:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:10:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:10:19] Production.INFO: count ==6601 [2025-01-14 17:10:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:10:05 - End Time 2025-01-14 17:10:05 [2025-01-14 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247721', 'tblTempUsageDetail_20' ) start [2025-01-14 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247721', 'tblTempUsageDetail_20' ) end [2025-01-14 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247721', 'tblTempVendorCDR_20' ) start [2025-01-14 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247721', 'tblTempVendorCDR_20' ) end [2025-01-14 17:10:22] Production.INFO: ProcessCDR(1,14247721,1,1,2) [2025-01-14 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247721', 'tblTempUsageDetail_20' ) start [2025-01-14 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247721', 'tblTempUsageDetail_20' ) end [2025-01-14 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:10:27] Production.INFO: ==14209== Releasing lock... [2025-01-14 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:10:27] Production.INFO: 77.5 MB #Memory Used# [2025-01-14 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:11:06 [end_date_ymd] => 2025-01-14 17:11:06 [RateCDR] => 1 ) [2025-01-14 17:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:11:06' and `end` < '2025-01-14 17:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:11:21] Production.INFO: count ==6608 [2025-01-14 17:11:24] Production.ERROR: pbx CDR StartTime 2025-01-14 14:11:06 - End Time 2025-01-14 17:11:06 [2025-01-14 17:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247726', 'tblTempUsageDetail_20' ) start [2025-01-14 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247726', 'tblTempUsageDetail_20' ) end [2025-01-14 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247726', 'tblTempVendorCDR_20' ) start [2025-01-14 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247726', 'tblTempVendorCDR_20' ) end [2025-01-14 17:11:24] Production.INFO: ProcessCDR(1,14247726,1,1,2) [2025-01-14 17:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247726', 'tblTempUsageDetail_20' ) start [2025-01-14 17:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247726', 'tblTempUsageDetail_20' ) end [2025-01-14 17:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:11:29] Production.INFO: ==14296== Releasing lock... [2025-01-14 17:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:11:29] Production.INFO: 77.5 MB #Memory Used# [2025-01-14 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:12:05 [end_date_ymd] => 2025-01-14 17:12:05 [RateCDR] => 1 ) [2025-01-14 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:12:05' and `end` < '2025-01-14 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:12:23] Production.INFO: count ==6598 [2025-01-14 17:12:26] Production.ERROR: pbx CDR StartTime 2025-01-14 14:12:05 - End Time 2025-01-14 17:12:05 [2025-01-14 17:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247731', 'tblTempUsageDetail_20' ) start [2025-01-14 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247731', 'tblTempUsageDetail_20' ) end [2025-01-14 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247731', 'tblTempVendorCDR_20' ) start [2025-01-14 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247731', 'tblTempVendorCDR_20' ) end [2025-01-14 17:12:26] Production.INFO: ProcessCDR(1,14247731,1,1,2) [2025-01-14 17:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247731', 'tblTempUsageDetail_20' ) start [2025-01-14 17:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247731', 'tblTempUsageDetail_20' ) end [2025-01-14 17:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:12:32] Production.INFO: ==14374== Releasing lock... [2025-01-14 17:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:12:32] Production.INFO: 77.5 MB #Memory Used# [2025-01-14 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:13:05 [end_date_ymd] => 2025-01-14 17:13:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:13:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:13:22] Production.INFO: count ==6591 [2025-01-14 17:13:25] Production.ERROR: pbx CDR StartTime 2025-01-14 14:13:05 - End Time 2025-01-14 17:13:05 [2025-01-14 17:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247736', 'tblTempUsageDetail_20' ) start [2025-01-14 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247736', 'tblTempUsageDetail_20' ) end [2025-01-14 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247736', 'tblTempVendorCDR_20' ) start [2025-01-14 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247736', 'tblTempVendorCDR_20' ) end [2025-01-14 17:13:25] Production.INFO: ProcessCDR(1,14247736,1,1,2) [2025-01-14 17:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247736', 'tblTempUsageDetail_20' ) start [2025-01-14 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247736', 'tblTempUsageDetail_20' ) end [2025-01-14 17:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:13:30] Production.INFO: ==14448== Releasing lock... [2025-01-14 17:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:13:30] Production.INFO: 77.25 MB #Memory Used# [2025-01-14 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:14:05 [end_date_ymd] => 2025-01-14 17:14:05 [RateCDR] => 1 ) [2025-01-14 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:14:05' and `end` < '2025-01-14 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:14:22] Production.INFO: count ==6579 [2025-01-14 17:14:25] Production.ERROR: pbx CDR StartTime 2025-01-14 14:14:05 - End Time 2025-01-14 17:14:05 [2025-01-14 17:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247741', 'tblTempUsageDetail_20' ) start [2025-01-14 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247741', 'tblTempUsageDetail_20' ) end [2025-01-14 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247741', 'tblTempVendorCDR_20' ) start [2025-01-14 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247741', 'tblTempVendorCDR_20' ) end [2025-01-14 17:14:25] Production.INFO: ProcessCDR(1,14247741,1,1,2) [2025-01-14 17:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247741', 'tblTempUsageDetail_20' ) start [2025-01-14 17:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247741', 'tblTempUsageDetail_20' ) end [2025-01-14 17:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:14:30] Production.INFO: ==14519== Releasing lock... [2025-01-14 17:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:14:30] Production.INFO: 77.25 MB #Memory Used# [2025-01-14 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:15:05 [end_date_ymd] => 2025-01-14 17:15:05 [RateCDR] => 1 ) [2025-01-14 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:15:05' and `end` < '2025-01-14 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:15:19] Production.INFO: count ==6542 [2025-01-14 17:15:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:15:05 - End Time 2025-01-14 17:15:05 [2025-01-14 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247746', 'tblTempUsageDetail_20' ) start [2025-01-14 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247746', 'tblTempUsageDetail_20' ) end [2025-01-14 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247746', 'tblTempVendorCDR_20' ) start [2025-01-14 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247746', 'tblTempVendorCDR_20' ) end [2025-01-14 17:15:22] Production.INFO: ProcessCDR(1,14247746,1,1,2) [2025-01-14 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247746', 'tblTempUsageDetail_20' ) start [2025-01-14 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247746', 'tblTempUsageDetail_20' ) end [2025-01-14 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:15:25] Production.INFO: ==14594== Releasing lock... [2025-01-14 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:15:25] Production.INFO: 77 MB #Memory Used# [2025-01-14 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:16:05 [end_date_ymd] => 2025-01-14 17:16:05 [RateCDR] => 1 ) [2025-01-14 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:16:05' and `end` < '2025-01-14 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:16:19] Production.INFO: count ==6538 [2025-01-14 17:16:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:16:05 - End Time 2025-01-14 17:16:05 [2025-01-14 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247751', 'tblTempUsageDetail_20' ) start [2025-01-14 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247751', 'tblTempUsageDetail_20' ) end [2025-01-14 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247751', 'tblTempVendorCDR_20' ) start [2025-01-14 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247751', 'tblTempVendorCDR_20' ) end [2025-01-14 17:16:22] Production.INFO: ProcessCDR(1,14247751,1,1,2) [2025-01-14 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247751', 'tblTempUsageDetail_20' ) start [2025-01-14 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247751', 'tblTempUsageDetail_20' ) end [2025-01-14 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:16:27] Production.INFO: ==14667== Releasing lock... [2025-01-14 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:16:27] Production.INFO: 77 MB #Memory Used# [2025-01-14 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:17:05 [end_date_ymd] => 2025-01-14 17:17:05 [RateCDR] => 1 ) [2025-01-14 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:17:05' and `end` < '2025-01-14 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:17:19] Production.INFO: count ==6539 [2025-01-14 17:17:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:17:05 - End Time 2025-01-14 17:17:05 [2025-01-14 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247756', 'tblTempUsageDetail_20' ) start [2025-01-14 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247756', 'tblTempUsageDetail_20' ) end [2025-01-14 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247756', 'tblTempVendorCDR_20' ) start [2025-01-14 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247756', 'tblTempVendorCDR_20' ) end [2025-01-14 17:17:22] Production.INFO: ProcessCDR(1,14247756,1,1,2) [2025-01-14 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247756', 'tblTempUsageDetail_20' ) start [2025-01-14 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247756', 'tblTempUsageDetail_20' ) end [2025-01-14 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:17:27] Production.INFO: ==14743== Releasing lock... [2025-01-14 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:17:27] Production.INFO: 77 MB #Memory Used# [2025-01-14 17:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:18:04 [end_date_ymd] => 2025-01-14 17:18:04 [RateCDR] => 1 ) [2025-01-14 17:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:18:04' and `end` < '2025-01-14 17:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:18:18] Production.INFO: count ==6495 [2025-01-14 17:18:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:18:04 - End Time 2025-01-14 17:18:04 [2025-01-14 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247761', 'tblTempUsageDetail_20' ) start [2025-01-14 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247761', 'tblTempUsageDetail_20' ) end [2025-01-14 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247761', 'tblTempVendorCDR_20' ) start [2025-01-14 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247761', 'tblTempVendorCDR_20' ) end [2025-01-14 17:18:21] Production.INFO: ProcessCDR(1,14247761,1,1,2) [2025-01-14 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247761', 'tblTempUsageDetail_20' ) start [2025-01-14 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247761', 'tblTempUsageDetail_20' ) end [2025-01-14 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:18:25] Production.INFO: ==14812== Releasing lock... [2025-01-14 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:18:25] Production.INFO: 76.5 MB #Memory Used# [2025-01-14 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:19:05 [end_date_ymd] => 2025-01-14 17:19:05 [RateCDR] => 1 ) [2025-01-14 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:19:05' and `end` < '2025-01-14 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:19:22] Production.INFO: count ==6496 [2025-01-14 17:19:24] Production.ERROR: pbx CDR StartTime 2025-01-14 14:19:05 - End Time 2025-01-14 17:19:05 [2025-01-14 17:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247766', 'tblTempUsageDetail_20' ) start [2025-01-14 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247766', 'tblTempUsageDetail_20' ) end [2025-01-14 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247766', 'tblTempVendorCDR_20' ) start [2025-01-14 17:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247766', 'tblTempVendorCDR_20' ) end [2025-01-14 17:19:24] Production.INFO: ProcessCDR(1,14247766,1,1,2) [2025-01-14 17:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247766', 'tblTempUsageDetail_20' ) start [2025-01-14 17:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247766', 'tblTempUsageDetail_20' ) end [2025-01-14 17:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:19:30] Production.INFO: ==14922== Releasing lock... [2025-01-14 17:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:19:30] Production.INFO: 76.5 MB #Memory Used# [2025-01-14 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:20:06 [end_date_ymd] => 2025-01-14 17:20:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:20:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:20:21] Production.INFO: count ==6490 [2025-01-14 17:20:24] Production.ERROR: pbx CDR StartTime 2025-01-14 14:20:06 - End Time 2025-01-14 17:20:06 [2025-01-14 17:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247771', 'tblTempUsageDetail_20' ) start [2025-01-14 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247771', 'tblTempUsageDetail_20' ) end [2025-01-14 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247771', 'tblTempVendorCDR_20' ) start [2025-01-14 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247771', 'tblTempVendorCDR_20' ) end [2025-01-14 17:20:24] Production.INFO: ProcessCDR(1,14247771,1,1,2) [2025-01-14 17:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247771', 'tblTempUsageDetail_20' ) start [2025-01-14 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247771', 'tblTempUsageDetail_20' ) end [2025-01-14 17:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:20:29] Production.INFO: ==14995== Releasing lock... [2025-01-14 17:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:20:29] Production.INFO: 76.5 MB #Memory Used# [2025-01-14 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:21:05 [end_date_ymd] => 2025-01-14 17:21:05 [RateCDR] => 1 ) [2025-01-14 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:21:05' and `end` < '2025-01-14 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:21:21] Production.INFO: count ==6472 [2025-01-14 17:21:23] Production.ERROR: pbx CDR StartTime 2025-01-14 14:21:05 - End Time 2025-01-14 17:21:05 [2025-01-14 17:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247777', 'tblTempUsageDetail_20' ) start [2025-01-14 17:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247777', 'tblTempUsageDetail_20' ) end [2025-01-14 17:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247777', 'tblTempVendorCDR_20' ) start [2025-01-14 17:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247777', 'tblTempVendorCDR_20' ) end [2025-01-14 17:21:24] Production.INFO: ProcessCDR(1,14247777,1,1,2) [2025-01-14 17:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247777', 'tblTempUsageDetail_20' ) start [2025-01-14 17:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247777', 'tblTempUsageDetail_20' ) end [2025-01-14 17:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:21:29] Production.INFO: ==15072== Releasing lock... [2025-01-14 17:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:21:29] Production.INFO: 76.5 MB #Memory Used# [2025-01-14 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:22:05 [end_date_ymd] => 2025-01-14 17:22:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:22:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:22:19] Production.INFO: count ==6446 [2025-01-14 17:22:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:22:05 - End Time 2025-01-14 17:22:05 [2025-01-14 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247782', 'tblTempUsageDetail_20' ) start [2025-01-14 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247782', 'tblTempUsageDetail_20' ) end [2025-01-14 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247782', 'tblTempVendorCDR_20' ) start [2025-01-14 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247782', 'tblTempVendorCDR_20' ) end [2025-01-14 17:22:22] Production.INFO: ProcessCDR(1,14247782,1,1,2) [2025-01-14 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247782', 'tblTempUsageDetail_20' ) start [2025-01-14 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247782', 'tblTempUsageDetail_20' ) end [2025-01-14 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:22:25] Production.INFO: ==15143== Releasing lock... [2025-01-14 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:22:25] Production.INFO: 76.25 MB #Memory Used# [2025-01-14 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:23:05 [end_date_ymd] => 2025-01-14 17:23:05 [RateCDR] => 1 ) [2025-01-14 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:23:05' and `end` < '2025-01-14 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:23:19] Production.INFO: count ==6423 [2025-01-14 17:23:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:23:05 - End Time 2025-01-14 17:23:05 [2025-01-14 17:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247787', 'tblTempUsageDetail_20' ) start [2025-01-14 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247787', 'tblTempUsageDetail_20' ) end [2025-01-14 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247787', 'tblTempVendorCDR_20' ) start [2025-01-14 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247787', 'tblTempVendorCDR_20' ) end [2025-01-14 17:23:22] Production.INFO: ProcessCDR(1,14247787,1,1,2) [2025-01-14 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247787', 'tblTempUsageDetail_20' ) start [2025-01-14 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247787', 'tblTempUsageDetail_20' ) end [2025-01-14 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:23:27] Production.INFO: ==15214== Releasing lock... [2025-01-14 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:23:27] Production.INFO: 76 MB #Memory Used# [2025-01-14 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:24:05 [end_date_ymd] => 2025-01-14 17:24:05 [RateCDR] => 1 ) [2025-01-14 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:24:05' and `end` < '2025-01-14 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:24:21] Production.INFO: count ==6397 [2025-01-14 17:24:24] Production.ERROR: pbx CDR StartTime 2025-01-14 14:24:05 - End Time 2025-01-14 17:24:05 [2025-01-14 17:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247792', 'tblTempUsageDetail_20' ) start [2025-01-14 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247792', 'tblTempUsageDetail_20' ) end [2025-01-14 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247792', 'tblTempVendorCDR_20' ) start [2025-01-14 17:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247792', 'tblTempVendorCDR_20' ) end [2025-01-14 17:24:24] Production.INFO: ProcessCDR(1,14247792,1,1,2) [2025-01-14 17:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247792', 'tblTempUsageDetail_20' ) start [2025-01-14 17:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247792', 'tblTempUsageDetail_20' ) end [2025-01-14 17:24:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:24:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:24:30] Production.INFO: ==15285== Releasing lock... [2025-01-14 17:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:24:30] Production.INFO: 75.75 MB #Memory Used# [2025-01-14 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:25:05 [end_date_ymd] => 2025-01-14 17:25:05 [RateCDR] => 1 ) [2025-01-14 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:25:05' and `end` < '2025-01-14 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:25:20] Production.INFO: count ==6389 [2025-01-14 17:25:23] Production.ERROR: pbx CDR StartTime 2025-01-14 14:25:05 - End Time 2025-01-14 17:25:05 [2025-01-14 17:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247797', 'tblTempUsageDetail_20' ) start [2025-01-14 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247797', 'tblTempUsageDetail_20' ) end [2025-01-14 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247797', 'tblTempVendorCDR_20' ) start [2025-01-14 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247797', 'tblTempVendorCDR_20' ) end [2025-01-14 17:25:23] Production.INFO: ProcessCDR(1,14247797,1,1,2) [2025-01-14 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247797', 'tblTempUsageDetail_20' ) start [2025-01-14 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247797', 'tblTempUsageDetail_20' ) end [2025-01-14 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:25:26] Production.INFO: ==15359== Releasing lock... [2025-01-14 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:25:26] Production.INFO: 75.75 MB #Memory Used# [2025-01-14 17:26:19] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:26:19 [end_date_ymd] => 2025-01-14 17:26:19 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:26:19' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:26:33] Production.INFO: count ==6394 [2025-01-14 17:27:36] Production.ERROR: pbx CDR StartTime 2025-01-14 14:26:19 - End Time 2025-01-14 17:26:19 [2025-01-14 17:27:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247802', 'tblTempUsageDetail_20' ) start [2025-01-14 17:27:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247802', 'tblTempUsageDetail_20' ) end [2025-01-14 17:27:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247802', 'tblTempVendorCDR_20' ) start [2025-01-14 17:27:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247802', 'tblTempVendorCDR_20' ) end [2025-01-14 17:27:40] Production.INFO: ProcessCDR(1,14247802,1,1,2) [2025-01-14 17:27:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:27:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:27:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247802', 'tblTempUsageDetail_20' ) start [2025-01-14 17:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247802', 'tblTempUsageDetail_20' ) end [2025-01-14 17:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:28:28] Production.INFO: ==15430== Releasing lock... [2025-01-14 17:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:28:28] Production.INFO: 75.75 MB #Memory Used# [2025-01-14 17:29:15] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:29:15 [end_date_ymd] => 2025-01-14 17:29:15 [RateCDR] => 1 ) [2025-01-14 17:29:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:29:15' and `end` < '2025-01-14 17:29:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:29:29] Production.INFO: count ==6278 [2025-01-14 17:30:25] Production.ERROR: pbx CDR StartTime 2025-01-14 14:29:15 - End Time 2025-01-14 17:29:15 [2025-01-14 17:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247813', 'tblTempUsageDetail_20' ) start [2025-01-14 17:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247813', 'tblTempUsageDetail_20' ) end [2025-01-14 17:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247813', 'tblTempVendorCDR_20' ) start [2025-01-14 17:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247813', 'tblTempVendorCDR_20' ) end [2025-01-14 17:30:30] Production.INFO: ProcessCDR(1,14247813,1,1,2) [2025-01-14 17:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:30:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:30:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247813', 'tblTempUsageDetail_20' ) start [2025-01-14 17:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247813', 'tblTempUsageDetail_20' ) end [2025-01-14 17:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:31:34] Production.INFO: ==15628== Releasing lock... [2025-01-14 17:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:31:34] Production.INFO: 75 MB #Memory Used# [2025-01-14 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:32:05 [end_date_ymd] => 2025-01-14 17:32:05 [RateCDR] => 1 ) [2025-01-14 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:32:05' and `end` < '2025-01-14 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:32:26] Production.INFO: count ==6138 [2025-01-14 17:32:29] Production.ERROR: pbx CDR StartTime 2025-01-14 14:32:05 - End Time 2025-01-14 17:32:05 [2025-01-14 17:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247825', 'tblTempUsageDetail_20' ) start [2025-01-14 17:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247825', 'tblTempUsageDetail_20' ) end [2025-01-14 17:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247825', 'tblTempVendorCDR_20' ) start [2025-01-14 17:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247825', 'tblTempVendorCDR_20' ) end [2025-01-14 17:32:29] Production.INFO: ProcessCDR(1,14247825,1,1,2) [2025-01-14 17:32:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247825', 'tblTempUsageDetail_20' ) start [2025-01-14 17:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247825', 'tblTempUsageDetail_20' ) end [2025-01-14 17:32:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:32:35] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:32:35] Production.INFO: ==15840== Releasing lock... [2025-01-14 17:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:32:35] Production.INFO: 74 MB #Memory Used# [2025-01-14 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:33:05 [end_date_ymd] => 2025-01-14 17:33:05 [RateCDR] => 1 ) [2025-01-14 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:33:05' and `end` < '2025-01-14 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:33:21] Production.INFO: count ==6151 [2025-01-14 17:33:24] Production.ERROR: pbx CDR StartTime 2025-01-14 14:33:05 - End Time 2025-01-14 17:33:05 [2025-01-14 17:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247830', 'tblTempUsageDetail_20' ) start [2025-01-14 17:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247830', 'tblTempUsageDetail_20' ) end [2025-01-14 17:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247830', 'tblTempVendorCDR_20' ) start [2025-01-14 17:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247830', 'tblTempVendorCDR_20' ) end [2025-01-14 17:33:24] Production.INFO: ProcessCDR(1,14247830,1,1,2) [2025-01-14 17:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247830', 'tblTempUsageDetail_20' ) start [2025-01-14 17:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247830', 'tblTempUsageDetail_20' ) end [2025-01-14 17:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:33:29] Production.INFO: ==15931== Releasing lock... [2025-01-14 17:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:33:29] Production.INFO: 74 MB #Memory Used# [2025-01-14 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:34:06 [end_date_ymd] => 2025-01-14 17:34:06 [RateCDR] => 1 ) [2025-01-14 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:34:06' and `end` < '2025-01-14 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:34:19] Production.INFO: count ==6116 [2025-01-14 17:34:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:34:06 - End Time 2025-01-14 17:34:06 [2025-01-14 17:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247835', 'tblTempUsageDetail_20' ) start [2025-01-14 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247835', 'tblTempUsageDetail_20' ) end [2025-01-14 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247835', 'tblTempVendorCDR_20' ) start [2025-01-14 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247835', 'tblTempVendorCDR_20' ) end [2025-01-14 17:34:22] Production.INFO: ProcessCDR(1,14247835,1,1,2) [2025-01-14 17:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247835', 'tblTempUsageDetail_20' ) start [2025-01-14 17:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247835', 'tblTempUsageDetail_20' ) end [2025-01-14 17:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:34:28] Production.INFO: ==16025== Releasing lock... [2025-01-14 17:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:34:28] Production.INFO: 73.75 MB #Memory Used# [2025-01-14 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:35:05 [end_date_ymd] => 2025-01-14 17:35:05 [RateCDR] => 1 ) [2025-01-14 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:35:05' and `end` < '2025-01-14 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:35:18] Production.INFO: count ==6066 [2025-01-14 17:35:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:35:05 - End Time 2025-01-14 17:35:05 [2025-01-14 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247840', 'tblTempUsageDetail_20' ) start [2025-01-14 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247840', 'tblTempUsageDetail_20' ) end [2025-01-14 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247840', 'tblTempVendorCDR_20' ) start [2025-01-14 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247840', 'tblTempVendorCDR_20' ) end [2025-01-14 17:35:21] Production.INFO: ProcessCDR(1,14247840,1,1,2) [2025-01-14 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247840', 'tblTempUsageDetail_20' ) start [2025-01-14 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247840', 'tblTempUsageDetail_20' ) end [2025-01-14 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:35:26] Production.INFO: ==16162== Releasing lock... [2025-01-14 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:35:26] Production.INFO: 73.5 MB #Memory Used# [2025-01-14 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:36:06 [end_date_ymd] => 2025-01-14 17:36:06 [RateCDR] => 1 ) [2025-01-14 17:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:36:06' and `end` < '2025-01-14 17:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:36:19] Production.INFO: count ==6037 [2025-01-14 17:36:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:36:06 - End Time 2025-01-14 17:36:06 [2025-01-14 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247845', 'tblTempUsageDetail_20' ) start [2025-01-14 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247845', 'tblTempUsageDetail_20' ) end [2025-01-14 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247845', 'tblTempVendorCDR_20' ) start [2025-01-14 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247845', 'tblTempVendorCDR_20' ) end [2025-01-14 17:36:22] Production.INFO: ProcessCDR(1,14247845,1,1,2) [2025-01-14 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247845', 'tblTempUsageDetail_20' ) start [2025-01-14 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247845', 'tblTempUsageDetail_20' ) end [2025-01-14 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:36:26] Production.INFO: ==16256== Releasing lock... [2025-01-14 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:36:26] Production.INFO: 73.25 MB #Memory Used# [2025-01-14 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:37:05 [end_date_ymd] => 2025-01-14 17:37:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:37:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:37:18] Production.INFO: count ==5959 [2025-01-14 17:37:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:37:05 - End Time 2025-01-14 17:37:05 [2025-01-14 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247850', 'tblTempUsageDetail_20' ) start [2025-01-14 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247850', 'tblTempUsageDetail_20' ) end [2025-01-14 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247850', 'tblTempVendorCDR_20' ) start [2025-01-14 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247850', 'tblTempVendorCDR_20' ) end [2025-01-14 17:37:21] Production.INFO: ProcessCDR(1,14247850,1,1,2) [2025-01-14 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247850', 'tblTempUsageDetail_20' ) start [2025-01-14 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247850', 'tblTempUsageDetail_20' ) end [2025-01-14 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:37:26] Production.INFO: ==16346== Releasing lock... [2025-01-14 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:37:26] Production.INFO: 72.5 MB #Memory Used# [2025-01-14 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:38:05 [end_date_ymd] => 2025-01-14 17:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:38:18] Production.INFO: count ==5920 [2025-01-14 17:38:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:38:05 - End Time 2025-01-14 17:38:05 [2025-01-14 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247855', 'tblTempUsageDetail_20' ) start [2025-01-14 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247855', 'tblTempUsageDetail_20' ) end [2025-01-14 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247855', 'tblTempVendorCDR_20' ) start [2025-01-14 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247855', 'tblTempVendorCDR_20' ) end [2025-01-14 17:38:21] Production.INFO: ProcessCDR(1,14247855,1,1,2) [2025-01-14 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247855', 'tblTempUsageDetail_20' ) start [2025-01-14 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247855', 'tblTempUsageDetail_20' ) end [2025-01-14 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:38:26] Production.INFO: ==16437== Releasing lock... [2025-01-14 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:38:26] Production.INFO: 72.25 MB #Memory Used# [2025-01-14 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:39:05 [end_date_ymd] => 2025-01-14 17:39:05 [RateCDR] => 1 ) [2025-01-14 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:39:05' and `end` < '2025-01-14 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:39:19] Production.INFO: count ==5904 [2025-01-14 17:39:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:39:05 - End Time 2025-01-14 17:39:05 [2025-01-14 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247860', 'tblTempUsageDetail_20' ) start [2025-01-14 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247860', 'tblTempUsageDetail_20' ) end [2025-01-14 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247860', 'tblTempVendorCDR_20' ) start [2025-01-14 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247860', 'tblTempVendorCDR_20' ) end [2025-01-14 17:39:22] Production.INFO: ProcessCDR(1,14247860,1,1,2) [2025-01-14 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247860', 'tblTempUsageDetail_20' ) start [2025-01-14 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247860', 'tblTempUsageDetail_20' ) end [2025-01-14 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:39:27] Production.INFO: ==16528== Releasing lock... [2025-01-14 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:39:27] Production.INFO: 72.25 MB #Memory Used# [2025-01-14 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:40:06 [end_date_ymd] => 2025-01-14 17:40:06 [RateCDR] => 1 ) [2025-01-14 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:40:06' and `end` < '2025-01-14 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:40:25] Production.INFO: count ==5859 [2025-01-14 17:40:28] Production.ERROR: pbx CDR StartTime 2025-01-14 14:40:06 - End Time 2025-01-14 17:40:06 [2025-01-14 17:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247865', 'tblTempUsageDetail_20' ) start [2025-01-14 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247865', 'tblTempUsageDetail_20' ) end [2025-01-14 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247865', 'tblTempVendorCDR_20' ) start [2025-01-14 17:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247865', 'tblTempVendorCDR_20' ) end [2025-01-14 17:40:28] Production.INFO: ProcessCDR(1,14247865,1,1,2) [2025-01-14 17:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247865', 'tblTempUsageDetail_20' ) start [2025-01-14 17:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247865', 'tblTempUsageDetail_20' ) end [2025-01-14 17:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:40:33] Production.INFO: ==16627== Releasing lock... [2025-01-14 17:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:40:33] Production.INFO: 71.75 MB #Memory Used# [2025-01-14 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:41:05 [end_date_ymd] => 2025-01-14 17:41:05 [RateCDR] => 1 ) [2025-01-14 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:41:05' and `end` < '2025-01-14 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:41:18] Production.INFO: count ==5772 [2025-01-14 17:41:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:41:05 - End Time 2025-01-14 17:41:05 [2025-01-14 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247871', 'tblTempUsageDetail_20' ) start [2025-01-14 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247871', 'tblTempUsageDetail_20' ) end [2025-01-14 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247871', 'tblTempVendorCDR_20' ) start [2025-01-14 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247871', 'tblTempVendorCDR_20' ) end [2025-01-14 17:41:21] Production.INFO: ProcessCDR(1,14247871,1,1,2) [2025-01-14 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247871', 'tblTempUsageDetail_20' ) start [2025-01-14 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247871', 'tblTempUsageDetail_20' ) end [2025-01-14 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:41:26] Production.INFO: ==16724== Releasing lock... [2025-01-14 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:41:26] Production.INFO: 71.25 MB #Memory Used# [2025-01-14 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:42:05 [end_date_ymd] => 2025-01-14 17:42:05 [RateCDR] => 1 ) [2025-01-14 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:42:05' and `end` < '2025-01-14 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:42:20] Production.INFO: count ==5738 [2025-01-14 17:42:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:42:05 - End Time 2025-01-14 17:42:05 [2025-01-14 17:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247876', 'tblTempUsageDetail_20' ) start [2025-01-14 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247876', 'tblTempUsageDetail_20' ) end [2025-01-14 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247876', 'tblTempVendorCDR_20' ) start [2025-01-14 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247876', 'tblTempVendorCDR_20' ) end [2025-01-14 17:42:22] Production.INFO: ProcessCDR(1,14247876,1,1,2) [2025-01-14 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247876', 'tblTempUsageDetail_20' ) start [2025-01-14 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247876', 'tblTempUsageDetail_20' ) end [2025-01-14 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:42:28] Production.INFO: ==16816== Releasing lock... [2025-01-14 17:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:42:28] Production.INFO: 71 MB #Memory Used# [2025-01-14 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:43:06 [end_date_ymd] => 2025-01-14 17:43:06 [RateCDR] => 1 ) [2025-01-14 17:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:43:06' and `end` < '2025-01-14 17:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:43:22] Production.INFO: count ==5680 [2025-01-14 17:43:24] Production.ERROR: pbx CDR StartTime 2025-01-14 14:43:06 - End Time 2025-01-14 17:43:06 [2025-01-14 17:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247881', 'tblTempUsageDetail_20' ) start [2025-01-14 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247881', 'tblTempUsageDetail_20' ) end [2025-01-14 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247881', 'tblTempVendorCDR_20' ) start [2025-01-14 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247881', 'tblTempVendorCDR_20' ) end [2025-01-14 17:43:24] Production.INFO: ProcessCDR(1,14247881,1,1,2) [2025-01-14 17:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247881', 'tblTempUsageDetail_20' ) start [2025-01-14 17:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247881', 'tblTempUsageDetail_20' ) end [2025-01-14 17:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:43:30] Production.INFO: ==16909== Releasing lock... [2025-01-14 17:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:43:30] Production.INFO: 70.5 MB #Memory Used# [2025-01-14 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:44:05 [end_date_ymd] => 2025-01-14 17:44:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:44:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:44:19] Production.INFO: count ==5629 [2025-01-14 17:44:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:44:05 - End Time 2025-01-14 17:44:05 [2025-01-14 17:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247886', 'tblTempUsageDetail_20' ) start [2025-01-14 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247886', 'tblTempUsageDetail_20' ) end [2025-01-14 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247886', 'tblTempVendorCDR_20' ) start [2025-01-14 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247886', 'tblTempVendorCDR_20' ) end [2025-01-14 17:44:22] Production.INFO: ProcessCDR(1,14247886,1,1,2) [2025-01-14 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247886', 'tblTempUsageDetail_20' ) start [2025-01-14 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247886', 'tblTempUsageDetail_20' ) end [2025-01-14 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:44:25] Production.INFO: ==17003== Releasing lock... [2025-01-14 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:44:25] Production.INFO: 70.25 MB #Memory Used# [2025-01-14 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:45:05 [end_date_ymd] => 2025-01-14 17:45:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:45:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:45:21] Production.INFO: count ==5601 [2025-01-14 17:45:23] Production.ERROR: pbx CDR StartTime 2025-01-14 14:45:05 - End Time 2025-01-14 17:45:05 [2025-01-14 17:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247891', 'tblTempUsageDetail_20' ) start [2025-01-14 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247891', 'tblTempUsageDetail_20' ) end [2025-01-14 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247891', 'tblTempVendorCDR_20' ) start [2025-01-14 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247891', 'tblTempVendorCDR_20' ) end [2025-01-14 17:45:23] Production.INFO: ProcessCDR(1,14247891,1,1,2) [2025-01-14 17:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247891', 'tblTempUsageDetail_20' ) start [2025-01-14 17:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247891', 'tblTempUsageDetail_20' ) end [2025-01-14 17:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:45:28] Production.INFO: ==17096== Releasing lock... [2025-01-14 17:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:45:28] Production.INFO: 70 MB #Memory Used# [2025-01-14 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:46:05 [end_date_ymd] => 2025-01-14 17:46:05 [RateCDR] => 1 ) [2025-01-14 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:46:05' and `end` < '2025-01-14 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:46:18] Production.INFO: count ==5582 [2025-01-14 17:46:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:46:05 - End Time 2025-01-14 17:46:05 [2025-01-14 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247896', 'tblTempUsageDetail_20' ) start [2025-01-14 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247896', 'tblTempUsageDetail_20' ) end [2025-01-14 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247896', 'tblTempVendorCDR_20' ) start [2025-01-14 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247896', 'tblTempVendorCDR_20' ) end [2025-01-14 17:46:21] Production.INFO: ProcessCDR(1,14247896,1,1,2) [2025-01-14 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247896', 'tblTempUsageDetail_20' ) start [2025-01-14 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247896', 'tblTempUsageDetail_20' ) end [2025-01-14 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:46:25] Production.INFO: ==17180== Releasing lock... [2025-01-14 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:46:25] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:47:06 [end_date_ymd] => 2025-01-14 17:47:06 [RateCDR] => 1 ) [2025-01-14 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:47:06' and `end` < '2025-01-14 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:47:21] Production.INFO: count ==5582 [2025-01-14 17:47:23] Production.ERROR: pbx CDR StartTime 2025-01-14 14:47:06 - End Time 2025-01-14 17:47:06 [2025-01-14 17:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247901', 'tblTempUsageDetail_20' ) start [2025-01-14 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247901', 'tblTempUsageDetail_20' ) end [2025-01-14 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247901', 'tblTempVendorCDR_20' ) start [2025-01-14 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247901', 'tblTempVendorCDR_20' ) end [2025-01-14 17:47:23] Production.INFO: ProcessCDR(1,14247901,1,1,2) [2025-01-14 17:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247901', 'tblTempUsageDetail_20' ) start [2025-01-14 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247901', 'tblTempUsageDetail_20' ) end [2025-01-14 17:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:47:27] Production.INFO: ==17278== Releasing lock... [2025-01-14 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:47:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 17:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:48:04 [end_date_ymd] => 2025-01-14 17:48:04 [RateCDR] => 1 ) [2025-01-14 17:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:48:04' and `end` < '2025-01-14 17:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:48:18] Production.INFO: count ==5583 [2025-01-14 17:48:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:48:04 - End Time 2025-01-14 17:48:04 [2025-01-14 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247906', 'tblTempUsageDetail_20' ) start [2025-01-14 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247906', 'tblTempUsageDetail_20' ) end [2025-01-14 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247906', 'tblTempVendorCDR_20' ) start [2025-01-14 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247906', 'tblTempVendorCDR_20' ) end [2025-01-14 17:48:21] Production.INFO: ProcessCDR(1,14247906,1,1,2) [2025-01-14 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247906', 'tblTempUsageDetail_20' ) start [2025-01-14 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247906', 'tblTempUsageDetail_20' ) end [2025-01-14 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:48:26] Production.INFO: ==17370== Releasing lock... [2025-01-14 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:48:26] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:49:05 [end_date_ymd] => 2025-01-14 17:49:05 [RateCDR] => 1 ) [2025-01-14 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:49:05' and `end` < '2025-01-14 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:49:20] Production.INFO: count ==5586 [2025-01-14 17:49:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:49:05 - End Time 2025-01-14 17:49:05 [2025-01-14 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247911', 'tblTempUsageDetail_20' ) start [2025-01-14 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247911', 'tblTempUsageDetail_20' ) end [2025-01-14 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247911', 'tblTempVendorCDR_20' ) start [2025-01-14 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247911', 'tblTempVendorCDR_20' ) end [2025-01-14 17:49:22] Production.INFO: ProcessCDR(1,14247911,1,1,2) [2025-01-14 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247911', 'tblTempUsageDetail_20' ) start [2025-01-14 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247911', 'tblTempUsageDetail_20' ) end [2025-01-14 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:49:27] Production.INFO: ==17456== Releasing lock... [2025-01-14 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:49:27] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:50:06 [end_date_ymd] => 2025-01-14 17:50:06 [RateCDR] => 1 ) [2025-01-14 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:50:06' and `end` < '2025-01-14 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:50:26] Production.INFO: count ==5569 [2025-01-14 17:50:28] Production.ERROR: pbx CDR StartTime 2025-01-14 14:50:06 - End Time 2025-01-14 17:50:06 [2025-01-14 17:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247917', 'tblTempUsageDetail_20' ) start [2025-01-14 17:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247917', 'tblTempUsageDetail_20' ) end [2025-01-14 17:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247917', 'tblTempVendorCDR_20' ) start [2025-01-14 17:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247917', 'tblTempVendorCDR_20' ) end [2025-01-14 17:50:28] Production.INFO: ProcessCDR(1,14247917,1,1,2) [2025-01-14 17:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247917', 'tblTempUsageDetail_20' ) start [2025-01-14 17:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247917', 'tblTempUsageDetail_20' ) end [2025-01-14 17:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:50:33] Production.INFO: ==17537== Releasing lock... [2025-01-14 17:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:50:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-14 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:51:05 [end_date_ymd] => 2025-01-14 17:51:05 [RateCDR] => 1 ) [2025-01-14 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:51:05' and `end` < '2025-01-14 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:51:23] Production.INFO: count ==5548 [2025-01-14 17:51:26] Production.ERROR: pbx CDR StartTime 2025-01-14 14:51:05 - End Time 2025-01-14 17:51:05 [2025-01-14 17:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247922', 'tblTempUsageDetail_20' ) start [2025-01-14 17:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247922', 'tblTempUsageDetail_20' ) end [2025-01-14 17:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247922', 'tblTempVendorCDR_20' ) start [2025-01-14 17:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247922', 'tblTempVendorCDR_20' ) end [2025-01-14 17:51:26] Production.INFO: ProcessCDR(1,14247922,1,1,2) [2025-01-14 17:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247922', 'tblTempUsageDetail_20' ) start [2025-01-14 17:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247922', 'tblTempUsageDetail_20' ) end [2025-01-14 17:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:51:29] Production.INFO: ==17662== Releasing lock... [2025-01-14 17:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:51:29] Production.INFO: 69.5 MB #Memory Used# [2025-01-14 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:52:05 [end_date_ymd] => 2025-01-14 17:52:05 [RateCDR] => 1 ) [2025-01-14 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:52:05' and `end` < '2025-01-14 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:52:18] Production.INFO: count ==5523 [2025-01-14 17:52:20] Production.ERROR: pbx CDR StartTime 2025-01-14 14:52:05 - End Time 2025-01-14 17:52:05 [2025-01-14 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247927', 'tblTempUsageDetail_20' ) start [2025-01-14 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247927', 'tblTempUsageDetail_20' ) end [2025-01-14 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247927', 'tblTempVendorCDR_20' ) start [2025-01-14 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247927', 'tblTempVendorCDR_20' ) end [2025-01-14 17:52:20] Production.INFO: ProcessCDR(1,14247927,1,1,2) [2025-01-14 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247927', 'tblTempUsageDetail_20' ) start [2025-01-14 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247927', 'tblTempUsageDetail_20' ) end [2025-01-14 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:52:24] Production.INFO: ==17737== Releasing lock... [2025-01-14 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:52:24] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:53:05 [end_date_ymd] => 2025-01-14 17:53:05 [RateCDR] => 1 ) [2025-01-14 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:53:05' and `end` < '2025-01-14 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:53:19] Production.INFO: count ==5502 [2025-01-14 17:53:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:53:05 - End Time 2025-01-14 17:53:05 [2025-01-14 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247932', 'tblTempUsageDetail_20' ) start [2025-01-14 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247932', 'tblTempUsageDetail_20' ) end [2025-01-14 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247932', 'tblTempVendorCDR_20' ) start [2025-01-14 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247932', 'tblTempVendorCDR_20' ) end [2025-01-14 17:53:21] Production.INFO: ProcessCDR(1,14247932,1,1,2) [2025-01-14 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247932', 'tblTempUsageDetail_20' ) start [2025-01-14 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247932', 'tblTempUsageDetail_20' ) end [2025-01-14 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:53:26] Production.INFO: ==17809== Releasing lock... [2025-01-14 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:53:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-14 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:54:05 [end_date_ymd] => 2025-01-14 17:54:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 14:54:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 17:54:19] Production.INFO: count ==5490 [2025-01-14 17:54:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:54:05 - End Time 2025-01-14 17:54:05 [2025-01-14 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247937', 'tblTempUsageDetail_20' ) start [2025-01-14 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247937', 'tblTempUsageDetail_20' ) end [2025-01-14 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247937', 'tblTempVendorCDR_20' ) start [2025-01-14 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247937', 'tblTempVendorCDR_20' ) end [2025-01-14 17:54:21] Production.INFO: ProcessCDR(1,14247937,1,1,2) [2025-01-14 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247937', 'tblTempUsageDetail_20' ) start [2025-01-14 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247937', 'tblTempUsageDetail_20' ) end [2025-01-14 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:54:26] Production.INFO: ==17881== Releasing lock... [2025-01-14 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:54:26] Production.INFO: 69 MB #Memory Used# [2025-01-14 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:55:05 [end_date_ymd] => 2025-01-14 17:55:05 [RateCDR] => 1 ) [2025-01-14 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:55:05' and `end` < '2025-01-14 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:55:19] Production.INFO: count ==5493 [2025-01-14 17:55:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:55:05 - End Time 2025-01-14 17:55:05 [2025-01-14 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247942', 'tblTempUsageDetail_20' ) start [2025-01-14 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247942', 'tblTempUsageDetail_20' ) end [2025-01-14 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247942', 'tblTempVendorCDR_20' ) start [2025-01-14 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247942', 'tblTempVendorCDR_20' ) end [2025-01-14 17:55:21] Production.INFO: ProcessCDR(1,14247942,1,1,2) [2025-01-14 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247942', 'tblTempUsageDetail_20' ) start [2025-01-14 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247942', 'tblTempUsageDetail_20' ) end [2025-01-14 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:55:26] Production.INFO: ==17954== Releasing lock... [2025-01-14 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:55:26] Production.INFO: 69 MB #Memory Used# [2025-01-14 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:56:05 [end_date_ymd] => 2025-01-14 17:56:05 [RateCDR] => 1 ) [2025-01-14 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:56:05' and `end` < '2025-01-14 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:56:19] Production.INFO: count ==5478 [2025-01-14 17:56:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:56:05 - End Time 2025-01-14 17:56:05 [2025-01-14 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247947', 'tblTempUsageDetail_20' ) start [2025-01-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247947', 'tblTempUsageDetail_20' ) end [2025-01-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247947', 'tblTempVendorCDR_20' ) start [2025-01-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247947', 'tblTempVendorCDR_20' ) end [2025-01-14 17:56:21] Production.INFO: ProcessCDR(1,14247947,1,1,2) [2025-01-14 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247947', 'tblTempUsageDetail_20' ) start [2025-01-14 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247947', 'tblTempUsageDetail_20' ) end [2025-01-14 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:56:26] Production.INFO: ==18026== Releasing lock... [2025-01-14 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:56:26] Production.INFO: 69 MB #Memory Used# [2025-01-14 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:57:05 [end_date_ymd] => 2025-01-14 17:57:05 [RateCDR] => 1 ) [2025-01-14 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:57:05' and `end` < '2025-01-14 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:57:20] Production.INFO: count ==5465 [2025-01-14 17:57:22] Production.ERROR: pbx CDR StartTime 2025-01-14 14:57:05 - End Time 2025-01-14 17:57:05 [2025-01-14 17:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247952', 'tblTempUsageDetail_20' ) start [2025-01-14 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247952', 'tblTempUsageDetail_20' ) end [2025-01-14 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247952', 'tblTempVendorCDR_20' ) start [2025-01-14 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247952', 'tblTempVendorCDR_20' ) end [2025-01-14 17:57:22] Production.INFO: ProcessCDR(1,14247952,1,1,2) [2025-01-14 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247952', 'tblTempUsageDetail_20' ) start [2025-01-14 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247952', 'tblTempUsageDetail_20' ) end [2025-01-14 17:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:57:27] Production.INFO: ==18102== Releasing lock... [2025-01-14 17:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:57:27] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:58:05 [end_date_ymd] => 2025-01-14 17:58:05 [RateCDR] => 1 ) [2025-01-14 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:58:05' and `end` < '2025-01-14 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:58:19] Production.INFO: count ==5471 [2025-01-14 17:58:21] Production.ERROR: pbx CDR StartTime 2025-01-14 14:58:05 - End Time 2025-01-14 17:58:05 [2025-01-14 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247957', 'tblTempUsageDetail_20' ) start [2025-01-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247957', 'tblTempUsageDetail_20' ) end [2025-01-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247957', 'tblTempVendorCDR_20' ) start [2025-01-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247957', 'tblTempVendorCDR_20' ) end [2025-01-14 17:58:21] Production.INFO: ProcessCDR(1,14247957,1,1,2) [2025-01-14 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247957', 'tblTempUsageDetail_20' ) start [2025-01-14 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247957', 'tblTempUsageDetail_20' ) end [2025-01-14 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:58:26] Production.INFO: ==18174== Releasing lock... [2025-01-14 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:58:26] Production.INFO: 69 MB #Memory Used# [2025-01-14 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 14:59:05 [end_date_ymd] => 2025-01-14 17:59:05 [RateCDR] => 1 ) [2025-01-14 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 14:59:05' and `end` < '2025-01-14 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 17:59:21] Production.INFO: count ==5471 [2025-01-14 17:59:23] Production.ERROR: pbx CDR StartTime 2025-01-14 14:59:05 - End Time 2025-01-14 17:59:05 [2025-01-14 17:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247962', 'tblTempUsageDetail_20' ) start [2025-01-14 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247962', 'tblTempUsageDetail_20' ) end [2025-01-14 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247962', 'tblTempVendorCDR_20' ) start [2025-01-14 17:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247962', 'tblTempVendorCDR_20' ) end [2025-01-14 17:59:23] Production.INFO: ProcessCDR(1,14247962,1,1,2) [2025-01-14 17:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 17:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 17:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247962', 'tblTempUsageDetail_20' ) start [2025-01-14 17:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247962', 'tblTempUsageDetail_20' ) end [2025-01-14 17:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 17:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 17:59:28] Production.INFO: ==18246== Releasing lock... [2025-01-14 17:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 17:59:28] Production.INFO: 69 MB #Memory Used# [2025-01-14 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:00:06 [end_date_ymd] => 2025-01-14 18:00:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:00:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:00:21] Production.INFO: count ==5446 [2025-01-14 18:00:23] Production.ERROR: pbx CDR StartTime 2025-01-14 15:00:06 - End Time 2025-01-14 18:00:06 [2025-01-14 18:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247968', 'tblTempUsageDetail_20' ) start [2025-01-14 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247968', 'tblTempUsageDetail_20' ) end [2025-01-14 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247968', 'tblTempVendorCDR_20' ) start [2025-01-14 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247968', 'tblTempVendorCDR_20' ) end [2025-01-14 18:00:23] Production.INFO: ProcessCDR(1,14247968,1,1,2) [2025-01-14 18:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247968', 'tblTempUsageDetail_20' ) start [2025-01-14 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247968', 'tblTempUsageDetail_20' ) end [2025-01-14 18:00:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:00:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:00:28] Production.INFO: ==18321== Releasing lock... [2025-01-14 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:00:28] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:01:05 [end_date_ymd] => 2025-01-14 18:01:05 [RateCDR] => 1 ) [2025-01-14 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:01:05' and `end` < '2025-01-14 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:01:27] Production.INFO: count ==5451 [2025-01-14 18:01:29] Production.ERROR: pbx CDR StartTime 2025-01-14 15:01:05 - End Time 2025-01-14 18:01:05 [2025-01-14 18:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247973', 'tblTempUsageDetail_20' ) start [2025-01-14 18:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247973', 'tblTempUsageDetail_20' ) end [2025-01-14 18:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247973', 'tblTempVendorCDR_20' ) start [2025-01-14 18:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247973', 'tblTempVendorCDR_20' ) end [2025-01-14 18:01:29] Production.INFO: ProcessCDR(1,14247973,1,1,2) [2025-01-14 18:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247973', 'tblTempUsageDetail_20' ) start [2025-01-14 18:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247973', 'tblTempUsageDetail_20' ) end [2025-01-14 18:01:34] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:01:34] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:01:34] Production.INFO: ==18405== Releasing lock... [2025-01-14 18:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:01:34] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:02:05 [end_date_ymd] => 2025-01-14 18:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:02:23] Production.INFO: count ==5469 [2025-01-14 18:02:25] Production.ERROR: pbx CDR StartTime 2025-01-14 15:02:05 - End Time 2025-01-14 18:02:05 [2025-01-14 18:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247978', 'tblTempUsageDetail_20' ) start [2025-01-14 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247978', 'tblTempUsageDetail_20' ) end [2025-01-14 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247978', 'tblTempVendorCDR_20' ) start [2025-01-14 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247978', 'tblTempVendorCDR_20' ) end [2025-01-14 18:02:25] Production.INFO: ProcessCDR(1,14247978,1,1,2) [2025-01-14 18:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247978', 'tblTempUsageDetail_20' ) start [2025-01-14 18:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247978', 'tblTempUsageDetail_20' ) end [2025-01-14 18:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:02:29] Production.INFO: ==18480== Releasing lock... [2025-01-14 18:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:02:29] Production.INFO: 69 MB #Memory Used# [2025-01-14 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:03:05 [end_date_ymd] => 2025-01-14 18:03:05 [RateCDR] => 1 ) [2025-01-14 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:03:05' and `end` < '2025-01-14 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:03:18] Production.INFO: count ==5455 [2025-01-14 18:03:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:03:05 - End Time 2025-01-14 18:03:05 [2025-01-14 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247983', 'tblTempUsageDetail_20' ) start [2025-01-14 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247983', 'tblTempUsageDetail_20' ) end [2025-01-14 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247983', 'tblTempVendorCDR_20' ) start [2025-01-14 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247983', 'tblTempVendorCDR_20' ) end [2025-01-14 18:03:21] Production.INFO: ProcessCDR(1,14247983,1,1,2) [2025-01-14 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247983', 'tblTempUsageDetail_20' ) start [2025-01-14 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247983', 'tblTempUsageDetail_20' ) end [2025-01-14 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:03:26] Production.INFO: ==18554== Releasing lock... [2025-01-14 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:03:26] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:04:06 [end_date_ymd] => 2025-01-14 18:04:06 [RateCDR] => 1 ) [2025-01-14 18:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:04:06' and `end` < '2025-01-14 18:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:04:22] Production.INFO: count ==5459 [2025-01-14 18:04:24] Production.ERROR: pbx CDR StartTime 2025-01-14 15:04:06 - End Time 2025-01-14 18:04:06 [2025-01-14 18:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247988', 'tblTempUsageDetail_20' ) start [2025-01-14 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247988', 'tblTempUsageDetail_20' ) end [2025-01-14 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247988', 'tblTempVendorCDR_20' ) start [2025-01-14 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247988', 'tblTempVendorCDR_20' ) end [2025-01-14 18:04:24] Production.INFO: ProcessCDR(1,14247988,1,1,2) [2025-01-14 18:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247988', 'tblTempUsageDetail_20' ) start [2025-01-14 18:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247988', 'tblTempUsageDetail_20' ) end [2025-01-14 18:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:04:30] Production.INFO: ==18626== Releasing lock... [2025-01-14 18:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:04:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:05:05 [end_date_ymd] => 2025-01-14 18:05:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:05:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:05:25] Production.INFO: count ==5454 [2025-01-14 18:05:27] Production.ERROR: pbx CDR StartTime 2025-01-14 15:05:05 - End Time 2025-01-14 18:05:05 [2025-01-14 18:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247993', 'tblTempUsageDetail_20' ) start [2025-01-14 18:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247993', 'tblTempUsageDetail_20' ) end [2025-01-14 18:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247993', 'tblTempVendorCDR_20' ) start [2025-01-14 18:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247993', 'tblTempVendorCDR_20' ) end [2025-01-14 18:05:27] Production.INFO: ProcessCDR(1,14247993,1,1,2) [2025-01-14 18:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247993', 'tblTempUsageDetail_20' ) start [2025-01-14 18:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247993', 'tblTempUsageDetail_20' ) end [2025-01-14 18:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:05:32] Production.INFO: ==18698== Releasing lock... [2025-01-14 18:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:05:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:06:05 [end_date_ymd] => 2025-01-14 18:06:05 [RateCDR] => 1 ) [2025-01-14 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:06:05' and `end` < '2025-01-14 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:06:21] Production.INFO: count ==5459 [2025-01-14 18:06:23] Production.ERROR: pbx CDR StartTime 2025-01-14 15:06:05 - End Time 2025-01-14 18:06:05 [2025-01-14 18:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247998', 'tblTempUsageDetail_20' ) start [2025-01-14 18:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14247998', 'tblTempUsageDetail_20' ) end [2025-01-14 18:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247998', 'tblTempVendorCDR_20' ) start [2025-01-14 18:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14247998', 'tblTempVendorCDR_20' ) end [2025-01-14 18:06:24] Production.INFO: ProcessCDR(1,14247998,1,1,2) [2025-01-14 18:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14247998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14247998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14247998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14247998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247998', 'tblTempUsageDetail_20' ) start [2025-01-14 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14247998', 'tblTempUsageDetail_20' ) end [2025-01-14 18:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:06:29] Production.INFO: ==18809== Releasing lock... [2025-01-14 18:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:06:29] Production.INFO: 68.75 MB #Memory Used# [2025-01-14 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:07:04 [end_date_ymd] => 2025-01-14 18:07:04 [RateCDR] => 1 ) [2025-01-14 18:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:07:04' and `end` < '2025-01-14 18:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:07:18] Production.INFO: count ==5415 [2025-01-14 18:07:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:07:04 - End Time 2025-01-14 18:07:04 [2025-01-14 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248003', 'tblTempUsageDetail_20' ) start [2025-01-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248003', 'tblTempUsageDetail_20' ) end [2025-01-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248003', 'tblTempVendorCDR_20' ) start [2025-01-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248003', 'tblTempVendorCDR_20' ) end [2025-01-14 18:07:20] Production.INFO: ProcessCDR(1,14248003,1,1,2) [2025-01-14 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248003', 'tblTempUsageDetail_20' ) start [2025-01-14 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248003', 'tblTempUsageDetail_20' ) end [2025-01-14 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:07:25] Production.INFO: ==18882== Releasing lock... [2025-01-14 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:07:25] Production.INFO: 68.5 MB #Memory Used# [2025-01-14 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:08:05 [end_date_ymd] => 2025-01-14 18:08:05 [RateCDR] => 1 ) [2025-01-14 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:08:05' and `end` < '2025-01-14 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:08:19] Production.INFO: count ==5391 [2025-01-14 18:08:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:08:05 - End Time 2025-01-14 18:08:05 [2025-01-14 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248008', 'tblTempUsageDetail_20' ) start [2025-01-14 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248008', 'tblTempUsageDetail_20' ) end [2025-01-14 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248008', 'tblTempVendorCDR_20' ) start [2025-01-14 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248008', 'tblTempVendorCDR_20' ) end [2025-01-14 18:08:21] Production.INFO: ProcessCDR(1,14248008,1,1,2) [2025-01-14 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248008', 'tblTempUsageDetail_20' ) start [2025-01-14 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248008', 'tblTempUsageDetail_20' ) end [2025-01-14 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:08:26] Production.INFO: ==18955== Releasing lock... [2025-01-14 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:08:26] Production.INFO: 68.25 MB #Memory Used# [2025-01-14 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:09:04 [end_date_ymd] => 2025-01-14 18:09:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:09:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:09:18] Production.INFO: count ==5314 [2025-01-14 18:09:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:09:04 - End Time 2025-01-14 18:09:04 [2025-01-14 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248013', 'tblTempUsageDetail_20' ) start [2025-01-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248013', 'tblTempUsageDetail_20' ) end [2025-01-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248013', 'tblTempVendorCDR_20' ) start [2025-01-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248013', 'tblTempVendorCDR_20' ) end [2025-01-14 18:09:20] Production.INFO: ProcessCDR(1,14248013,1,1,2) [2025-01-14 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248013', 'tblTempUsageDetail_20' ) start [2025-01-14 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248013', 'tblTempUsageDetail_20' ) end [2025-01-14 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:09:25] Production.INFO: ==19025== Releasing lock... [2025-01-14 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:09:25] Production.INFO: 67.75 MB #Memory Used# [2025-01-14 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:10:06 [end_date_ymd] => 2025-01-14 18:10:06 [RateCDR] => 1 ) [2025-01-14 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:10:06' and `end` < '2025-01-14 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:10:21] Production.INFO: count ==5277 [2025-01-14 18:10:22] Production.ERROR: pbx CDR StartTime 2025-01-14 15:10:06 - End Time 2025-01-14 18:10:06 [2025-01-14 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248019', 'tblTempUsageDetail_20' ) start [2025-01-14 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248019', 'tblTempUsageDetail_20' ) end [2025-01-14 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248019', 'tblTempVendorCDR_20' ) start [2025-01-14 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248019', 'tblTempVendorCDR_20' ) end [2025-01-14 18:10:23] Production.INFO: ProcessCDR(1,14248019,1,1,2) [2025-01-14 18:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248019', 'tblTempUsageDetail_20' ) start [2025-01-14 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248019', 'tblTempUsageDetail_20' ) end [2025-01-14 18:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:10:27] Production.INFO: ==19100== Releasing lock... [2025-01-14 18:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:10:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-14 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:11:04 [end_date_ymd] => 2025-01-14 18:11:04 [RateCDR] => 1 ) [2025-01-14 18:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:11:04' and `end` < '2025-01-14 18:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:11:18] Production.INFO: count ==5164 [2025-01-14 18:11:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:11:04 - End Time 2025-01-14 18:11:04 [2025-01-14 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248024', 'tblTempUsageDetail_20' ) start [2025-01-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248024', 'tblTempUsageDetail_20' ) end [2025-01-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248024', 'tblTempVendorCDR_20' ) start [2025-01-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248024', 'tblTempVendorCDR_20' ) end [2025-01-14 18:11:20] Production.INFO: ProcessCDR(1,14248024,1,1,2) [2025-01-14 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248024', 'tblTempUsageDetail_20' ) start [2025-01-14 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248024', 'tblTempUsageDetail_20' ) end [2025-01-14 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:11:25] Production.INFO: ==19173== Releasing lock... [2025-01-14 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:11:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-14 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:12:05 [end_date_ymd] => 2025-01-14 18:12:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:12:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:12:19] Production.INFO: count ==5095 [2025-01-14 18:12:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:12:05 - End Time 2025-01-14 18:12:05 [2025-01-14 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248029', 'tblTempUsageDetail_20' ) start [2025-01-14 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248029', 'tblTempUsageDetail_20' ) end [2025-01-14 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248029', 'tblTempVendorCDR_20' ) start [2025-01-14 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248029', 'tblTempVendorCDR_20' ) end [2025-01-14 18:12:21] Production.INFO: ProcessCDR(1,14248029,1,1,2) [2025-01-14 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248029', 'tblTempUsageDetail_20' ) start [2025-01-14 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248029', 'tblTempUsageDetail_20' ) end [2025-01-14 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:12:24] Production.INFO: ==19245== Releasing lock... [2025-01-14 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:12:24] Production.INFO: 66 MB #Memory Used# [2025-01-14 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:13:05 [end_date_ymd] => 2025-01-14 18:13:05 [RateCDR] => 1 ) [2025-01-14 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:13:05' and `end` < '2025-01-14 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:13:22] Production.INFO: count ==5057 [2025-01-14 18:13:24] Production.ERROR: pbx CDR StartTime 2025-01-14 15:13:05 - End Time 2025-01-14 18:13:05 [2025-01-14 18:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248034', 'tblTempUsageDetail_20' ) start [2025-01-14 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248034', 'tblTempUsageDetail_20' ) end [2025-01-14 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248034', 'tblTempVendorCDR_20' ) start [2025-01-14 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248034', 'tblTempVendorCDR_20' ) end [2025-01-14 18:13:24] Production.INFO: ProcessCDR(1,14248034,1,1,2) [2025-01-14 18:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248034', 'tblTempUsageDetail_20' ) start [2025-01-14 18:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248034', 'tblTempUsageDetail_20' ) end [2025-01-14 18:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:13:30] Production.INFO: ==19316== Releasing lock... [2025-01-14 18:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:13:30] Production.INFO: 65.75 MB #Memory Used# [2025-01-14 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:14:05 [end_date_ymd] => 2025-01-14 18:14:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:14:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:14:18] Production.INFO: count ==5039 [2025-01-14 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:14:05 - End Time 2025-01-14 18:14:05 [2025-01-14 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248039', 'tblTempUsageDetail_20' ) start [2025-01-14 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248039', 'tblTempUsageDetail_20' ) end [2025-01-14 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248039', 'tblTempVendorCDR_20' ) start [2025-01-14 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248039', 'tblTempVendorCDR_20' ) end [2025-01-14 18:14:20] Production.INFO: ProcessCDR(1,14248039,1,1,2) [2025-01-14 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248039', 'tblTempUsageDetail_20' ) start [2025-01-14 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248039', 'tblTempUsageDetail_20' ) end [2025-01-14 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:14:25] Production.INFO: ==19388== Releasing lock... [2025-01-14 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:14:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-14 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:15:05 [end_date_ymd] => 2025-01-14 18:15:05 [RateCDR] => 1 ) [2025-01-14 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:15:05' and `end` < '2025-01-14 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:15:20] Production.INFO: count ==5034 [2025-01-14 18:15:22] Production.ERROR: pbx CDR StartTime 2025-01-14 15:15:05 - End Time 2025-01-14 18:15:05 [2025-01-14 18:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248044', 'tblTempUsageDetail_20' ) start [2025-01-14 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248044', 'tblTempUsageDetail_20' ) end [2025-01-14 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248044', 'tblTempVendorCDR_20' ) start [2025-01-14 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248044', 'tblTempVendorCDR_20' ) end [2025-01-14 18:15:22] Production.INFO: ProcessCDR(1,14248044,1,1,2) [2025-01-14 18:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248044', 'tblTempUsageDetail_20' ) start [2025-01-14 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248044', 'tblTempUsageDetail_20' ) end [2025-01-14 18:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:15:27] Production.INFO: ==19459== Releasing lock... [2025-01-14 18:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:15:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-14 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:16:05 [end_date_ymd] => 2025-01-14 18:16:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:16:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:16:22] Production.INFO: count ==5026 [2025-01-14 18:16:24] Production.ERROR: pbx CDR StartTime 2025-01-14 15:16:05 - End Time 2025-01-14 18:16:05 [2025-01-14 18:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248049', 'tblTempUsageDetail_20' ) start [2025-01-14 18:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248049', 'tblTempUsageDetail_20' ) end [2025-01-14 18:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248049', 'tblTempVendorCDR_20' ) start [2025-01-14 18:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248049', 'tblTempVendorCDR_20' ) end [2025-01-14 18:16:24] Production.INFO: ProcessCDR(1,14248049,1,1,2) [2025-01-14 18:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248049', 'tblTempUsageDetail_20' ) start [2025-01-14 18:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248049', 'tblTempUsageDetail_20' ) end [2025-01-14 18:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:16:29] Production.INFO: ==19535== Releasing lock... [2025-01-14 18:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:16:29] Production.INFO: 65.5 MB #Memory Used# [2025-01-14 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:17:05 [end_date_ymd] => 2025-01-14 18:17:05 [RateCDR] => 1 ) [2025-01-14 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:17:05' and `end` < '2025-01-14 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:17:19] Production.INFO: count ==5006 [2025-01-14 18:17:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:17:05 - End Time 2025-01-14 18:17:05 [2025-01-14 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248054', 'tblTempUsageDetail_20' ) start [2025-01-14 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248054', 'tblTempUsageDetail_20' ) end [2025-01-14 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248054', 'tblTempVendorCDR_20' ) start [2025-01-14 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248054', 'tblTempVendorCDR_20' ) end [2025-01-14 18:17:21] Production.INFO: ProcessCDR(1,14248054,1,1,2) [2025-01-14 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248054', 'tblTempUsageDetail_20' ) start [2025-01-14 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248054', 'tblTempUsageDetail_20' ) end [2025-01-14 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:17:25] Production.INFO: ==19609== Releasing lock... [2025-01-14 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:17:25] Production.INFO: 65.5 MB #Memory Used# [2025-01-14 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:18:05 [end_date_ymd] => 2025-01-14 18:18:05 [RateCDR] => 1 ) [2025-01-14 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:18:05' and `end` < '2025-01-14 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:18:19] Production.INFO: count ==4989 [2025-01-14 18:18:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:18:05 - End Time 2025-01-14 18:18:05 [2025-01-14 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248059', 'tblTempUsageDetail_20' ) start [2025-01-14 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248059', 'tblTempUsageDetail_20' ) end [2025-01-14 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248059', 'tblTempVendorCDR_20' ) start [2025-01-14 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248059', 'tblTempVendorCDR_20' ) end [2025-01-14 18:18:21] Production.INFO: ProcessCDR(1,14248059,1,1,2) [2025-01-14 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248059', 'tblTempUsageDetail_20' ) start [2025-01-14 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248059', 'tblTempUsageDetail_20' ) end [2025-01-14 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:18:26] Production.INFO: ==19679== Releasing lock... [2025-01-14 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:18:26] Production.INFO: 65.25 MB #Memory Used# [2025-01-14 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:19:05 [end_date_ymd] => 2025-01-14 18:19:05 [RateCDR] => 1 ) [2025-01-14 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:19:05' and `end` < '2025-01-14 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:19:20] Production.INFO: count ==4982 [2025-01-14 18:19:22] Production.ERROR: pbx CDR StartTime 2025-01-14 15:19:05 - End Time 2025-01-14 18:19:05 [2025-01-14 18:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248064', 'tblTempUsageDetail_20' ) start [2025-01-14 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248064', 'tblTempUsageDetail_20' ) end [2025-01-14 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248064', 'tblTempVendorCDR_20' ) start [2025-01-14 18:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248064', 'tblTempVendorCDR_20' ) end [2025-01-14 18:19:22] Production.INFO: ProcessCDR(1,14248064,1,1,2) [2025-01-14 18:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248064', 'tblTempUsageDetail_20' ) start [2025-01-14 18:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248064', 'tblTempUsageDetail_20' ) end [2025-01-14 18:19:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:19:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:19:27] Production.INFO: ==19754== Releasing lock... [2025-01-14 18:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:19:27] Production.INFO: 65.25 MB #Memory Used# [2025-01-14 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:20:05 [end_date_ymd] => 2025-01-14 18:20:05 [RateCDR] => 1 ) [2025-01-14 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:20:05' and `end` < '2025-01-14 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:20:18] Production.INFO: count ==4974 [2025-01-14 18:20:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:20:05 - End Time 2025-01-14 18:20:05 [2025-01-14 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248070', 'tblTempUsageDetail_20' ) start [2025-01-14 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248070', 'tblTempUsageDetail_20' ) end [2025-01-14 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248070', 'tblTempVendorCDR_20' ) start [2025-01-14 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248070', 'tblTempVendorCDR_20' ) end [2025-01-14 18:20:20] Production.INFO: ProcessCDR(1,14248070,1,1,2) [2025-01-14 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248070', 'tblTempUsageDetail_20' ) start [2025-01-14 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248070', 'tblTempUsageDetail_20' ) end [2025-01-14 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:20:25] Production.INFO: ==19830== Releasing lock... [2025-01-14 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:20:25] Production.INFO: 65.25 MB #Memory Used# [2025-01-14 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:21:05 [end_date_ymd] => 2025-01-14 18:21:05 [RateCDR] => 1 ) [2025-01-14 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:21:05' and `end` < '2025-01-14 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:21:20] Production.INFO: count ==4877 [2025-01-14 18:21:22] Production.ERROR: pbx CDR StartTime 2025-01-14 15:21:05 - End Time 2025-01-14 18:21:05 [2025-01-14 18:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248075', 'tblTempUsageDetail_20' ) start [2025-01-14 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248075', 'tblTempUsageDetail_20' ) end [2025-01-14 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248075', 'tblTempVendorCDR_20' ) start [2025-01-14 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248075', 'tblTempVendorCDR_20' ) end [2025-01-14 18:21:22] Production.INFO: ProcessCDR(1,14248075,1,1,2) [2025-01-14 18:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248075', 'tblTempUsageDetail_20' ) start [2025-01-14 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248075', 'tblTempUsageDetail_20' ) end [2025-01-14 18:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:21:27] Production.INFO: ==19904== Releasing lock... [2025-01-14 18:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:21:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-14 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:22:05 [end_date_ymd] => 2025-01-14 18:22:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:22:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:22:20] Production.INFO: count ==4851 [2025-01-14 18:22:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:22:05 - End Time 2025-01-14 18:22:05 [2025-01-14 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248080', 'tblTempUsageDetail_20' ) start [2025-01-14 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248080', 'tblTempUsageDetail_20' ) end [2025-01-14 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248080', 'tblTempVendorCDR_20' ) start [2025-01-14 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248080', 'tblTempVendorCDR_20' ) end [2025-01-14 18:22:22] Production.INFO: ProcessCDR(1,14248080,1,1,2) [2025-01-14 18:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248080', 'tblTempUsageDetail_20' ) start [2025-01-14 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248080', 'tblTempUsageDetail_20' ) end [2025-01-14 18:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:22:27] Production.INFO: ==20015== Releasing lock... [2025-01-14 18:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:22:27] Production.INFO: 64.25 MB #Memory Used# [2025-01-14 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:23:05 [end_date_ymd] => 2025-01-14 18:23:05 [RateCDR] => 1 ) [2025-01-14 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:23:05' and `end` < '2025-01-14 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:23:18] Production.INFO: count ==4850 [2025-01-14 18:23:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:23:05 - End Time 2025-01-14 18:23:05 [2025-01-14 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248085', 'tblTempUsageDetail_20' ) start [2025-01-14 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248085', 'tblTempUsageDetail_20' ) end [2025-01-14 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248085', 'tblTempVendorCDR_20' ) start [2025-01-14 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248085', 'tblTempVendorCDR_20' ) end [2025-01-14 18:23:20] Production.INFO: ProcessCDR(1,14248085,1,1,2) [2025-01-14 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248085', 'tblTempUsageDetail_20' ) start [2025-01-14 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248085', 'tblTempUsageDetail_20' ) end [2025-01-14 18:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:23:26] Production.INFO: ==20086== Releasing lock... [2025-01-14 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:23:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-14 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:24:05 [end_date_ymd] => 2025-01-14 18:24:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:24:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:24:19] Production.INFO: count ==4837 [2025-01-14 18:24:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:24:05 - End Time 2025-01-14 18:24:05 [2025-01-14 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248090', 'tblTempUsageDetail_20' ) start [2025-01-14 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248090', 'tblTempUsageDetail_20' ) end [2025-01-14 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248090', 'tblTempVendorCDR_20' ) start [2025-01-14 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248090', 'tblTempVendorCDR_20' ) end [2025-01-14 18:24:21] Production.INFO: ProcessCDR(1,14248090,1,1,2) [2025-01-14 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248090', 'tblTempUsageDetail_20' ) start [2025-01-14 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248090', 'tblTempUsageDetail_20' ) end [2025-01-14 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:24:25] Production.INFO: ==20155== Releasing lock... [2025-01-14 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:24:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-14 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:25:05 [end_date_ymd] => 2025-01-14 18:25:05 [RateCDR] => 1 ) [2025-01-14 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:25:05' and `end` < '2025-01-14 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:25:18] Production.INFO: count ==4813 [2025-01-14 18:25:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:25:05 - End Time 2025-01-14 18:25:05 [2025-01-14 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248095', 'tblTempUsageDetail_20' ) start [2025-01-14 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248095', 'tblTempUsageDetail_20' ) end [2025-01-14 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248095', 'tblTempVendorCDR_20' ) start [2025-01-14 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248095', 'tblTempVendorCDR_20' ) end [2025-01-14 18:25:20] Production.INFO: ProcessCDR(1,14248095,1,1,2) [2025-01-14 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248095', 'tblTempUsageDetail_20' ) start [2025-01-14 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248095', 'tblTempUsageDetail_20' ) end [2025-01-14 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:25:24] Production.INFO: ==20225== Releasing lock... [2025-01-14 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:25:24] Production.INFO: 64 MB #Memory Used# [2025-01-14 18:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:26:06 [end_date_ymd] => 2025-01-14 18:26:06 [RateCDR] => 1 ) [2025-01-14 18:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:26:06' and `end` < '2025-01-14 18:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:26:20] Production.INFO: count ==4771 [2025-01-14 18:26:22] Production.ERROR: pbx CDR StartTime 2025-01-14 15:26:06 - End Time 2025-01-14 18:26:06 [2025-01-14 18:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248100', 'tblTempUsageDetail_20' ) start [2025-01-14 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248100', 'tblTempUsageDetail_20' ) end [2025-01-14 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248100', 'tblTempVendorCDR_20' ) start [2025-01-14 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248100', 'tblTempVendorCDR_20' ) end [2025-01-14 18:26:22] Production.INFO: ProcessCDR(1,14248100,1,1,2) [2025-01-14 18:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248100', 'tblTempUsageDetail_20' ) start [2025-01-14 18:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248100', 'tblTempUsageDetail_20' ) end [2025-01-14 18:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:26:27] Production.INFO: ==20296== Releasing lock... [2025-01-14 18:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:26:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-14 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:27:05 [end_date_ymd] => 2025-01-14 18:27:05 [RateCDR] => 1 ) [2025-01-14 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:27:05' and `end` < '2025-01-14 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:27:18] Production.INFO: count ==4731 [2025-01-14 18:27:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:27:05 - End Time 2025-01-14 18:27:05 [2025-01-14 18:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248105', 'tblTempUsageDetail_20' ) start [2025-01-14 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248105', 'tblTempUsageDetail_20' ) end [2025-01-14 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248105', 'tblTempVendorCDR_20' ) start [2025-01-14 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248105', 'tblTempVendorCDR_20' ) end [2025-01-14 18:27:20] Production.INFO: ProcessCDR(1,14248105,1,1,2) [2025-01-14 18:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248105', 'tblTempUsageDetail_20' ) start [2025-01-14 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248105', 'tblTempUsageDetail_20' ) end [2025-01-14 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:27:23] Production.INFO: ==20368== Releasing lock... [2025-01-14 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:27:23] Production.INFO: 63.5 MB #Memory Used# [2025-01-14 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:28:05 [end_date_ymd] => 2025-01-14 18:28:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:28:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:28:18] Production.INFO: count ==4708 [2025-01-14 18:28:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:28:05 - End Time 2025-01-14 18:28:05 [2025-01-14 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248110', 'tblTempUsageDetail_20' ) start [2025-01-14 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248110', 'tblTempUsageDetail_20' ) end [2025-01-14 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248110', 'tblTempVendorCDR_20' ) start [2025-01-14 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248110', 'tblTempVendorCDR_20' ) end [2025-01-14 18:28:20] Production.INFO: ProcessCDR(1,14248110,1,1,2) [2025-01-14 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248110', 'tblTempUsageDetail_20' ) start [2025-01-14 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248110', 'tblTempUsageDetail_20' ) end [2025-01-14 18:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:28:25] Production.INFO: ==20438== Releasing lock... [2025-01-14 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:28:25] Production.INFO: 63.25 MB #Memory Used# [2025-01-14 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:29:05 [end_date_ymd] => 2025-01-14 18:29:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:29:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:29:19] Production.INFO: count ==4688 [2025-01-14 18:29:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:29:05 - End Time 2025-01-14 18:29:05 [2025-01-14 18:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248115', 'tblTempUsageDetail_20' ) start [2025-01-14 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248115', 'tblTempUsageDetail_20' ) end [2025-01-14 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248115', 'tblTempVendorCDR_20' ) start [2025-01-14 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248115', 'tblTempVendorCDR_20' ) end [2025-01-14 18:29:21] Production.INFO: ProcessCDR(1,14248115,1,1,2) [2025-01-14 18:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248115', 'tblTempUsageDetail_20' ) start [2025-01-14 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248115', 'tblTempUsageDetail_20' ) end [2025-01-14 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:29:24] Production.INFO: ==20508== Releasing lock... [2025-01-14 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:29:24] Production.INFO: 63 MB #Memory Used# [2025-01-14 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:30:06 [end_date_ymd] => 2025-01-14 18:30:06 [RateCDR] => 1 ) [2025-01-14 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:30:06' and `end` < '2025-01-14 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:30:19] Production.INFO: count ==4684 [2025-01-14 18:30:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:30:06 - End Time 2025-01-14 18:30:06 [2025-01-14 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248121', 'tblTempUsageDetail_20' ) start [2025-01-14 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248121', 'tblTempUsageDetail_20' ) end [2025-01-14 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248121', 'tblTempVendorCDR_20' ) start [2025-01-14 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248121', 'tblTempVendorCDR_20' ) end [2025-01-14 18:30:21] Production.INFO: ProcessCDR(1,14248121,1,1,2) [2025-01-14 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248121', 'tblTempUsageDetail_20' ) start [2025-01-14 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248121', 'tblTempUsageDetail_20' ) end [2025-01-14 18:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:30:24] Production.INFO: ==20586== Releasing lock... [2025-01-14 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:30:24] Production.INFO: 63 MB #Memory Used# [2025-01-14 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:31:05 [end_date_ymd] => 2025-01-14 18:31:05 [RateCDR] => 1 ) [2025-01-14 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:31:05' and `end` < '2025-01-14 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:31:19] Production.INFO: count ==4614 [2025-01-14 18:31:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:31:05 - End Time 2025-01-14 18:31:05 [2025-01-14 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248126', 'tblTempUsageDetail_20' ) start [2025-01-14 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248126', 'tblTempUsageDetail_20' ) end [2025-01-14 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248126', 'tblTempVendorCDR_20' ) start [2025-01-14 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248126', 'tblTempVendorCDR_20' ) end [2025-01-14 18:31:20] Production.INFO: ProcessCDR(1,14248126,1,1,2) [2025-01-14 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248126', 'tblTempUsageDetail_20' ) start [2025-01-14 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248126', 'tblTempUsageDetail_20' ) end [2025-01-14 18:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:31:26] Production.INFO: ==20660== Releasing lock... [2025-01-14 18:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:31:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-14 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:32:06 [end_date_ymd] => 2025-01-14 18:32:06 [RateCDR] => 1 ) [2025-01-14 18:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:32:06' and `end` < '2025-01-14 18:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:32:21] Production.INFO: count ==4619 [2025-01-14 18:32:23] Production.ERROR: pbx CDR StartTime 2025-01-14 15:32:06 - End Time 2025-01-14 18:32:06 [2025-01-14 18:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248131', 'tblTempUsageDetail_20' ) start [2025-01-14 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248131', 'tblTempUsageDetail_20' ) end [2025-01-14 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248131', 'tblTempVendorCDR_20' ) start [2025-01-14 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248131', 'tblTempVendorCDR_20' ) end [2025-01-14 18:32:23] Production.INFO: ProcessCDR(1,14248131,1,1,2) [2025-01-14 18:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248131', 'tblTempUsageDetail_20' ) start [2025-01-14 18:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248131', 'tblTempUsageDetail_20' ) end [2025-01-14 18:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:32:28] Production.INFO: ==20734== Releasing lock... [2025-01-14 18:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:32:28] Production.INFO: 62.5 MB #Memory Used# [2025-01-14 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:33:05 [end_date_ymd] => 2025-01-14 18:33:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:33:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:33:21] Production.INFO: count ==4584 [2025-01-14 18:33:23] Production.ERROR: pbx CDR StartTime 2025-01-14 15:33:05 - End Time 2025-01-14 18:33:05 [2025-01-14 18:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248136', 'tblTempUsageDetail_20' ) start [2025-01-14 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248136', 'tblTempUsageDetail_20' ) end [2025-01-14 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248136', 'tblTempVendorCDR_20' ) start [2025-01-14 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248136', 'tblTempVendorCDR_20' ) end [2025-01-14 18:33:23] Production.INFO: ProcessCDR(1,14248136,1,1,2) [2025-01-14 18:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248136', 'tblTempUsageDetail_20' ) start [2025-01-14 18:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248136', 'tblTempUsageDetail_20' ) end [2025-01-14 18:33:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:33:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:33:28] Production.INFO: ==20807== Releasing lock... [2025-01-14 18:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:33:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-14 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:34:04 [end_date_ymd] => 2025-01-14 18:34:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:34:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:34:18] Production.INFO: count ==4573 [2025-01-14 18:34:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:34:04 - End Time 2025-01-14 18:34:04 [2025-01-14 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248141', 'tblTempUsageDetail_20' ) start [2025-01-14 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248141', 'tblTempUsageDetail_20' ) end [2025-01-14 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248141', 'tblTempVendorCDR_20' ) start [2025-01-14 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248141', 'tblTempVendorCDR_20' ) end [2025-01-14 18:34:20] Production.INFO: ProcessCDR(1,14248141,1,1,2) [2025-01-14 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248141', 'tblTempUsageDetail_20' ) start [2025-01-14 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248141', 'tblTempUsageDetail_20' ) end [2025-01-14 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:34:25] Production.INFO: ==20876== Releasing lock... [2025-01-14 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:34:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-14 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:35:05 [end_date_ymd] => 2025-01-14 18:35:05 [RateCDR] => 1 ) [2025-01-14 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:35:05' and `end` < '2025-01-14 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:35:18] Production.INFO: count ==4564 [2025-01-14 18:35:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:35:05 - End Time 2025-01-14 18:35:05 [2025-01-14 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248146', 'tblTempUsageDetail_20' ) start [2025-01-14 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248146', 'tblTempUsageDetail_20' ) end [2025-01-14 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248146', 'tblTempVendorCDR_20' ) start [2025-01-14 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248146', 'tblTempVendorCDR_20' ) end [2025-01-14 18:35:20] Production.INFO: ProcessCDR(1,14248146,1,1,2) [2025-01-14 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248146', 'tblTempUsageDetail_20' ) start [2025-01-14 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248146', 'tblTempUsageDetail_20' ) end [2025-01-14 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:35:24] Production.INFO: ==20950== Releasing lock... [2025-01-14 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:35:24] Production.INFO: 62.25 MB #Memory Used# [2025-01-14 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:36:06 [end_date_ymd] => 2025-01-14 18:36:06 [RateCDR] => 1 ) [2025-01-14 18:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:36:06' and `end` < '2025-01-14 18:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:36:19] Production.INFO: count ==4546 [2025-01-14 18:36:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:36:06 - End Time 2025-01-14 18:36:06 [2025-01-14 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248151', 'tblTempUsageDetail_20' ) start [2025-01-14 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248151', 'tblTempUsageDetail_20' ) end [2025-01-14 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248151', 'tblTempVendorCDR_20' ) start [2025-01-14 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248151', 'tblTempVendorCDR_20' ) end [2025-01-14 18:36:21] Production.INFO: ProcessCDR(1,14248151,1,1,2) [2025-01-14 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248151', 'tblTempUsageDetail_20' ) start [2025-01-14 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248151', 'tblTempUsageDetail_20' ) end [2025-01-14 18:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:36:26] Production.INFO: ==21019== Releasing lock... [2025-01-14 18:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:36:26] Production.INFO: 62 MB #Memory Used# [2025-01-14 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:37:05 [end_date_ymd] => 2025-01-14 18:37:05 [RateCDR] => 1 ) [2025-01-14 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:37:05' and `end` < '2025-01-14 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:37:18] Production.INFO: count ==4531 [2025-01-14 18:37:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:37:05 - End Time 2025-01-14 18:37:05 [2025-01-14 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248156', 'tblTempUsageDetail_20' ) start [2025-01-14 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248156', 'tblTempUsageDetail_20' ) end [2025-01-14 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248156', 'tblTempVendorCDR_20' ) start [2025-01-14 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248156', 'tblTempVendorCDR_20' ) end [2025-01-14 18:37:20] Production.INFO: ProcessCDR(1,14248156,1,1,2) [2025-01-14 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248156', 'tblTempUsageDetail_20' ) start [2025-01-14 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248156', 'tblTempUsageDetail_20' ) end [2025-01-14 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:37:25] Production.INFO: ==21130== Releasing lock... [2025-01-14 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:37:25] Production.INFO: 62 MB #Memory Used# [2025-01-14 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:38:05 [end_date_ymd] => 2025-01-14 18:38:05 [RateCDR] => 1 ) [2025-01-14 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:38:05' and `end` < '2025-01-14 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:38:18] Production.INFO: count ==4510 [2025-01-14 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:38:05 - End Time 2025-01-14 18:38:05 [2025-01-14 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248161', 'tblTempUsageDetail_20' ) start [2025-01-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248161', 'tblTempUsageDetail_20' ) end [2025-01-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248161', 'tblTempVendorCDR_20' ) start [2025-01-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248161', 'tblTempVendorCDR_20' ) end [2025-01-14 18:38:20] Production.INFO: ProcessCDR(1,14248161,1,1,2) [2025-01-14 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248161', 'tblTempUsageDetail_20' ) start [2025-01-14 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248161', 'tblTempUsageDetail_20' ) end [2025-01-14 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:38:24] Production.INFO: ==21200== Releasing lock... [2025-01-14 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:38:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-14 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:39:05 [end_date_ymd] => 2025-01-14 18:39:05 [RateCDR] => 1 ) [2025-01-14 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:39:05' and `end` < '2025-01-14 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:39:18] Production.INFO: count ==4516 [2025-01-14 18:39:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:39:05 - End Time 2025-01-14 18:39:05 [2025-01-14 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248166', 'tblTempUsageDetail_20' ) start [2025-01-14 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248166', 'tblTempUsageDetail_20' ) end [2025-01-14 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248166', 'tblTempVendorCDR_20' ) start [2025-01-14 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248166', 'tblTempVendorCDR_20' ) end [2025-01-14 18:39:20] Production.INFO: ProcessCDR(1,14248166,1,1,2) [2025-01-14 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248166', 'tblTempUsageDetail_20' ) start [2025-01-14 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248166', 'tblTempUsageDetail_20' ) end [2025-01-14 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:39:25] Production.INFO: ==21270== Releasing lock... [2025-01-14 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:39:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-14 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:40:06 [end_date_ymd] => 2025-01-14 18:40:06 [RateCDR] => 1 ) [2025-01-14 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:40:06' and `end` < '2025-01-14 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:40:19] Production.INFO: count ==4513 [2025-01-14 18:40:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:40:06 - End Time 2025-01-14 18:40:06 [2025-01-14 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248171', 'tblTempUsageDetail_20' ) start [2025-01-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248171', 'tblTempUsageDetail_20' ) end [2025-01-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248171', 'tblTempVendorCDR_20' ) start [2025-01-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248171', 'tblTempVendorCDR_20' ) end [2025-01-14 18:40:21] Production.INFO: ProcessCDR(1,14248171,1,1,2) [2025-01-14 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248171', 'tblTempUsageDetail_20' ) start [2025-01-14 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248171', 'tblTempUsageDetail_20' ) end [2025-01-14 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:40:26] Production.INFO: ==21344== Releasing lock... [2025-01-14 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:40:26] Production.INFO: 61.75 MB #Memory Used# [2025-01-14 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:41:05 [end_date_ymd] => 2025-01-14 18:41:05 [RateCDR] => 1 ) [2025-01-14 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:41:05' and `end` < '2025-01-14 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:41:18] Production.INFO: count ==4465 [2025-01-14 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-14 15:41:05 - End Time 2025-01-14 18:41:05 [2025-01-14 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248176', 'tblTempUsageDetail_20' ) start [2025-01-14 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248176', 'tblTempUsageDetail_20' ) end [2025-01-14 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248176', 'tblTempVendorCDR_20' ) start [2025-01-14 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248176', 'tblTempVendorCDR_20' ) end [2025-01-14 18:41:20] Production.INFO: ProcessCDR(1,14248176,1,1,2) [2025-01-14 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248176', 'tblTempUsageDetail_20' ) start [2025-01-14 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248176', 'tblTempUsageDetail_20' ) end [2025-01-14 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:41:23] Production.INFO: ==21418== Releasing lock... [2025-01-14 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:41:23] Production.INFO: 61.5 MB #Memory Used# [2025-01-14 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:42:05 [end_date_ymd] => 2025-01-14 18:42:05 [RateCDR] => 1 ) [2025-01-14 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:42:05' and `end` < '2025-01-14 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:42:19] Production.INFO: count ==4451 [2025-01-14 18:42:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:42:05 - End Time 2025-01-14 18:42:05 [2025-01-14 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248182', 'tblTempUsageDetail_20' ) start [2025-01-14 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248182', 'tblTempUsageDetail_20' ) end [2025-01-14 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248182', 'tblTempVendorCDR_20' ) start [2025-01-14 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248182', 'tblTempVendorCDR_20' ) end [2025-01-14 18:42:20] Production.INFO: ProcessCDR(1,14248182,1,1,2) [2025-01-14 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248182', 'tblTempUsageDetail_20' ) start [2025-01-14 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248182', 'tblTempUsageDetail_20' ) end [2025-01-14 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:42:24] Production.INFO: ==21490== Releasing lock... [2025-01-14 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:42:24] Production.INFO: 61.25 MB #Memory Used# [2025-01-14 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:43:05 [end_date_ymd] => 2025-01-14 18:43:05 [RateCDR] => 1 ) [2025-01-14 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:43:05' and `end` < '2025-01-14 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:43:18] Production.INFO: count ==4423 [2025-01-14 18:43:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:43:05 - End Time 2025-01-14 18:43:05 [2025-01-14 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248187', 'tblTempUsageDetail_20' ) start [2025-01-14 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248187', 'tblTempUsageDetail_20' ) end [2025-01-14 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248187', 'tblTempVendorCDR_20' ) start [2025-01-14 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248187', 'tblTempVendorCDR_20' ) end [2025-01-14 18:43:20] Production.INFO: ProcessCDR(1,14248187,1,1,2) [2025-01-14 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248187', 'tblTempUsageDetail_20' ) start [2025-01-14 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248187', 'tblTempUsageDetail_20' ) end [2025-01-14 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:43:23] Production.INFO: ==21562== Releasing lock... [2025-01-14 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:43:23] Production.INFO: 61 MB #Memory Used# [2025-01-14 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:44:06 [end_date_ymd] => 2025-01-14 18:44:06 [RateCDR] => 1 ) [2025-01-14 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:44:06' and `end` < '2025-01-14 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:44:22] Production.INFO: count ==4394 [2025-01-14 18:44:24] Production.ERROR: pbx CDR StartTime 2025-01-14 15:44:06 - End Time 2025-01-14 18:44:06 [2025-01-14 18:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248192', 'tblTempUsageDetail_20' ) start [2025-01-14 18:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248192', 'tblTempUsageDetail_20' ) end [2025-01-14 18:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248192', 'tblTempVendorCDR_20' ) start [2025-01-14 18:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248192', 'tblTempVendorCDR_20' ) end [2025-01-14 18:44:24] Production.INFO: ProcessCDR(1,14248192,1,1,2) [2025-01-14 18:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248192', 'tblTempUsageDetail_20' ) start [2025-01-14 18:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248192', 'tblTempUsageDetail_20' ) end [2025-01-14 18:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:44:27] Production.INFO: ==21641== Releasing lock... [2025-01-14 18:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:44:27] Production.INFO: 61 MB #Memory Used# [2025-01-14 18:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:45:04 [end_date_ymd] => 2025-01-14 18:45:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 15:45:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 18:45:20] Production.INFO: count ==4356 [2025-01-14 18:45:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:45:04 - End Time 2025-01-14 18:45:04 [2025-01-14 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248193', 'tblTempUsageDetail_20' ) start [2025-01-14 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248193', 'tblTempUsageDetail_20' ) end [2025-01-14 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248193', 'tblTempVendorCDR_20' ) start [2025-01-14 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248193', 'tblTempVendorCDR_20' ) end [2025-01-14 18:45:21] Production.INFO: ProcessCDR(1,14248193,1,1,2) [2025-01-14 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248193', 'tblTempUsageDetail_20' ) start [2025-01-14 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248193', 'tblTempUsageDetail_20' ) end [2025-01-14 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:45:26] Production.INFO: ==21710== Releasing lock... [2025-01-14 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:45:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-14 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:46:05 [end_date_ymd] => 2025-01-14 18:46:05 [RateCDR] => 1 ) [2025-01-14 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:46:05' and `end` < '2025-01-14 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:46:18] Production.INFO: count ==4337 [2025-01-14 18:46:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:46:05 - End Time 2025-01-14 18:46:05 [2025-01-14 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248202', 'tblTempUsageDetail_20' ) start [2025-01-14 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248202', 'tblTempUsageDetail_20' ) end [2025-01-14 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248202', 'tblTempVendorCDR_20' ) start [2025-01-14 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248202', 'tblTempVendorCDR_20' ) end [2025-01-14 18:46:20] Production.INFO: ProcessCDR(1,14248202,1,1,2) [2025-01-14 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248202', 'tblTempUsageDetail_20' ) start [2025-01-14 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248202', 'tblTempUsageDetail_20' ) end [2025-01-14 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:46:24] Production.INFO: ==21785== Releasing lock... [2025-01-14 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:46:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-14 18:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:47:04 [end_date_ymd] => 2025-01-14 18:47:04 [RateCDR] => 1 ) [2025-01-14 18:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:47:04' and `end` < '2025-01-14 18:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:47:18] Production.INFO: count ==4313 [2025-01-14 18:47:19] Production.ERROR: pbx CDR StartTime 2025-01-14 15:47:04 - End Time 2025-01-14 18:47:04 [2025-01-14 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248207', 'tblTempUsageDetail_20' ) start [2025-01-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248207', 'tblTempUsageDetail_20' ) end [2025-01-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248207', 'tblTempVendorCDR_20' ) start [2025-01-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248207', 'tblTempVendorCDR_20' ) end [2025-01-14 18:47:19] Production.INFO: ProcessCDR(1,14248207,1,1,2) [2025-01-14 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248207', 'tblTempUsageDetail_20' ) start [2025-01-14 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248207', 'tblTempUsageDetail_20' ) end [2025-01-14 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:47:24] Production.INFO: ==21855== Releasing lock... [2025-01-14 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:47:24] Production.INFO: 60.25 MB #Memory Used# [2025-01-14 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:48:05 [end_date_ymd] => 2025-01-14 18:48:05 [RateCDR] => 1 ) [2025-01-14 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:48:05' and `end` < '2025-01-14 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:48:18] Production.INFO: count ==4301 [2025-01-14 18:48:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:48:05 - End Time 2025-01-14 18:48:05 [2025-01-14 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248212', 'tblTempUsageDetail_20' ) start [2025-01-14 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248212', 'tblTempUsageDetail_20' ) end [2025-01-14 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248212', 'tblTempVendorCDR_20' ) start [2025-01-14 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248212', 'tblTempVendorCDR_20' ) end [2025-01-14 18:48:20] Production.INFO: ProcessCDR(1,14248212,1,1,2) [2025-01-14 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248212', 'tblTempUsageDetail_20' ) start [2025-01-14 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248212', 'tblTempUsageDetail_20' ) end [2025-01-14 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:48:23] Production.INFO: ==21926== Releasing lock... [2025-01-14 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:48:23] Production.INFO: 60.25 MB #Memory Used# [2025-01-14 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:49:05 [end_date_ymd] => 2025-01-14 18:49:05 [RateCDR] => 1 ) [2025-01-14 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:49:05' and `end` < '2025-01-14 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:49:18] Production.INFO: count ==4282 [2025-01-14 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-14 15:49:05 - End Time 2025-01-14 18:49:05 [2025-01-14 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248217', 'tblTempUsageDetail_20' ) start [2025-01-14 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248217', 'tblTempUsageDetail_20' ) end [2025-01-14 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248217', 'tblTempVendorCDR_20' ) start [2025-01-14 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248217', 'tblTempVendorCDR_20' ) end [2025-01-14 18:49:19] Production.INFO: ProcessCDR(1,14248217,1,1,2) [2025-01-14 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248217', 'tblTempUsageDetail_20' ) start [2025-01-14 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248217', 'tblTempUsageDetail_20' ) end [2025-01-14 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:49:23] Production.INFO: ==21997== Releasing lock... [2025-01-14 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:49:23] Production.INFO: 60 MB #Memory Used# [2025-01-14 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:50:06 [end_date_ymd] => 2025-01-14 18:50:06 [RateCDR] => 1 ) [2025-01-14 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:50:06' and `end` < '2025-01-14 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:50:19] Production.INFO: count ==4285 [2025-01-14 18:50:21] Production.ERROR: pbx CDR StartTime 2025-01-14 15:50:06 - End Time 2025-01-14 18:50:06 [2025-01-14 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248223', 'tblTempUsageDetail_20' ) start [2025-01-14 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248223', 'tblTempUsageDetail_20' ) end [2025-01-14 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248223', 'tblTempVendorCDR_20' ) start [2025-01-14 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248223', 'tblTempVendorCDR_20' ) end [2025-01-14 18:50:21] Production.INFO: ProcessCDR(1,14248223,1,1,2) [2025-01-14 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248223', 'tblTempUsageDetail_20' ) start [2025-01-14 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248223', 'tblTempUsageDetail_20' ) end [2025-01-14 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:50:24] Production.INFO: ==22074== Releasing lock... [2025-01-14 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:50:24] Production.INFO: 60 MB #Memory Used# [2025-01-14 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:51:05 [end_date_ymd] => 2025-01-14 18:51:05 [RateCDR] => 1 ) [2025-01-14 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:51:05' and `end` < '2025-01-14 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:51:18] Production.INFO: count ==4222 [2025-01-14 18:51:19] Production.ERROR: pbx CDR StartTime 2025-01-14 15:51:05 - End Time 2025-01-14 18:51:05 [2025-01-14 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248228', 'tblTempUsageDetail_20' ) start [2025-01-14 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248228', 'tblTempUsageDetail_20' ) end [2025-01-14 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248228', 'tblTempVendorCDR_20' ) start [2025-01-14 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248228', 'tblTempVendorCDR_20' ) end [2025-01-14 18:51:20] Production.INFO: ProcessCDR(1,14248228,1,1,2) [2025-01-14 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248228', 'tblTempUsageDetail_20' ) start [2025-01-14 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248228', 'tblTempUsageDetail_20' ) end [2025-01-14 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:51:25] Production.INFO: ==22145== Releasing lock... [2025-01-14 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:51:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-14 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:52:05 [end_date_ymd] => 2025-01-14 18:52:05 [RateCDR] => 1 ) [2025-01-14 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:52:05' and `end` < '2025-01-14 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:52:19] Production.INFO: count ==4184 [2025-01-14 18:52:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:52:05 - End Time 2025-01-14 18:52:05 [2025-01-14 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248233', 'tblTempUsageDetail_20' ) start [2025-01-14 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248233', 'tblTempUsageDetail_20' ) end [2025-01-14 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248233', 'tblTempVendorCDR_20' ) start [2025-01-14 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248233', 'tblTempVendorCDR_20' ) end [2025-01-14 18:52:20] Production.INFO: ProcessCDR(1,14248233,1,1,2) [2025-01-14 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248233', 'tblTempUsageDetail_20' ) start [2025-01-14 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248233', 'tblTempUsageDetail_20' ) end [2025-01-14 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:52:26] Production.INFO: ==22215== Releasing lock... [2025-01-14 18:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:52:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-14 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:53:05 [end_date_ymd] => 2025-01-14 18:53:05 [RateCDR] => 1 ) [2025-01-14 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:53:05' and `end` < '2025-01-14 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:53:19] Production.INFO: count ==4156 [2025-01-14 18:53:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:53:05 - End Time 2025-01-14 18:53:05 [2025-01-14 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248238', 'tblTempUsageDetail_20' ) start [2025-01-14 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248238', 'tblTempUsageDetail_20' ) end [2025-01-14 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248238', 'tblTempVendorCDR_20' ) start [2025-01-14 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248238', 'tblTempVendorCDR_20' ) end [2025-01-14 18:53:20] Production.INFO: ProcessCDR(1,14248238,1,1,2) [2025-01-14 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248238', 'tblTempUsageDetail_20' ) start [2025-01-14 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248238', 'tblTempUsageDetail_20' ) end [2025-01-14 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:53:25] Production.INFO: ==22327== Releasing lock... [2025-01-14 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:53:25] Production.INFO: 59 MB #Memory Used# [2025-01-14 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:54:05 [end_date_ymd] => 2025-01-14 18:54:05 [RateCDR] => 1 ) [2025-01-14 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:54:05' and `end` < '2025-01-14 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:54:19] Production.INFO: count ==4128 [2025-01-14 18:54:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:54:05 - End Time 2025-01-14 18:54:05 [2025-01-14 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248243', 'tblTempUsageDetail_20' ) start [2025-01-14 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248243', 'tblTempUsageDetail_20' ) end [2025-01-14 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248243', 'tblTempVendorCDR_20' ) start [2025-01-14 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248243', 'tblTempVendorCDR_20' ) end [2025-01-14 18:54:20] Production.INFO: ProcessCDR(1,14248243,1,1,2) [2025-01-14 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248243', 'tblTempUsageDetail_20' ) start [2025-01-14 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248243', 'tblTempUsageDetail_20' ) end [2025-01-14 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:54:25] Production.INFO: ==22399== Releasing lock... [2025-01-14 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:54:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-14 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:55:06 [end_date_ymd] => 2025-01-14 18:55:06 [RateCDR] => 1 ) [2025-01-14 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:55:06' and `end` < '2025-01-14 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:55:19] Production.INFO: count ==4111 [2025-01-14 18:55:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:55:06 - End Time 2025-01-14 18:55:06 [2025-01-14 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248248', 'tblTempUsageDetail_20' ) start [2025-01-14 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248248', 'tblTempUsageDetail_20' ) end [2025-01-14 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248248', 'tblTempVendorCDR_20' ) start [2025-01-14 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248248', 'tblTempVendorCDR_20' ) end [2025-01-14 18:55:21] Production.INFO: ProcessCDR(1,14248248,1,1,2) [2025-01-14 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248248', 'tblTempUsageDetail_20' ) start [2025-01-14 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248248', 'tblTempUsageDetail_20' ) end [2025-01-14 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:55:24] Production.INFO: ==22470== Releasing lock... [2025-01-14 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:55:24] Production.INFO: 58.75 MB #Memory Used# [2025-01-14 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:56:05 [end_date_ymd] => 2025-01-14 18:56:05 [RateCDR] => 1 ) [2025-01-14 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:56:05' and `end` < '2025-01-14 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:56:18] Production.INFO: count ==4103 [2025-01-14 18:56:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:56:05 - End Time 2025-01-14 18:56:05 [2025-01-14 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248253', 'tblTempUsageDetail_20' ) start [2025-01-14 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248253', 'tblTempUsageDetail_20' ) end [2025-01-14 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248253', 'tblTempVendorCDR_20' ) start [2025-01-14 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248253', 'tblTempVendorCDR_20' ) end [2025-01-14 18:56:20] Production.INFO: ProcessCDR(1,14248253,1,1,2) [2025-01-14 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248253', 'tblTempUsageDetail_20' ) start [2025-01-14 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248253', 'tblTempUsageDetail_20' ) end [2025-01-14 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:56:25] Production.INFO: ==22541== Releasing lock... [2025-01-14 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:56:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-14 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:57:05 [end_date_ymd] => 2025-01-14 18:57:05 [RateCDR] => 1 ) [2025-01-14 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:57:05' and `end` < '2025-01-14 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:57:18] Production.INFO: count ==4103 [2025-01-14 18:57:19] Production.ERROR: pbx CDR StartTime 2025-01-14 15:57:05 - End Time 2025-01-14 18:57:05 [2025-01-14 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248258', 'tblTempUsageDetail_20' ) start [2025-01-14 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248258', 'tblTempUsageDetail_20' ) end [2025-01-14 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248258', 'tblTempVendorCDR_20' ) start [2025-01-14 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248258', 'tblTempVendorCDR_20' ) end [2025-01-14 18:57:20] Production.INFO: ProcessCDR(1,14248258,1,1,2) [2025-01-14 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248258', 'tblTempUsageDetail_20' ) start [2025-01-14 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248258', 'tblTempUsageDetail_20' ) end [2025-01-14 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:57:23] Production.INFO: ==22610== Releasing lock... [2025-01-14 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:57:23] Production.INFO: 58.75 MB #Memory Used# [2025-01-14 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:58:04 [end_date_ymd] => 2025-01-14 18:58:04 [RateCDR] => 1 ) [2025-01-14 18:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:58:04' and `end` < '2025-01-14 18:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:58:18] Production.INFO: count ==4062 [2025-01-14 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-14 15:58:04 - End Time 2025-01-14 18:58:04 [2025-01-14 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248263', 'tblTempUsageDetail_20' ) start [2025-01-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248263', 'tblTempUsageDetail_20' ) end [2025-01-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248263', 'tblTempVendorCDR_20' ) start [2025-01-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248263', 'tblTempVendorCDR_20' ) end [2025-01-14 18:58:19] Production.INFO: ProcessCDR(1,14248263,1,1,2) [2025-01-14 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248263', 'tblTempUsageDetail_20' ) start [2025-01-14 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248263', 'tblTempUsageDetail_20' ) end [2025-01-14 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:58:24] Production.INFO: ==22689== Releasing lock... [2025-01-14 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:58:24] Production.INFO: 58.25 MB #Memory Used# [2025-01-14 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 15:59:05 [end_date_ymd] => 2025-01-14 18:59:05 [RateCDR] => 1 ) [2025-01-14 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 15:59:05' and `end` < '2025-01-14 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 18:59:19] Production.INFO: count ==4047 [2025-01-14 18:59:20] Production.ERROR: pbx CDR StartTime 2025-01-14 15:59:05 - End Time 2025-01-14 18:59:05 [2025-01-14 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248268', 'tblTempUsageDetail_20' ) start [2025-01-14 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248268', 'tblTempUsageDetail_20' ) end [2025-01-14 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248268', 'tblTempVendorCDR_20' ) start [2025-01-14 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248268', 'tblTempVendorCDR_20' ) end [2025-01-14 18:59:20] Production.INFO: ProcessCDR(1,14248268,1,1,2) [2025-01-14 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248268', 'tblTempUsageDetail_20' ) start [2025-01-14 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248268', 'tblTempUsageDetail_20' ) end [2025-01-14 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 18:59:24] Production.INFO: ==22762== Releasing lock... [2025-01-14 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 18:59:24] Production.INFO: 58.5 MB #Memory Used# [2025-01-14 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:00:05 [end_date_ymd] => 2025-01-14 19:00:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:00:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:00:19] Production.INFO: count ==4029 [2025-01-14 19:00:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:00:05 - End Time 2025-01-14 19:00:05 [2025-01-14 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248273', 'tblTempUsageDetail_20' ) start [2025-01-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248273', 'tblTempUsageDetail_20' ) end [2025-01-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248273', 'tblTempVendorCDR_20' ) start [2025-01-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248273', 'tblTempVendorCDR_20' ) end [2025-01-14 19:00:20] Production.INFO: ProcessCDR(1,14248273,1,1,2) [2025-01-14 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248273', 'tblTempUsageDetail_20' ) start [2025-01-14 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248273', 'tblTempUsageDetail_20' ) end [2025-01-14 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:00:25] Production.INFO: ==22835== Releasing lock... [2025-01-14 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:00:25] Production.INFO: 58 MB #Memory Used# [2025-01-14 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:01:05 [end_date_ymd] => 2025-01-14 19:01:05 [RateCDR] => 1 ) [2025-01-14 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:01:05' and `end` < '2025-01-14 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:01:19] Production.INFO: count ==3980 [2025-01-14 19:01:21] Production.ERROR: pbx CDR StartTime 2025-01-14 16:01:05 - End Time 2025-01-14 19:01:05 [2025-01-14 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248279', 'tblTempUsageDetail_20' ) start [2025-01-14 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248279', 'tblTempUsageDetail_20' ) end [2025-01-14 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248279', 'tblTempVendorCDR_20' ) start [2025-01-14 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248279', 'tblTempVendorCDR_20' ) end [2025-01-14 19:01:21] Production.INFO: ProcessCDR(1,14248279,1,1,2) [2025-01-14 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248279', 'tblTempUsageDetail_20' ) start [2025-01-14 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248279', 'tblTempUsageDetail_20' ) end [2025-01-14 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:01:25] Production.INFO: ==22919== Releasing lock... [2025-01-14 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:01:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-14 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:02:05 [end_date_ymd] => 2025-01-14 19:02:05 [RateCDR] => 1 ) [2025-01-14 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:02:05' and `end` < '2025-01-14 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:02:18] Production.INFO: count ==3944 [2025-01-14 19:02:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:02:05 - End Time 2025-01-14 19:02:05 [2025-01-14 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248284', 'tblTempUsageDetail_20' ) start [2025-01-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248284', 'tblTempUsageDetail_20' ) end [2025-01-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248284', 'tblTempVendorCDR_20' ) start [2025-01-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248284', 'tblTempVendorCDR_20' ) end [2025-01-14 19:02:19] Production.INFO: ProcessCDR(1,14248284,1,1,2) [2025-01-14 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248284', 'tblTempUsageDetail_20' ) start [2025-01-14 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248284', 'tblTempUsageDetail_20' ) end [2025-01-14 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:02:23] Production.INFO: ==23068== Releasing lock... [2025-01-14 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:02:23] Production.INFO: 57.5 MB #Memory Used# [2025-01-14 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:03:05 [end_date_ymd] => 2025-01-14 19:03:05 [RateCDR] => 1 ) [2025-01-14 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:03:05' and `end` < '2025-01-14 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:03:20] Production.INFO: count ==3925 [2025-01-14 19:03:22] Production.ERROR: pbx CDR StartTime 2025-01-14 16:03:05 - End Time 2025-01-14 19:03:05 [2025-01-14 19:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248289', 'tblTempUsageDetail_20' ) start [2025-01-14 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248289', 'tblTempUsageDetail_20' ) end [2025-01-14 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248289', 'tblTempVendorCDR_20' ) start [2025-01-14 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248289', 'tblTempVendorCDR_20' ) end [2025-01-14 19:03:22] Production.INFO: ProcessCDR(1,14248289,1,1,2) [2025-01-14 19:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248289', 'tblTempUsageDetail_20' ) start [2025-01-14 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248289', 'tblTempUsageDetail_20' ) end [2025-01-14 19:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:03:27] Production.INFO: ==23139== Releasing lock... [2025-01-14 19:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:03:27] Production.INFO: 57.25 MB #Memory Used# [2025-01-14 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:04:06 [end_date_ymd] => 2025-01-14 19:04:06 [RateCDR] => 1 ) [2025-01-14 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:04:06' and `end` < '2025-01-14 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:04:19] Production.INFO: count ==3913 [2025-01-14 19:04:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:04:06 - End Time 2025-01-14 19:04:06 [2025-01-14 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248294', 'tblTempUsageDetail_20' ) start [2025-01-14 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248294', 'tblTempUsageDetail_20' ) end [2025-01-14 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248294', 'tblTempVendorCDR_20' ) start [2025-01-14 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248294', 'tblTempVendorCDR_20' ) end [2025-01-14 19:04:21] Production.INFO: ProcessCDR(1,14248294,1,1,2) [2025-01-14 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248294', 'tblTempUsageDetail_20' ) start [2025-01-14 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248294', 'tblTempUsageDetail_20' ) end [2025-01-14 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:04:24] Production.INFO: ==23210== Releasing lock... [2025-01-14 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:04:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-14 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:05:05 [end_date_ymd] => 2025-01-14 19:05:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:05:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:05:18] Production.INFO: count ==3902 [2025-01-14 19:05:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:05:05 - End Time 2025-01-14 19:05:05 [2025-01-14 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248299', 'tblTempUsageDetail_20' ) start [2025-01-14 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248299', 'tblTempUsageDetail_20' ) end [2025-01-14 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248299', 'tblTempVendorCDR_20' ) start [2025-01-14 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248299', 'tblTempVendorCDR_20' ) end [2025-01-14 19:05:20] Production.INFO: ProcessCDR(1,14248299,1,1,2) [2025-01-14 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248299', 'tblTempUsageDetail_20' ) start [2025-01-14 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248299', 'tblTempUsageDetail_20' ) end [2025-01-14 19:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:05:25] Production.INFO: ==23360== Releasing lock... [2025-01-14 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:05:25] Production.INFO: 57 MB #Memory Used# [2025-01-14 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:06:05 [end_date_ymd] => 2025-01-14 19:06:05 [RateCDR] => 1 ) [2025-01-14 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:06:05' and `end` < '2025-01-14 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:06:19] Production.INFO: count ==3886 [2025-01-14 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:06:05 - End Time 2025-01-14 19:06:05 [2025-01-14 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248304', 'tblTempUsageDetail_20' ) start [2025-01-14 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248304', 'tblTempUsageDetail_20' ) end [2025-01-14 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248304', 'tblTempVendorCDR_20' ) start [2025-01-14 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248304', 'tblTempVendorCDR_20' ) end [2025-01-14 19:06:20] Production.INFO: ProcessCDR(1,14248304,1,1,2) [2025-01-14 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248304', 'tblTempUsageDetail_20' ) start [2025-01-14 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248304', 'tblTempUsageDetail_20' ) end [2025-01-14 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:06:25] Production.INFO: ==23431== Releasing lock... [2025-01-14 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:06:25] Production.INFO: 57 MB #Memory Used# [2025-01-14 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:07:05 [end_date_ymd] => 2025-01-14 19:07:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:07:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:07:18] Production.INFO: count ==3854 [2025-01-14 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:07:05 - End Time 2025-01-14 19:07:05 [2025-01-14 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248309', 'tblTempUsageDetail_20' ) start [2025-01-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248309', 'tblTempUsageDetail_20' ) end [2025-01-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248309', 'tblTempVendorCDR_20' ) start [2025-01-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248309', 'tblTempVendorCDR_20' ) end [2025-01-14 19:07:19] Production.INFO: ProcessCDR(1,14248309,1,1,2) [2025-01-14 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248309', 'tblTempUsageDetail_20' ) start [2025-01-14 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248309', 'tblTempUsageDetail_20' ) end [2025-01-14 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:07:24] Production.INFO: ==23504== Releasing lock... [2025-01-14 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:07:24] Production.INFO: 56.75 MB #Memory Used# [2025-01-14 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:08:05 [end_date_ymd] => 2025-01-14 19:08:05 [RateCDR] => 1 ) [2025-01-14 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:08:05' and `end` < '2025-01-14 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:08:19] Production.INFO: count ==3843 [2025-01-14 19:08:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:08:05 - End Time 2025-01-14 19:08:05 [2025-01-14 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248314', 'tblTempUsageDetail_20' ) start [2025-01-14 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248314', 'tblTempUsageDetail_20' ) end [2025-01-14 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248314', 'tblTempVendorCDR_20' ) start [2025-01-14 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248314', 'tblTempVendorCDR_20' ) end [2025-01-14 19:08:20] Production.INFO: ProcessCDR(1,14248314,1,1,2) [2025-01-14 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248314', 'tblTempUsageDetail_20' ) start [2025-01-14 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248314', 'tblTempUsageDetail_20' ) end [2025-01-14 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:08:23] Production.INFO: ==23574== Releasing lock... [2025-01-14 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:08:23] Production.INFO: 57.25 MB #Memory Used# [2025-01-14 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:09:05 [end_date_ymd] => 2025-01-14 19:09:05 [RateCDR] => 1 ) [2025-01-14 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:09:05' and `end` < '2025-01-14 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:09:18] Production.INFO: count ==3827 [2025-01-14 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:09:05 - End Time 2025-01-14 19:09:05 [2025-01-14 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248319', 'tblTempUsageDetail_20' ) start [2025-01-14 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248319', 'tblTempUsageDetail_20' ) end [2025-01-14 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248319', 'tblTempVendorCDR_20' ) start [2025-01-14 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248319', 'tblTempVendorCDR_20' ) end [2025-01-14 19:09:19] Production.INFO: ProcessCDR(1,14248319,1,1,2) [2025-01-14 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248319', 'tblTempUsageDetail_20' ) start [2025-01-14 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248319', 'tblTempUsageDetail_20' ) end [2025-01-14 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:09:23] Production.INFO: ==23761== Releasing lock... [2025-01-14 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:09:23] Production.INFO: 56.75 MB #Memory Used# [2025-01-14 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:10:06 [end_date_ymd] => 2025-01-14 19:10:06 [RateCDR] => 1 ) [2025-01-14 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:10:06' and `end` < '2025-01-14 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:10:31] Production.INFO: count ==3807 [2025-01-14 19:10:32] Production.ERROR: pbx CDR StartTime 2025-01-14 16:10:06 - End Time 2025-01-14 19:10:06 [2025-01-14 19:10:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248325', 'tblTempUsageDetail_20' ) start [2025-01-14 19:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248325', 'tblTempUsageDetail_20' ) end [2025-01-14 19:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248325', 'tblTempVendorCDR_20' ) start [2025-01-14 19:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248325', 'tblTempVendorCDR_20' ) end [2025-01-14 19:10:32] Production.INFO: ProcessCDR(1,14248325,1,1,2) [2025-01-14 19:10:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:10:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:10:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:10:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248325', 'tblTempUsageDetail_20' ) start [2025-01-14 19:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248325', 'tblTempUsageDetail_20' ) end [2025-01-14 19:10:37] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:10:37] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:10:38] Production.INFO: ==23834== Releasing lock... [2025-01-14 19:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:10:38] Production.INFO: 56.75 MB #Memory Used# [2025-01-14 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:11:05 [end_date_ymd] => 2025-01-14 19:11:05 [RateCDR] => 1 ) [2025-01-14 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:11:05' and `end` < '2025-01-14 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:11:21] Production.INFO: count ==3718 [2025-01-14 19:11:23] Production.ERROR: pbx CDR StartTime 2025-01-14 16:11:05 - End Time 2025-01-14 19:11:05 [2025-01-14 19:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248330', 'tblTempUsageDetail_20' ) start [2025-01-14 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248330', 'tblTempUsageDetail_20' ) end [2025-01-14 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248330', 'tblTempVendorCDR_20' ) start [2025-01-14 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248330', 'tblTempVendorCDR_20' ) end [2025-01-14 19:11:23] Production.INFO: ProcessCDR(1,14248330,1,1,2) [2025-01-14 19:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248330', 'tblTempUsageDetail_20' ) start [2025-01-14 19:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248330', 'tblTempUsageDetail_20' ) end [2025-01-14 19:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:11:28] Production.INFO: ==23908== Releasing lock... [2025-01-14 19:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:11:28] Production.INFO: 55.75 MB #Memory Used# [2025-01-14 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:12:05 [end_date_ymd] => 2025-01-14 19:12:05 [RateCDR] => 1 ) [2025-01-14 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:12:05' and `end` < '2025-01-14 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:12:20] Production.INFO: count ==3673 [2025-01-14 19:12:22] Production.ERROR: pbx CDR StartTime 2025-01-14 16:12:05 - End Time 2025-01-14 19:12:05 [2025-01-14 19:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248335', 'tblTempUsageDetail_20' ) start [2025-01-14 19:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248335', 'tblTempUsageDetail_20' ) end [2025-01-14 19:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248335', 'tblTempVendorCDR_20' ) start [2025-01-14 19:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248335', 'tblTempVendorCDR_20' ) end [2025-01-14 19:12:22] Production.INFO: ProcessCDR(1,14248335,1,1,2) [2025-01-14 19:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248335', 'tblTempUsageDetail_20' ) start [2025-01-14 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248335', 'tblTempUsageDetail_20' ) end [2025-01-14 19:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:12:26] Production.INFO: ==24064== Releasing lock... [2025-01-14 19:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:12:26] Production.INFO: 55.75 MB #Memory Used# [2025-01-14 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:13:05 [end_date_ymd] => 2025-01-14 19:13:05 [RateCDR] => 1 ) [2025-01-14 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:13:05' and `end` < '2025-01-14 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:13:18] Production.INFO: count ==3642 [2025-01-14 19:13:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:13:05 - End Time 2025-01-14 19:13:05 [2025-01-14 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248340', 'tblTempUsageDetail_20' ) start [2025-01-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248340', 'tblTempUsageDetail_20' ) end [2025-01-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248340', 'tblTempVendorCDR_20' ) start [2025-01-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248340', 'tblTempVendorCDR_20' ) end [2025-01-14 19:13:19] Production.INFO: ProcessCDR(1,14248340,1,1,2) [2025-01-14 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248340', 'tblTempUsageDetail_20' ) start [2025-01-14 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248340', 'tblTempUsageDetail_20' ) end [2025-01-14 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:13:22] Production.INFO: ==24134== Releasing lock... [2025-01-14 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:13:22] Production.INFO: 55.75 MB #Memory Used# [2025-01-14 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:14:05 [end_date_ymd] => 2025-01-14 19:14:05 [RateCDR] => 1 ) [2025-01-14 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:14:05' and `end` < '2025-01-14 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:14:19] Production.INFO: count ==3632 [2025-01-14 19:14:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:14:05 - End Time 2025-01-14 19:14:05 [2025-01-14 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248345', 'tblTempUsageDetail_20' ) start [2025-01-14 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248345', 'tblTempUsageDetail_20' ) end [2025-01-14 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248345', 'tblTempVendorCDR_20' ) start [2025-01-14 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248345', 'tblTempVendorCDR_20' ) end [2025-01-14 19:14:20] Production.INFO: ProcessCDR(1,14248345,1,1,2) [2025-01-14 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248345', 'tblTempUsageDetail_20' ) start [2025-01-14 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248345', 'tblTempUsageDetail_20' ) end [2025-01-14 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:14:24] Production.INFO: ==24205== Releasing lock... [2025-01-14 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:14:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-14 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:15:05 [end_date_ymd] => 2025-01-14 19:15:05 [RateCDR] => 1 ) [2025-01-14 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:15:05' and `end` < '2025-01-14 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:15:18] Production.INFO: count ==3625 [2025-01-14 19:15:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:15:05 - End Time 2025-01-14 19:15:05 [2025-01-14 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248350', 'tblTempUsageDetail_20' ) start [2025-01-14 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248350', 'tblTempUsageDetail_20' ) end [2025-01-14 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248350', 'tblTempVendorCDR_20' ) start [2025-01-14 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248350', 'tblTempVendorCDR_20' ) end [2025-01-14 19:15:20] Production.INFO: ProcessCDR(1,14248350,1,1,2) [2025-01-14 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248350', 'tblTempUsageDetail_20' ) start [2025-01-14 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248350', 'tblTempUsageDetail_20' ) end [2025-01-14 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:15:23] Production.INFO: ==24315== Releasing lock... [2025-01-14 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:15:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-14 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:16:05 [end_date_ymd] => 2025-01-14 19:16:05 [RateCDR] => 1 ) [2025-01-14 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:16:05' and `end` < '2025-01-14 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:16:18] Production.INFO: count ==3602 [2025-01-14 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:16:05 - End Time 2025-01-14 19:16:05 [2025-01-14 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248355', 'tblTempUsageDetail_20' ) start [2025-01-14 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248355', 'tblTempUsageDetail_20' ) end [2025-01-14 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248355', 'tblTempVendorCDR_20' ) start [2025-01-14 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248355', 'tblTempVendorCDR_20' ) end [2025-01-14 19:16:19] Production.INFO: ProcessCDR(1,14248355,1,1,2) [2025-01-14 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248355', 'tblTempUsageDetail_20' ) start [2025-01-14 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248355', 'tblTempUsageDetail_20' ) end [2025-01-14 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:16:24] Production.INFO: ==24425== Releasing lock... [2025-01-14 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:16:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-14 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:17:06 [end_date_ymd] => 2025-01-14 19:17:06 [RateCDR] => 1 ) [2025-01-14 19:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:17:06' and `end` < '2025-01-14 19:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:17:19] Production.INFO: count ==3594 [2025-01-14 19:17:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:17:06 - End Time 2025-01-14 19:17:06 [2025-01-14 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248360', 'tblTempUsageDetail_20' ) start [2025-01-14 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248360', 'tblTempUsageDetail_20' ) end [2025-01-14 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248360', 'tblTempVendorCDR_20' ) start [2025-01-14 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248360', 'tblTempVendorCDR_20' ) end [2025-01-14 19:17:20] Production.INFO: ProcessCDR(1,14248360,1,1,2) [2025-01-14 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248360', 'tblTempUsageDetail_20' ) start [2025-01-14 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248360', 'tblTempUsageDetail_20' ) end [2025-01-14 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:17:24] Production.INFO: ==24496== Releasing lock... [2025-01-14 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:17:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-14 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:18:05 [end_date_ymd] => 2025-01-14 19:18:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:18:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:18:18] Production.INFO: count ==3590 [2025-01-14 19:18:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:18:05 - End Time 2025-01-14 19:18:05 [2025-01-14 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248365', 'tblTempUsageDetail_20' ) start [2025-01-14 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248365', 'tblTempUsageDetail_20' ) end [2025-01-14 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248365', 'tblTempVendorCDR_20' ) start [2025-01-14 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248365', 'tblTempVendorCDR_20' ) end [2025-01-14 19:18:19] Production.INFO: ProcessCDR(1,14248365,1,1,2) [2025-01-14 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248365', 'tblTempUsageDetail_20' ) start [2025-01-14 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248365', 'tblTempUsageDetail_20' ) end [2025-01-14 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:18:24] Production.INFO: ==24575== Releasing lock... [2025-01-14 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:18:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-14 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:19:05 [end_date_ymd] => 2025-01-14 19:19:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:19:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:19:19] Production.INFO: count ==3570 [2025-01-14 19:19:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:19:05 - End Time 2025-01-14 19:19:05 [2025-01-14 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248370', 'tblTempUsageDetail_20' ) start [2025-01-14 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248370', 'tblTempUsageDetail_20' ) end [2025-01-14 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248370', 'tblTempVendorCDR_20' ) start [2025-01-14 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248370', 'tblTempVendorCDR_20' ) end [2025-01-14 19:19:20] Production.INFO: ProcessCDR(1,14248370,1,1,2) [2025-01-14 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248370', 'tblTempUsageDetail_20' ) start [2025-01-14 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248370', 'tblTempUsageDetail_20' ) end [2025-01-14 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:19:24] Production.INFO: ==24650== Releasing lock... [2025-01-14 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:19:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-14 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:20:06 [end_date_ymd] => 2025-01-14 19:20:06 [RateCDR] => 1 ) [2025-01-14 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:20:06' and `end` < '2025-01-14 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:20:19] Production.INFO: count ==3532 [2025-01-14 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:20:06 - End Time 2025-01-14 19:20:06 [2025-01-14 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248376', 'tblTempUsageDetail_20' ) start [2025-01-14 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248376', 'tblTempUsageDetail_20' ) end [2025-01-14 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248376', 'tblTempVendorCDR_20' ) start [2025-01-14 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248376', 'tblTempVendorCDR_20' ) end [2025-01-14 19:20:20] Production.INFO: ProcessCDR(1,14248376,1,1,2) [2025-01-14 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248376', 'tblTempUsageDetail_20' ) start [2025-01-14 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248376', 'tblTempUsageDetail_20' ) end [2025-01-14 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:20:25] Production.INFO: ==24723== Releasing lock... [2025-01-14 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:20:25] Production.INFO: 54.75 MB #Memory Used# [2025-01-14 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:21:05 [end_date_ymd] => 2025-01-14 19:21:05 [RateCDR] => 1 ) [2025-01-14 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:21:05' and `end` < '2025-01-14 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:21:18] Production.INFO: count ==3435 [2025-01-14 19:21:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:21:05 - End Time 2025-01-14 19:21:05 [2025-01-14 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248381', 'tblTempUsageDetail_20' ) start [2025-01-14 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248381', 'tblTempUsageDetail_20' ) end [2025-01-14 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248381', 'tblTempVendorCDR_20' ) start [2025-01-14 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248381', 'tblTempVendorCDR_20' ) end [2025-01-14 19:21:20] Production.INFO: ProcessCDR(1,14248381,1,1,2) [2025-01-14 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248381', 'tblTempUsageDetail_20' ) start [2025-01-14 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248381', 'tblTempUsageDetail_20' ) end [2025-01-14 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:21:24] Production.INFO: ==24800== Releasing lock... [2025-01-14 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:21:24] Production.INFO: 54 MB #Memory Used# [2025-01-14 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:22:05 [end_date_ymd] => 2025-01-14 19:22:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:22:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:22:18] Production.INFO: count ==3408 [2025-01-14 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:22:05 - End Time 2025-01-14 19:22:05 [2025-01-14 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248386', 'tblTempUsageDetail_20' ) start [2025-01-14 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248386', 'tblTempUsageDetail_20' ) end [2025-01-14 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248386', 'tblTempVendorCDR_20' ) start [2025-01-14 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248386', 'tblTempVendorCDR_20' ) end [2025-01-14 19:22:19] Production.INFO: ProcessCDR(1,14248386,1,1,2) [2025-01-14 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248386', 'tblTempUsageDetail_20' ) start [2025-01-14 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248386', 'tblTempUsageDetail_20' ) end [2025-01-14 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:22:24] Production.INFO: ==24886== Releasing lock... [2025-01-14 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:22:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-14 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:23:05 [end_date_ymd] => 2025-01-14 19:23:05 [RateCDR] => 1 ) [2025-01-14 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:23:05' and `end` < '2025-01-14 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:23:18] Production.INFO: count ==3377 [2025-01-14 19:23:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:23:05 - End Time 2025-01-14 19:23:05 [2025-01-14 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248391', 'tblTempUsageDetail_20' ) start [2025-01-14 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248391', 'tblTempUsageDetail_20' ) end [2025-01-14 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248391', 'tblTempVendorCDR_20' ) start [2025-01-14 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248391', 'tblTempVendorCDR_20' ) end [2025-01-14 19:23:20] Production.INFO: ProcessCDR(1,14248391,1,1,2) [2025-01-14 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248391', 'tblTempUsageDetail_20' ) start [2025-01-14 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248391', 'tblTempUsageDetail_20' ) end [2025-01-14 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:23:25] Production.INFO: ==24964== Releasing lock... [2025-01-14 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:23:25] Production.INFO: 53.25 MB #Memory Used# [2025-01-14 19:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:24:04 [end_date_ymd] => 2025-01-14 19:24:04 [RateCDR] => 1 ) [2025-01-14 19:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:24:04' and `end` < '2025-01-14 19:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:24:17] Production.INFO: count ==3370 [2025-01-14 19:24:18] Production.ERROR: pbx CDR StartTime 2025-01-14 16:24:04 - End Time 2025-01-14 19:24:04 [2025-01-14 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248396', 'tblTempUsageDetail_20' ) start [2025-01-14 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248396', 'tblTempUsageDetail_20' ) end [2025-01-14 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248396', 'tblTempVendorCDR_20' ) start [2025-01-14 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248396', 'tblTempVendorCDR_20' ) end [2025-01-14 19:24:19] Production.INFO: ProcessCDR(1,14248396,1,1,2) [2025-01-14 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248396', 'tblTempUsageDetail_20' ) start [2025-01-14 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248396', 'tblTempUsageDetail_20' ) end [2025-01-14 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:24:22] Production.INFO: ==25081== Releasing lock... [2025-01-14 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:24:22] Production.INFO: 53.25 MB #Memory Used# [2025-01-14 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:25:05 [end_date_ymd] => 2025-01-14 19:25:05 [RateCDR] => 1 ) [2025-01-14 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:25:05' and `end` < '2025-01-14 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:25:18] Production.INFO: count ==3361 [2025-01-14 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:25:05 - End Time 2025-01-14 19:25:05 [2025-01-14 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248401', 'tblTempUsageDetail_20' ) start [2025-01-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248401', 'tblTempUsageDetail_20' ) end [2025-01-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248401', 'tblTempVendorCDR_20' ) start [2025-01-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248401', 'tblTempVendorCDR_20' ) end [2025-01-14 19:25:19] Production.INFO: ProcessCDR(1,14248401,1,1,2) [2025-01-14 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248401', 'tblTempUsageDetail_20' ) start [2025-01-14 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248401', 'tblTempUsageDetail_20' ) end [2025-01-14 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:25:24] Production.INFO: ==25158== Releasing lock... [2025-01-14 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:25:24] Production.INFO: 53 MB #Memory Used# [2025-01-14 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:26:05 [end_date_ymd] => 2025-01-14 19:26:05 [RateCDR] => 1 ) [2025-01-14 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:26:05' and `end` < '2025-01-14 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:26:20] Production.INFO: count ==3359 [2025-01-14 19:26:21] Production.ERROR: pbx CDR StartTime 2025-01-14 16:26:05 - End Time 2025-01-14 19:26:05 [2025-01-14 19:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248406', 'tblTempUsageDetail_20' ) start [2025-01-14 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248406', 'tblTempUsageDetail_20' ) end [2025-01-14 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248406', 'tblTempVendorCDR_20' ) start [2025-01-14 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248406', 'tblTempVendorCDR_20' ) end [2025-01-14 19:26:21] Production.INFO: ProcessCDR(1,14248406,1,1,2) [2025-01-14 19:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248406', 'tblTempUsageDetail_20' ) start [2025-01-14 19:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248406', 'tblTempUsageDetail_20' ) end [2025-01-14 19:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:26:26] Production.INFO: ==25239== Releasing lock... [2025-01-14 19:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:26:26] Production.INFO: 53.25 MB #Memory Used# [2025-01-14 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:27:05 [end_date_ymd] => 2025-01-14 19:27:05 [RateCDR] => 1 ) [2025-01-14 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:27:05' and `end` < '2025-01-14 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:27:18] Production.INFO: count ==3356 [2025-01-14 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:27:05 - End Time 2025-01-14 19:27:05 [2025-01-14 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248411', 'tblTempUsageDetail_20' ) start [2025-01-14 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248411', 'tblTempUsageDetail_20' ) end [2025-01-14 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248411', 'tblTempVendorCDR_20' ) start [2025-01-14 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248411', 'tblTempVendorCDR_20' ) end [2025-01-14 19:27:19] Production.INFO: ProcessCDR(1,14248411,1,1,2) [2025-01-14 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248411', 'tblTempUsageDetail_20' ) start [2025-01-14 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248411', 'tblTempUsageDetail_20' ) end [2025-01-14 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:27:24] Production.INFO: ==25322== Releasing lock... [2025-01-14 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:27:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-14 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:28:05 [end_date_ymd] => 2025-01-14 19:28:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:28:05' and `end` < '2025-01-14 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:28:18] Production.INFO: count ==3327 [2025-01-14 19:28:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:28:05 - End Time 2025-01-14 19:28:05 [2025-01-14 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248416', 'tblTempUsageDetail_20' ) start [2025-01-14 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248416', 'tblTempUsageDetail_20' ) end [2025-01-14 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248416', 'tblTempVendorCDR_20' ) start [2025-01-14 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248416', 'tblTempVendorCDR_20' ) end [2025-01-14 19:28:20] Production.INFO: ProcessCDR(1,14248416,1,1,2) [2025-01-14 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248416', 'tblTempUsageDetail_20' ) start [2025-01-14 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248416', 'tblTempUsageDetail_20' ) end [2025-01-14 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:28:24] Production.INFO: ==25394== Releasing lock... [2025-01-14 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:28:24] Production.INFO: 53 MB #Memory Used# [2025-01-14 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:29:05 [end_date_ymd] => 2025-01-14 19:29:05 [RateCDR] => 1 ) [2025-01-14 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:29:05' and `end` < '2025-01-14 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:29:19] Production.INFO: count ==3319 [2025-01-14 19:29:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:29:05 - End Time 2025-01-14 19:29:05 [2025-01-14 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248421', 'tblTempUsageDetail_20' ) start [2025-01-14 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248421', 'tblTempUsageDetail_20' ) end [2025-01-14 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248421', 'tblTempVendorCDR_20' ) start [2025-01-14 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248421', 'tblTempVendorCDR_20' ) end [2025-01-14 19:29:20] Production.INFO: ProcessCDR(1,14248421,1,1,2) [2025-01-14 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248421', 'tblTempUsageDetail_20' ) start [2025-01-14 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248421', 'tblTempUsageDetail_20' ) end [2025-01-14 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:29:23] Production.INFO: ==25470== Releasing lock... [2025-01-14 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:29:23] Production.INFO: 53.25 MB #Memory Used# [2025-01-14 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:30:05 [end_date_ymd] => 2025-01-14 19:30:05 [RateCDR] => 1 ) [2025-01-14 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:30:05' and `end` < '2025-01-14 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:30:18] Production.INFO: count ==3308 [2025-01-14 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:30:05 - End Time 2025-01-14 19:30:05 [2025-01-14 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248426', 'tblTempUsageDetail_20' ) start [2025-01-14 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248426', 'tblTempUsageDetail_20' ) end [2025-01-14 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248426', 'tblTempVendorCDR_20' ) start [2025-01-14 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248426', 'tblTempVendorCDR_20' ) end [2025-01-14 19:30:19] Production.INFO: ProcessCDR(1,14248426,1,1,2) [2025-01-14 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248426', 'tblTempUsageDetail_20' ) start [2025-01-14 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248426', 'tblTempUsageDetail_20' ) end [2025-01-14 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:30:23] Production.INFO: ==25552== Releasing lock... [2025-01-14 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:30:23] Production.INFO: 53.5 MB #Memory Used# [2025-01-14 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:31:04 [end_date_ymd] => 2025-01-14 19:31:04 [RateCDR] => 1 ) [2025-01-14 19:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:31:04' and `end` < '2025-01-14 19:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:31:17] Production.INFO: count ==3212 [2025-01-14 19:31:18] Production.ERROR: pbx CDR StartTime 2025-01-14 16:31:04 - End Time 2025-01-14 19:31:04 [2025-01-14 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248432', 'tblTempUsageDetail_20' ) start [2025-01-14 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248432', 'tblTempUsageDetail_20' ) end [2025-01-14 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248432', 'tblTempVendorCDR_20' ) start [2025-01-14 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248432', 'tblTempVendorCDR_20' ) end [2025-01-14 19:31:19] Production.INFO: ProcessCDR(1,14248432,1,1,2) [2025-01-14 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248432', 'tblTempUsageDetail_20' ) start [2025-01-14 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248432', 'tblTempUsageDetail_20' ) end [2025-01-14 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:31:22] Production.INFO: ==25631== Releasing lock... [2025-01-14 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:31:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-14 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:32:05 [end_date_ymd] => 2025-01-14 19:32:05 [RateCDR] => 1 ) [2025-01-14 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:32:05' and `end` < '2025-01-14 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:32:18] Production.INFO: count ==3174 [2025-01-14 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:32:05 - End Time 2025-01-14 19:32:05 [2025-01-14 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248437', 'tblTempUsageDetail_20' ) start [2025-01-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248437', 'tblTempUsageDetail_20' ) end [2025-01-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248437', 'tblTempVendorCDR_20' ) start [2025-01-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248437', 'tblTempVendorCDR_20' ) end [2025-01-14 19:32:19] Production.INFO: ProcessCDR(1,14248437,1,1,2) [2025-01-14 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248437', 'tblTempUsageDetail_20' ) start [2025-01-14 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248437', 'tblTempUsageDetail_20' ) end [2025-01-14 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:32:23] Production.INFO: ==25709== Releasing lock... [2025-01-14 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:32:23] Production.INFO: 52 MB #Memory Used# [2025-01-14 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:33:05 [end_date_ymd] => 2025-01-14 19:33:05 [RateCDR] => 1 ) [2025-01-14 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:33:05' and `end` < '2025-01-14 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:33:18] Production.INFO: count ==3162 [2025-01-14 19:33:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:33:05 - End Time 2025-01-14 19:33:05 [2025-01-14 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248442', 'tblTempUsageDetail_20' ) start [2025-01-14 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248442', 'tblTempUsageDetail_20' ) end [2025-01-14 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248442', 'tblTempVendorCDR_20' ) start [2025-01-14 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248442', 'tblTempVendorCDR_20' ) end [2025-01-14 19:33:19] Production.INFO: ProcessCDR(1,14248442,1,1,2) [2025-01-14 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248442', 'tblTempUsageDetail_20' ) start [2025-01-14 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248442', 'tblTempUsageDetail_20' ) end [2025-01-14 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:33:22] Production.INFO: ==25786== Releasing lock... [2025-01-14 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:33:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-14 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:34:05 [end_date_ymd] => 2025-01-14 19:34:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:34:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:34:18] Production.INFO: count ==3160 [2025-01-14 19:34:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:34:05 - End Time 2025-01-14 19:34:05 [2025-01-14 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248447', 'tblTempUsageDetail_20' ) start [2025-01-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248447', 'tblTempUsageDetail_20' ) end [2025-01-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248447', 'tblTempVendorCDR_20' ) start [2025-01-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248447', 'tblTempVendorCDR_20' ) end [2025-01-14 19:34:19] Production.INFO: ProcessCDR(1,14248447,1,1,2) [2025-01-14 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248447', 'tblTempUsageDetail_20' ) start [2025-01-14 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248447', 'tblTempUsageDetail_20' ) end [2025-01-14 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:34:23] Production.INFO: ==25864== Releasing lock... [2025-01-14 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:34:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-14 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:35:05 [end_date_ymd] => 2025-01-14 19:35:05 [RateCDR] => 1 ) [2025-01-14 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:35:05' and `end` < '2025-01-14 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:35:18] Production.INFO: count ==3149 [2025-01-14 19:35:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:35:05 - End Time 2025-01-14 19:35:05 [2025-01-14 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248452', 'tblTempUsageDetail_20' ) start [2025-01-14 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248452', 'tblTempUsageDetail_20' ) end [2025-01-14 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248452', 'tblTempVendorCDR_20' ) start [2025-01-14 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248452', 'tblTempVendorCDR_20' ) end [2025-01-14 19:35:19] Production.INFO: ProcessCDR(1,14248452,1,1,2) [2025-01-14 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248452', 'tblTempUsageDetail_20' ) start [2025-01-14 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248452', 'tblTempUsageDetail_20' ) end [2025-01-14 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:35:23] Production.INFO: ==25941== Releasing lock... [2025-01-14 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:35:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-14 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:36:05 [end_date_ymd] => 2025-01-14 19:36:05 [RateCDR] => 1 ) [2025-01-14 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:36:05' and `end` < '2025-01-14 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:36:18] Production.INFO: count ==3137 [2025-01-14 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:36:05 - End Time 2025-01-14 19:36:05 [2025-01-14 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248457', 'tblTempUsageDetail_20' ) start [2025-01-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248457', 'tblTempUsageDetail_20' ) end [2025-01-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248457', 'tblTempVendorCDR_20' ) start [2025-01-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248457', 'tblTempVendorCDR_20' ) end [2025-01-14 19:36:19] Production.INFO: ProcessCDR(1,14248457,1,1,2) [2025-01-14 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248457', 'tblTempUsageDetail_20' ) start [2025-01-14 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248457', 'tblTempUsageDetail_20' ) end [2025-01-14 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:36:24] Production.INFO: ==26020== Releasing lock... [2025-01-14 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:36:24] Production.INFO: 52 MB #Memory Used# [2025-01-14 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:37:05 [end_date_ymd] => 2025-01-14 19:37:05 [RateCDR] => 1 ) [2025-01-14 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:37:05' and `end` < '2025-01-14 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:37:18] Production.INFO: count ==3113 [2025-01-14 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:37:05 - End Time 2025-01-14 19:37:05 [2025-01-14 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248462', 'tblTempUsageDetail_20' ) start [2025-01-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248462', 'tblTempUsageDetail_20' ) end [2025-01-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248462', 'tblTempVendorCDR_20' ) start [2025-01-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248462', 'tblTempVendorCDR_20' ) end [2025-01-14 19:37:19] Production.INFO: ProcessCDR(1,14248462,1,1,2) [2025-01-14 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248462', 'tblTempUsageDetail_20' ) start [2025-01-14 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248462', 'tblTempUsageDetail_20' ) end [2025-01-14 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:37:22] Production.INFO: ==26102== Releasing lock... [2025-01-14 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:37:22] Production.INFO: 51.25 MB #Memory Used# [2025-01-14 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:38:05 [end_date_ymd] => 2025-01-14 19:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:38:19] Production.INFO: count ==3080 [2025-01-14 19:38:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:38:05 - End Time 2025-01-14 19:38:05 [2025-01-14 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248467', 'tblTempUsageDetail_20' ) start [2025-01-14 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248467', 'tblTempUsageDetail_20' ) end [2025-01-14 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248467', 'tblTempVendorCDR_20' ) start [2025-01-14 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248467', 'tblTempVendorCDR_20' ) end [2025-01-14 19:38:20] Production.INFO: ProcessCDR(1,14248467,1,1,2) [2025-01-14 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248467', 'tblTempUsageDetail_20' ) start [2025-01-14 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248467', 'tblTempUsageDetail_20' ) end [2025-01-14 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:38:23] Production.INFO: ==26180== Releasing lock... [2025-01-14 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:38:23] Production.INFO: 51.25 MB #Memory Used# [2025-01-14 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:39:05 [end_date_ymd] => 2025-01-14 19:39:05 [RateCDR] => 1 ) [2025-01-14 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:39:05' and `end` < '2025-01-14 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:39:18] Production.INFO: count ==3067 [2025-01-14 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:39:05 - End Time 2025-01-14 19:39:05 [2025-01-14 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248472', 'tblTempUsageDetail_20' ) start [2025-01-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248472', 'tblTempUsageDetail_20' ) end [2025-01-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248472', 'tblTempVendorCDR_20' ) start [2025-01-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248472', 'tblTempVendorCDR_20' ) end [2025-01-14 19:39:19] Production.INFO: ProcessCDR(1,14248472,1,1,2) [2025-01-14 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248472', 'tblTempUsageDetail_20' ) start [2025-01-14 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248472', 'tblTempUsageDetail_20' ) end [2025-01-14 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:39:22] Production.INFO: ==26257== Releasing lock... [2025-01-14 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:39:22] Production.INFO: 50.75 MB #Memory Used# [2025-01-14 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:40:05 [end_date_ymd] => 2025-01-14 19:40:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:40:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:40:18] Production.INFO: count ==3063 [2025-01-14 19:40:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:40:05 - End Time 2025-01-14 19:40:05 [2025-01-14 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248477', 'tblTempUsageDetail_20' ) start [2025-01-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248477', 'tblTempUsageDetail_20' ) end [2025-01-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248477', 'tblTempVendorCDR_20' ) start [2025-01-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248477', 'tblTempVendorCDR_20' ) end [2025-01-14 19:40:19] Production.INFO: ProcessCDR(1,14248477,1,1,2) [2025-01-14 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248477', 'tblTempUsageDetail_20' ) start [2025-01-14 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248477', 'tblTempUsageDetail_20' ) end [2025-01-14 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:40:24] Production.INFO: ==26379== Releasing lock... [2025-01-14 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:40:24] Production.INFO: 51 MB #Memory Used# [2025-01-14 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:41:05 [end_date_ymd] => 2025-01-14 19:41:05 [RateCDR] => 1 ) [2025-01-14 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:41:05' and `end` < '2025-01-14 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:41:18] Production.INFO: count ==2969 [2025-01-14 19:41:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:41:05 - End Time 2025-01-14 19:41:05 [2025-01-14 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248483', 'tblTempUsageDetail_20' ) start [2025-01-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248483', 'tblTempUsageDetail_20' ) end [2025-01-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248483', 'tblTempVendorCDR_20' ) start [2025-01-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248483', 'tblTempVendorCDR_20' ) end [2025-01-14 19:41:19] Production.INFO: ProcessCDR(1,14248483,1,1,2) [2025-01-14 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248483', 'tblTempUsageDetail_20' ) start [2025-01-14 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248483', 'tblTempUsageDetail_20' ) end [2025-01-14 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:41:23] Production.INFO: ==26462== Releasing lock... [2025-01-14 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:41:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-14 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:42:05 [end_date_ymd] => 2025-01-14 19:42:05 [RateCDR] => 1 ) [2025-01-14 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:42:05' and `end` < '2025-01-14 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:42:18] Production.INFO: count ==2964 [2025-01-14 19:42:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:42:05 - End Time 2025-01-14 19:42:05 [2025-01-14 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248488', 'tblTempUsageDetail_20' ) start [2025-01-14 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248488', 'tblTempUsageDetail_20' ) end [2025-01-14 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248488', 'tblTempVendorCDR_20' ) start [2025-01-14 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248488', 'tblTempVendorCDR_20' ) end [2025-01-14 19:42:19] Production.INFO: ProcessCDR(1,14248488,1,1,2) [2025-01-14 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248488', 'tblTempUsageDetail_20' ) start [2025-01-14 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248488', 'tblTempUsageDetail_20' ) end [2025-01-14 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:42:23] Production.INFO: ==26554== Releasing lock... [2025-01-14 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:42:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-14 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:43:05 [end_date_ymd] => 2025-01-14 19:43:05 [RateCDR] => 1 ) [2025-01-14 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:43:05' and `end` < '2025-01-14 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:43:18] Production.INFO: count ==2946 [2025-01-14 19:43:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:43:05 - End Time 2025-01-14 19:43:05 [2025-01-14 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248493', 'tblTempUsageDetail_20' ) start [2025-01-14 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248493', 'tblTempUsageDetail_20' ) end [2025-01-14 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248493', 'tblTempVendorCDR_20' ) start [2025-01-14 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248493', 'tblTempVendorCDR_20' ) end [2025-01-14 19:43:19] Production.INFO: ProcessCDR(1,14248493,1,1,2) [2025-01-14 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248493', 'tblTempUsageDetail_20' ) start [2025-01-14 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248493', 'tblTempUsageDetail_20' ) end [2025-01-14 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:43:22] Production.INFO: ==26643== Releasing lock... [2025-01-14 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:43:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-14 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:44:06 [end_date_ymd] => 2025-01-14 19:44:06 [RateCDR] => 1 ) [2025-01-14 19:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:44:06' and `end` < '2025-01-14 19:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:44:19] Production.INFO: count ==2933 [2025-01-14 19:44:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:44:06 - End Time 2025-01-14 19:44:06 [2025-01-14 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248498', 'tblTempUsageDetail_20' ) start [2025-01-14 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248498', 'tblTempUsageDetail_20' ) end [2025-01-14 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248498', 'tblTempVendorCDR_20' ) start [2025-01-14 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248498', 'tblTempVendorCDR_20' ) end [2025-01-14 19:44:20] Production.INFO: ProcessCDR(1,14248498,1,1,2) [2025-01-14 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248498', 'tblTempUsageDetail_20' ) start [2025-01-14 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248498', 'tblTempUsageDetail_20' ) end [2025-01-14 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:44:23] Production.INFO: ==26736== Releasing lock... [2025-01-14 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:44:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-14 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:45:05 [end_date_ymd] => 2025-01-14 19:45:05 [RateCDR] => 1 ) [2025-01-14 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:45:05' and `end` < '2025-01-14 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:45:18] Production.INFO: count ==2928 [2025-01-14 19:45:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:45:05 - End Time 2025-01-14 19:45:05 [2025-01-14 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248503', 'tblTempUsageDetail_20' ) start [2025-01-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248503', 'tblTempUsageDetail_20' ) end [2025-01-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248503', 'tblTempVendorCDR_20' ) start [2025-01-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248503', 'tblTempVendorCDR_20' ) end [2025-01-14 19:45:19] Production.INFO: ProcessCDR(1,14248503,1,1,2) [2025-01-14 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248503', 'tblTempUsageDetail_20' ) start [2025-01-14 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248503', 'tblTempUsageDetail_20' ) end [2025-01-14 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:45:22] Production.INFO: ==26824== Releasing lock... [2025-01-14 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:45:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-14 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:46:05 [end_date_ymd] => 2025-01-14 19:46:05 [RateCDR] => 1 ) [2025-01-14 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:46:05' and `end` < '2025-01-14 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:46:18] Production.INFO: count ==2909 [2025-01-14 19:46:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:46:05 - End Time 2025-01-14 19:46:05 [2025-01-14 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248508', 'tblTempUsageDetail_20' ) start [2025-01-14 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248508', 'tblTempUsageDetail_20' ) end [2025-01-14 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248508', 'tblTempVendorCDR_20' ) start [2025-01-14 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248508', 'tblTempVendorCDR_20' ) end [2025-01-14 19:46:19] Production.INFO: ProcessCDR(1,14248508,1,1,2) [2025-01-14 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248508', 'tblTempUsageDetail_20' ) start [2025-01-14 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248508', 'tblTempUsageDetail_20' ) end [2025-01-14 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:46:23] Production.INFO: ==26910== Releasing lock... [2025-01-14 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:46:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-14 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:47:05 [end_date_ymd] => 2025-01-14 19:47:05 [RateCDR] => 1 ) [2025-01-14 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:47:05' and `end` < '2025-01-14 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:47:18] Production.INFO: count ==2902 [2025-01-14 19:47:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:47:05 - End Time 2025-01-14 19:47:05 [2025-01-14 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248513', 'tblTempUsageDetail_20' ) start [2025-01-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248513', 'tblTempUsageDetail_20' ) end [2025-01-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248513', 'tblTempVendorCDR_20' ) start [2025-01-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248513', 'tblTempVendorCDR_20' ) end [2025-01-14 19:47:19] Production.INFO: ProcessCDR(1,14248513,1,1,2) [2025-01-14 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248513', 'tblTempUsageDetail_20' ) start [2025-01-14 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248513', 'tblTempUsageDetail_20' ) end [2025-01-14 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:47:23] Production.INFO: ==27001== Releasing lock... [2025-01-14 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:47:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-14 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:48:05 [end_date_ymd] => 2025-01-14 19:48:05 [RateCDR] => 1 ) [2025-01-14 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:48:05' and `end` < '2025-01-14 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:48:18] Production.INFO: count ==2892 [2025-01-14 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:48:05 - End Time 2025-01-14 19:48:05 [2025-01-14 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248518', 'tblTempUsageDetail_20' ) start [2025-01-14 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248518', 'tblTempUsageDetail_20' ) end [2025-01-14 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248518', 'tblTempVendorCDR_20' ) start [2025-01-14 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248518', 'tblTempVendorCDR_20' ) end [2025-01-14 19:48:19] Production.INFO: ProcessCDR(1,14248518,1,1,2) [2025-01-14 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248518', 'tblTempUsageDetail_20' ) start [2025-01-14 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248518', 'tblTempUsageDetail_20' ) end [2025-01-14 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:48:23] Production.INFO: ==27090== Releasing lock... [2025-01-14 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:48:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-14 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:49:04 [end_date_ymd] => 2025-01-14 19:49:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:49:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:49:18] Production.INFO: count ==2847 [2025-01-14 19:49:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:49:04 - End Time 2025-01-14 19:49:04 [2025-01-14 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248523', 'tblTempUsageDetail_20' ) start [2025-01-14 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248523', 'tblTempUsageDetail_20' ) end [2025-01-14 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248523', 'tblTempVendorCDR_20' ) start [2025-01-14 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248523', 'tblTempVendorCDR_20' ) end [2025-01-14 19:49:19] Production.INFO: ProcessCDR(1,14248523,1,1,2) [2025-01-14 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248523', 'tblTempUsageDetail_20' ) start [2025-01-14 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248523', 'tblTempUsageDetail_20' ) end [2025-01-14 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:49:22] Production.INFO: ==27175== Releasing lock... [2025-01-14 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:49:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-14 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:50:06 [end_date_ymd] => 2025-01-14 19:50:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:50:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:50:18] Production.INFO: count ==2792 [2025-01-14 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:50:06 - End Time 2025-01-14 19:50:06 [2025-01-14 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248529', 'tblTempUsageDetail_20' ) start [2025-01-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248529', 'tblTempUsageDetail_20' ) end [2025-01-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248529', 'tblTempVendorCDR_20' ) start [2025-01-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248529', 'tblTempVendorCDR_20' ) end [2025-01-14 19:50:19] Production.INFO: ProcessCDR(1,14248529,1,1,2) [2025-01-14 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248529', 'tblTempUsageDetail_20' ) start [2025-01-14 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248529', 'tblTempUsageDetail_20' ) end [2025-01-14 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:50:23] Production.INFO: ==27272== Releasing lock... [2025-01-14 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:50:23] Production.INFO: 49 MB #Memory Used# [2025-01-14 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:51:05 [end_date_ymd] => 2025-01-14 19:51:05 [RateCDR] => 1 ) [2025-01-14 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:51:05' and `end` < '2025-01-14 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:51:18] Production.INFO: count ==2687 [2025-01-14 19:51:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:51:05 - End Time 2025-01-14 19:51:05 [2025-01-14 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248534', 'tblTempUsageDetail_20' ) start [2025-01-14 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248534', 'tblTempUsageDetail_20' ) end [2025-01-14 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248534', 'tblTempVendorCDR_20' ) start [2025-01-14 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248534', 'tblTempVendorCDR_20' ) end [2025-01-14 19:51:19] Production.INFO: ProcessCDR(1,14248534,1,1,2) [2025-01-14 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248534', 'tblTempUsageDetail_20' ) start [2025-01-14 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248534', 'tblTempUsageDetail_20' ) end [2025-01-14 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:51:22] Production.INFO: ==27368== Releasing lock... [2025-01-14 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:51:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-14 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:52:05 [end_date_ymd] => 2025-01-14 19:52:05 [RateCDR] => 1 ) [2025-01-14 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:52:05' and `end` < '2025-01-14 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:52:18] Production.INFO: count ==2610 [2025-01-14 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:52:05 - End Time 2025-01-14 19:52:05 [2025-01-14 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248539', 'tblTempUsageDetail_20' ) start [2025-01-14 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248539', 'tblTempUsageDetail_20' ) end [2025-01-14 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248539', 'tblTempVendorCDR_20' ) start [2025-01-14 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248539', 'tblTempVendorCDR_20' ) end [2025-01-14 19:52:19] Production.INFO: ProcessCDR(1,14248539,1,1,2) [2025-01-14 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248539', 'tblTempUsageDetail_20' ) start [2025-01-14 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248539', 'tblTempUsageDetail_20' ) end [2025-01-14 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:52:22] Production.INFO: ==27456== Releasing lock... [2025-01-14 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:52:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-14 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:53:05 [end_date_ymd] => 2025-01-14 19:53:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:53:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:53:18] Production.INFO: count ==2577 [2025-01-14 19:53:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:53:05 - End Time 2025-01-14 19:53:05 [2025-01-14 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248544', 'tblTempUsageDetail_20' ) start [2025-01-14 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248544', 'tblTempUsageDetail_20' ) end [2025-01-14 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248544', 'tblTempVendorCDR_20' ) start [2025-01-14 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248544', 'tblTempVendorCDR_20' ) end [2025-01-14 19:53:19] Production.INFO: ProcessCDR(1,14248544,1,1,2) [2025-01-14 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248544', 'tblTempUsageDetail_20' ) start [2025-01-14 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248544', 'tblTempUsageDetail_20' ) end [2025-01-14 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:53:22] Production.INFO: ==27548== Releasing lock... [2025-01-14 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:53:22] Production.INFO: 47.5 MB #Memory Used# [2025-01-14 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:54:05 [end_date_ymd] => 2025-01-14 19:54:05 [RateCDR] => 1 ) [2025-01-14 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:54:05' and `end` < '2025-01-14 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:54:18] Production.INFO: count ==2520 [2025-01-14 19:54:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:54:05 - End Time 2025-01-14 19:54:05 [2025-01-14 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248549', 'tblTempUsageDetail_20' ) start [2025-01-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248549', 'tblTempUsageDetail_20' ) end [2025-01-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248549', 'tblTempVendorCDR_20' ) start [2025-01-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248549', 'tblTempVendorCDR_20' ) end [2025-01-14 19:54:19] Production.INFO: ProcessCDR(1,14248549,1,1,2) [2025-01-14 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248549', 'tblTempUsageDetail_20' ) start [2025-01-14 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248549', 'tblTempUsageDetail_20' ) end [2025-01-14 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:54:22] Production.INFO: ==27636== Releasing lock... [2025-01-14 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:54:22] Production.INFO: 47 MB #Memory Used# [2025-01-14 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:55:05 [end_date_ymd] => 2025-01-14 19:55:05 [RateCDR] => 1 ) [2025-01-14 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:55:05' and `end` < '2025-01-14 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:55:18] Production.INFO: count ==2486 [2025-01-14 19:55:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:55:05 - End Time 2025-01-14 19:55:05 [2025-01-14 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248554', 'tblTempUsageDetail_20' ) start [2025-01-14 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248554', 'tblTempUsageDetail_20' ) end [2025-01-14 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248554', 'tblTempVendorCDR_20' ) start [2025-01-14 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248554', 'tblTempVendorCDR_20' ) end [2025-01-14 19:55:19] Production.INFO: ProcessCDR(1,14248554,1,1,2) [2025-01-14 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248554', 'tblTempUsageDetail_20' ) start [2025-01-14 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248554', 'tblTempUsageDetail_20' ) end [2025-01-14 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:55:22] Production.INFO: ==27763== Releasing lock... [2025-01-14 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:55:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-14 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:56:05 [end_date_ymd] => 2025-01-14 19:56:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:56:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:56:19] Production.INFO: count ==2446 [2025-01-14 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:56:05 - End Time 2025-01-14 19:56:05 [2025-01-14 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248559', 'tblTempUsageDetail_20' ) start [2025-01-14 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248559', 'tblTempUsageDetail_20' ) end [2025-01-14 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248559', 'tblTempVendorCDR_20' ) start [2025-01-14 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248559', 'tblTempVendorCDR_20' ) end [2025-01-14 19:56:19] Production.INFO: ProcessCDR(1,14248559,1,1,2) [2025-01-14 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248559', 'tblTempUsageDetail_20' ) start [2025-01-14 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248559', 'tblTempUsageDetail_20' ) end [2025-01-14 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:56:23] Production.INFO: ==27849== Releasing lock... [2025-01-14 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:56:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-14 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:57:05 [end_date_ymd] => 2025-01-14 19:57:05 [RateCDR] => 1 ) [2025-01-14 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:57:05' and `end` < '2025-01-14 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:57:18] Production.INFO: count ==2392 [2025-01-14 19:57:19] Production.ERROR: pbx CDR StartTime 2025-01-14 16:57:05 - End Time 2025-01-14 19:57:05 [2025-01-14 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248564', 'tblTempUsageDetail_20' ) start [2025-01-14 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248564', 'tblTempUsageDetail_20' ) end [2025-01-14 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248564', 'tblTempVendorCDR_20' ) start [2025-01-14 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248564', 'tblTempVendorCDR_20' ) end [2025-01-14 19:57:19] Production.INFO: ProcessCDR(1,14248564,1,1,2) [2025-01-14 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248564', 'tblTempUsageDetail_20' ) start [2025-01-14 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248564', 'tblTempUsageDetail_20' ) end [2025-01-14 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:57:22] Production.INFO: ==27938== Releasing lock... [2025-01-14 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:57:22] Production.INFO: 46 MB #Memory Used# [2025-01-14 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:58:05 [end_date_ymd] => 2025-01-14 19:58:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 16:58:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 19:58:17] Production.INFO: count ==2351 [2025-01-14 19:58:18] Production.ERROR: pbx CDR StartTime 2025-01-14 16:58:05 - End Time 2025-01-14 19:58:05 [2025-01-14 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248569', 'tblTempUsageDetail_20' ) start [2025-01-14 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248569', 'tblTempUsageDetail_20' ) end [2025-01-14 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248569', 'tblTempVendorCDR_20' ) start [2025-01-14 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248569', 'tblTempVendorCDR_20' ) end [2025-01-14 19:58:18] Production.INFO: ProcessCDR(1,14248569,1,1,2) [2025-01-14 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248569', 'tblTempUsageDetail_20' ) start [2025-01-14 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248569', 'tblTempUsageDetail_20' ) end [2025-01-14 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:58:23] Production.INFO: ==28022== Releasing lock... [2025-01-14 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:58:23] Production.INFO: 45.75 MB #Memory Used# [2025-01-14 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 16:59:06 [end_date_ymd] => 2025-01-14 19:59:06 [RateCDR] => 1 ) [2025-01-14 19:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 16:59:06' and `end` < '2025-01-14 19:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 19:59:19] Production.INFO: count ==2299 [2025-01-14 19:59:20] Production.ERROR: pbx CDR StartTime 2025-01-14 16:59:06 - End Time 2025-01-14 19:59:06 [2025-01-14 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248574', 'tblTempUsageDetail_20' ) start [2025-01-14 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248574', 'tblTempUsageDetail_20' ) end [2025-01-14 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248574', 'tblTempVendorCDR_20' ) start [2025-01-14 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248574', 'tblTempVendorCDR_20' ) end [2025-01-14 19:59:20] Production.INFO: ProcessCDR(1,14248574,1,1,2) [2025-01-14 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248574', 'tblTempUsageDetail_20' ) start [2025-01-14 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248574', 'tblTempUsageDetail_20' ) end [2025-01-14 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 19:59:24] Production.INFO: ==28108== Releasing lock... [2025-01-14 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 19:59:24] Production.INFO: 45.75 MB #Memory Used# [2025-01-14 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:00:05 [end_date_ymd] => 2025-01-14 20:00:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:00:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:00:18] Production.INFO: count ==2256 [2025-01-14 20:00:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:00:05 - End Time 2025-01-14 20:00:05 [2025-01-14 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248579', 'tblTempUsageDetail_20' ) start [2025-01-14 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248579', 'tblTempUsageDetail_20' ) end [2025-01-14 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248579', 'tblTempVendorCDR_20' ) start [2025-01-14 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248579', 'tblTempVendorCDR_20' ) end [2025-01-14 20:00:18] Production.INFO: ProcessCDR(1,14248579,1,1,2) [2025-01-14 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248579', 'tblTempUsageDetail_20' ) start [2025-01-14 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248579', 'tblTempUsageDetail_20' ) end [2025-01-14 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:00:22] Production.INFO: ==28193== Releasing lock... [2025-01-14 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:00:22] Production.INFO: 45 MB #Memory Used# [2025-01-14 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:01:05 [end_date_ymd] => 2025-01-14 20:01:05 [RateCDR] => 1 ) [2025-01-14 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:01:05' and `end` < '2025-01-14 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:01:18] Production.INFO: count ==2188 [2025-01-14 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:01:05 - End Time 2025-01-14 20:01:05 [2025-01-14 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248585', 'tblTempUsageDetail_20' ) start [2025-01-14 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248585', 'tblTempUsageDetail_20' ) end [2025-01-14 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248585', 'tblTempVendorCDR_20' ) start [2025-01-14 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248585', 'tblTempVendorCDR_20' ) end [2025-01-14 20:01:19] Production.INFO: ProcessCDR(1,14248585,1,1,2) [2025-01-14 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248585', 'tblTempUsageDetail_20' ) start [2025-01-14 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248585', 'tblTempUsageDetail_20' ) end [2025-01-14 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:01:24] Production.INFO: ==28330== Releasing lock... [2025-01-14 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:01:24] Production.INFO: 44.75 MB #Memory Used# [2025-01-14 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:02:06 [end_date_ymd] => 2025-01-14 20:02:06 [RateCDR] => 1 ) [2025-01-14 20:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:02:06' and `end` < '2025-01-14 20:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:02:19] Production.INFO: count ==2163 [2025-01-14 20:02:20] Production.ERROR: pbx CDR StartTime 2025-01-14 17:02:06 - End Time 2025-01-14 20:02:06 [2025-01-14 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248590', 'tblTempUsageDetail_20' ) start [2025-01-14 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248590', 'tblTempUsageDetail_20' ) end [2025-01-14 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248590', 'tblTempVendorCDR_20' ) start [2025-01-14 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248590', 'tblTempVendorCDR_20' ) end [2025-01-14 20:02:20] Production.INFO: ProcessCDR(1,14248590,1,1,2) [2025-01-14 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248590', 'tblTempUsageDetail_20' ) start [2025-01-14 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248590', 'tblTempUsageDetail_20' ) end [2025-01-14 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:02:23] Production.INFO: ==28412== Releasing lock... [2025-01-14 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:02:23] Production.INFO: 44.25 MB #Memory Used# [2025-01-14 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:03:05 [end_date_ymd] => 2025-01-14 20:03:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:03:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:03:19] Production.INFO: count ==2153 [2025-01-14 20:03:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:03:05 - End Time 2025-01-14 20:03:05 [2025-01-14 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248595', 'tblTempUsageDetail_20' ) start [2025-01-14 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248595', 'tblTempUsageDetail_20' ) end [2025-01-14 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248595', 'tblTempVendorCDR_20' ) start [2025-01-14 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248595', 'tblTempVendorCDR_20' ) end [2025-01-14 20:03:19] Production.INFO: ProcessCDR(1,14248595,1,1,2) [2025-01-14 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248595', 'tblTempUsageDetail_20' ) start [2025-01-14 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248595', 'tblTempUsageDetail_20' ) end [2025-01-14 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:03:24] Production.INFO: ==28500== Releasing lock... [2025-01-14 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:03:24] Production.INFO: 44.5 MB #Memory Used# [2025-01-14 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:04:06 [end_date_ymd] => 2025-01-14 20:04:06 [RateCDR] => 1 ) [2025-01-14 20:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:04:06' and `end` < '2025-01-14 20:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:04:18] Production.INFO: count ==2150 [2025-01-14 20:04:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:04:06 - End Time 2025-01-14 20:04:06 [2025-01-14 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248600', 'tblTempUsageDetail_20' ) start [2025-01-14 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248600', 'tblTempUsageDetail_20' ) end [2025-01-14 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248600', 'tblTempVendorCDR_20' ) start [2025-01-14 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248600', 'tblTempVendorCDR_20' ) end [2025-01-14 20:04:19] Production.INFO: ProcessCDR(1,14248600,1,1,2) [2025-01-14 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248600', 'tblTempUsageDetail_20' ) start [2025-01-14 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248600', 'tblTempUsageDetail_20' ) end [2025-01-14 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:04:22] Production.INFO: ==28584== Releasing lock... [2025-01-14 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:04:22] Production.INFO: 44 MB #Memory Used# [2025-01-14 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:05:05 [end_date_ymd] => 2025-01-14 20:05:05 [RateCDR] => 1 ) [2025-01-14 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:05:05' and `end` < '2025-01-14 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:05:17] Production.INFO: count ==2148 [2025-01-14 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:05:05 - End Time 2025-01-14 20:05:05 [2025-01-14 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248605', 'tblTempUsageDetail_20' ) start [2025-01-14 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248605', 'tblTempUsageDetail_20' ) end [2025-01-14 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248605', 'tblTempVendorCDR_20' ) start [2025-01-14 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248605', 'tblTempVendorCDR_20' ) end [2025-01-14 20:05:18] Production.INFO: ProcessCDR(1,14248605,1,1,2) [2025-01-14 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248605', 'tblTempUsageDetail_20' ) start [2025-01-14 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248605', 'tblTempUsageDetail_20' ) end [2025-01-14 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:05:22] Production.INFO: ==28666== Releasing lock... [2025-01-14 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:05:22] Production.INFO: 44 MB #Memory Used# [2025-01-14 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:06:06 [end_date_ymd] => 2025-01-14 20:06:06 [RateCDR] => 1 ) [2025-01-14 20:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:06:06' and `end` < '2025-01-14 20:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:06:18] Production.INFO: count ==2130 [2025-01-14 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:06:06 - End Time 2025-01-14 20:06:06 [2025-01-14 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248610', 'tblTempUsageDetail_20' ) start [2025-01-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248610', 'tblTempUsageDetail_20' ) end [2025-01-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248610', 'tblTempVendorCDR_20' ) start [2025-01-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248610', 'tblTempVendorCDR_20' ) end [2025-01-14 20:06:19] Production.INFO: ProcessCDR(1,14248610,1,1,2) [2025-01-14 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248610', 'tblTempUsageDetail_20' ) start [2025-01-14 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248610', 'tblTempUsageDetail_20' ) end [2025-01-14 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:06:22] Production.INFO: ==28749== Releasing lock... [2025-01-14 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:06:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-14 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:07:05 [end_date_ymd] => 2025-01-14 20:07:05 [RateCDR] => 1 ) [2025-01-14 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:07:05' and `end` < '2025-01-14 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:07:18] Production.INFO: count ==2116 [2025-01-14 20:07:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:07:05 - End Time 2025-01-14 20:07:05 [2025-01-14 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248615', 'tblTempUsageDetail_20' ) start [2025-01-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248615', 'tblTempUsageDetail_20' ) end [2025-01-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248615', 'tblTempVendorCDR_20' ) start [2025-01-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248615', 'tblTempVendorCDR_20' ) end [2025-01-14 20:07:19] Production.INFO: ProcessCDR(1,14248615,1,1,2) [2025-01-14 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248615', 'tblTempUsageDetail_20' ) start [2025-01-14 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248615', 'tblTempUsageDetail_20' ) end [2025-01-14 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:07:23] Production.INFO: ==28838== Releasing lock... [2025-01-14 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:07:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-14 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:08:05 [end_date_ymd] => 2025-01-14 20:08:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:08:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:08:19] Production.INFO: count ==2116 [2025-01-14 20:08:20] Production.ERROR: pbx CDR StartTime 2025-01-14 17:08:05 - End Time 2025-01-14 20:08:05 [2025-01-14 20:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248620', 'tblTempUsageDetail_20' ) start [2025-01-14 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248620', 'tblTempUsageDetail_20' ) end [2025-01-14 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248620', 'tblTempVendorCDR_20' ) start [2025-01-14 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248620', 'tblTempVendorCDR_20' ) end [2025-01-14 20:08:20] Production.INFO: ProcessCDR(1,14248620,1,1,2) [2025-01-14 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248620', 'tblTempUsageDetail_20' ) start [2025-01-14 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248620', 'tblTempUsageDetail_20' ) end [2025-01-14 20:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:08:25] Production.INFO: ==28921== Releasing lock... [2025-01-14 20:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:08:25] Production.INFO: 43.75 MB #Memory Used# [2025-01-14 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:09:05 [end_date_ymd] => 2025-01-14 20:09:05 [RateCDR] => 1 ) [2025-01-14 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:09:05' and `end` < '2025-01-14 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:09:18] Production.INFO: count ==2117 [2025-01-14 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:09:05 - End Time 2025-01-14 20:09:05 [2025-01-14 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248625', 'tblTempUsageDetail_20' ) start [2025-01-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248625', 'tblTempUsageDetail_20' ) end [2025-01-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248625', 'tblTempVendorCDR_20' ) start [2025-01-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248625', 'tblTempVendorCDR_20' ) end [2025-01-14 20:09:19] Production.INFO: ProcessCDR(1,14248625,1,1,2) [2025-01-14 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248625', 'tblTempUsageDetail_20' ) start [2025-01-14 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248625', 'tblTempUsageDetail_20' ) end [2025-01-14 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:09:22] Production.INFO: ==29002== Releasing lock... [2025-01-14 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:09:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-14 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:10:06 [end_date_ymd] => 2025-01-14 20:10:06 [RateCDR] => 1 ) [2025-01-14 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:10:06' and `end` < '2025-01-14 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:10:18] Production.INFO: count ==2116 [2025-01-14 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:10:06 - End Time 2025-01-14 20:10:06 [2025-01-14 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248630', 'tblTempUsageDetail_20' ) start [2025-01-14 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248630', 'tblTempUsageDetail_20' ) end [2025-01-14 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248630', 'tblTempVendorCDR_20' ) start [2025-01-14 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248630', 'tblTempVendorCDR_20' ) end [2025-01-14 20:10:19] Production.INFO: ProcessCDR(1,14248630,1,1,2) [2025-01-14 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248630', 'tblTempUsageDetail_20' ) start [2025-01-14 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248630', 'tblTempUsageDetail_20' ) end [2025-01-14 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:10:22] Production.INFO: ==29088== Releasing lock... [2025-01-14 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:10:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-14 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:11:05 [end_date_ymd] => 2025-01-14 20:11:05 [RateCDR] => 1 ) [2025-01-14 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:11:05' and `end` < '2025-01-14 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:11:18] Production.INFO: count ==2063 [2025-01-14 20:11:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:11:05 - End Time 2025-01-14 20:11:05 [2025-01-14 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248636', 'tblTempUsageDetail_20' ) start [2025-01-14 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248636', 'tblTempUsageDetail_20' ) end [2025-01-14 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248636', 'tblTempVendorCDR_20' ) start [2025-01-14 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248636', 'tblTempVendorCDR_20' ) end [2025-01-14 20:11:19] Production.INFO: ProcessCDR(1,14248636,1,1,2) [2025-01-14 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248636', 'tblTempUsageDetail_20' ) start [2025-01-14 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248636', 'tblTempUsageDetail_20' ) end [2025-01-14 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:11:23] Production.INFO: ==29214== Releasing lock... [2025-01-14 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:11:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-14 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:12:05 [end_date_ymd] => 2025-01-14 20:12:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:12:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:12:17] Production.INFO: count ==2057 [2025-01-14 20:12:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:12:05 - End Time 2025-01-14 20:12:05 [2025-01-14 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248641', 'tblTempUsageDetail_20' ) start [2025-01-14 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248641', 'tblTempUsageDetail_20' ) end [2025-01-14 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248641', 'tblTempVendorCDR_20' ) start [2025-01-14 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248641', 'tblTempVendorCDR_20' ) end [2025-01-14 20:12:18] Production.INFO: ProcessCDR(1,14248641,1,1,2) [2025-01-14 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248641', 'tblTempUsageDetail_20' ) start [2025-01-14 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248641', 'tblTempUsageDetail_20' ) end [2025-01-14 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:12:23] Production.INFO: ==29295== Releasing lock... [2025-01-14 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:12:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-14 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:13:05 [end_date_ymd] => 2025-01-14 20:13:05 [RateCDR] => 1 ) [2025-01-14 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:13:05' and `end` < '2025-01-14 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:13:18] Production.INFO: count ==2052 [2025-01-14 20:13:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:13:05 - End Time 2025-01-14 20:13:05 [2025-01-14 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248646', 'tblTempUsageDetail_20' ) start [2025-01-14 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248646', 'tblTempUsageDetail_20' ) end [2025-01-14 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248646', 'tblTempVendorCDR_20' ) start [2025-01-14 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248646', 'tblTempVendorCDR_20' ) end [2025-01-14 20:13:19] Production.INFO: ProcessCDR(1,14248646,1,1,2) [2025-01-14 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248646', 'tblTempUsageDetail_20' ) start [2025-01-14 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248646', 'tblTempUsageDetail_20' ) end [2025-01-14 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:13:24] Production.INFO: ==29377== Releasing lock... [2025-01-14 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:13:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-14 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:14:05 [end_date_ymd] => 2025-01-14 20:14:05 [RateCDR] => 1 ) [2025-01-14 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:14:05' and `end` < '2025-01-14 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:14:17] Production.INFO: count ==2048 [2025-01-14 20:14:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:14:05 - End Time 2025-01-14 20:14:05 [2025-01-14 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248651', 'tblTempUsageDetail_20' ) start [2025-01-14 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248651', 'tblTempUsageDetail_20' ) end [2025-01-14 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248651', 'tblTempVendorCDR_20' ) start [2025-01-14 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248651', 'tblTempVendorCDR_20' ) end [2025-01-14 20:14:18] Production.INFO: ProcessCDR(1,14248651,1,1,2) [2025-01-14 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248651', 'tblTempUsageDetail_20' ) start [2025-01-14 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248651', 'tblTempUsageDetail_20' ) end [2025-01-14 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:14:23] Production.INFO: ==29461== Releasing lock... [2025-01-14 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:14:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-14 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:15:05 [end_date_ymd] => 2025-01-14 20:15:05 [RateCDR] => 1 ) [2025-01-14 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:15:05' and `end` < '2025-01-14 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:15:18] Production.INFO: count ==2040 [2025-01-14 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:15:05 - End Time 2025-01-14 20:15:05 [2025-01-14 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248656', 'tblTempUsageDetail_20' ) start [2025-01-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248656', 'tblTempUsageDetail_20' ) end [2025-01-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248656', 'tblTempVendorCDR_20' ) start [2025-01-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248656', 'tblTempVendorCDR_20' ) end [2025-01-14 20:15:18] Production.INFO: ProcessCDR(1,14248656,1,1,2) [2025-01-14 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248656', 'tblTempUsageDetail_20' ) start [2025-01-14 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248656', 'tblTempUsageDetail_20' ) end [2025-01-14 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:15:23] Production.INFO: ==29546== Releasing lock... [2025-01-14 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:15:23] Production.INFO: 43 MB #Memory Used# [2025-01-14 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:16:05 [end_date_ymd] => 2025-01-14 20:16:05 [RateCDR] => 1 ) [2025-01-14 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:16:05' and `end` < '2025-01-14 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:16:18] Production.INFO: count ==2026 [2025-01-14 20:16:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:16:05 - End Time 2025-01-14 20:16:05 [2025-01-14 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248661', 'tblTempUsageDetail_20' ) start [2025-01-14 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248661', 'tblTempUsageDetail_20' ) end [2025-01-14 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248661', 'tblTempVendorCDR_20' ) start [2025-01-14 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248661', 'tblTempVendorCDR_20' ) end [2025-01-14 20:16:18] Production.INFO: ProcessCDR(1,14248661,1,1,2) [2025-01-14 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248661', 'tblTempUsageDetail_20' ) start [2025-01-14 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248661', 'tblTempUsageDetail_20' ) end [2025-01-14 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:16:22] Production.INFO: ==29630== Releasing lock... [2025-01-14 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:16:22] Production.INFO: 43 MB #Memory Used# [2025-01-14 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:17:05 [end_date_ymd] => 2025-01-14 20:17:05 [RateCDR] => 1 ) [2025-01-14 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:17:05' and `end` < '2025-01-14 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:17:18] Production.INFO: count ==2021 [2025-01-14 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:17:05 - End Time 2025-01-14 20:17:05 [2025-01-14 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248666', 'tblTempUsageDetail_20' ) start [2025-01-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248666', 'tblTempUsageDetail_20' ) end [2025-01-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248666', 'tblTempVendorCDR_20' ) start [2025-01-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248666', 'tblTempVendorCDR_20' ) end [2025-01-14 20:17:18] Production.INFO: ProcessCDR(1,14248666,1,1,2) [2025-01-14 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248666', 'tblTempUsageDetail_20' ) start [2025-01-14 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248666', 'tblTempUsageDetail_20' ) end [2025-01-14 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:17:22] Production.INFO: ==29717== Releasing lock... [2025-01-14 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:17:22] Production.INFO: 43 MB #Memory Used# [2025-01-14 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:18:05 [end_date_ymd] => 2025-01-14 20:18:05 [RateCDR] => 1 ) [2025-01-14 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:18:05' and `end` < '2025-01-14 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:18:18] Production.INFO: count ==2016 [2025-01-14 20:18:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:18:05 - End Time 2025-01-14 20:18:05 [2025-01-14 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248671', 'tblTempUsageDetail_20' ) start [2025-01-14 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248671', 'tblTempUsageDetail_20' ) end [2025-01-14 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248671', 'tblTempVendorCDR_20' ) start [2025-01-14 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248671', 'tblTempVendorCDR_20' ) end [2025-01-14 20:18:18] Production.INFO: ProcessCDR(1,14248671,1,1,2) [2025-01-14 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248671', 'tblTempUsageDetail_20' ) start [2025-01-14 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248671', 'tblTempUsageDetail_20' ) end [2025-01-14 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:18:22] Production.INFO: ==29810== Releasing lock... [2025-01-14 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:18:22] Production.INFO: 43 MB #Memory Used# [2025-01-14 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:19:05 [end_date_ymd] => 2025-01-14 20:19:05 [RateCDR] => 1 ) [2025-01-14 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:19:05' and `end` < '2025-01-14 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:19:18] Production.INFO: count ==1999 [2025-01-14 20:19:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:19:05 - End Time 2025-01-14 20:19:05 [2025-01-14 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248676', 'tblTempUsageDetail_20' ) start [2025-01-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248676', 'tblTempUsageDetail_20' ) end [2025-01-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248676', 'tblTempVendorCDR_20' ) start [2025-01-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248676', 'tblTempVendorCDR_20' ) end [2025-01-14 20:19:18] Production.INFO: ProcessCDR(1,14248676,1,1,2) [2025-01-14 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248676', 'tblTempUsageDetail_20' ) start [2025-01-14 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248676', 'tblTempUsageDetail_20' ) end [2025-01-14 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:19:22] Production.INFO: ==29893== Releasing lock... [2025-01-14 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:19:22] Production.INFO: 43 MB #Memory Used# [2025-01-14 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:20:06 [end_date_ymd] => 2025-01-14 20:20:06 [RateCDR] => 1 ) [2025-01-14 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:20:06' and `end` < '2025-01-14 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:20:19] Production.INFO: count ==1988 [2025-01-14 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:20:06 - End Time 2025-01-14 20:20:06 [2025-01-14 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248681', 'tblTempUsageDetail_20' ) start [2025-01-14 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248681', 'tblTempUsageDetail_20' ) end [2025-01-14 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248681', 'tblTempVendorCDR_20' ) start [2025-01-14 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248681', 'tblTempVendorCDR_20' ) end [2025-01-14 20:20:19] Production.INFO: ProcessCDR(1,14248681,1,1,2) [2025-01-14 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248681', 'tblTempUsageDetail_20' ) start [2025-01-14 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248681', 'tblTempUsageDetail_20' ) end [2025-01-14 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:20:23] Production.INFO: ==29981== Releasing lock... [2025-01-14 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:20:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-14 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:21:05 [end_date_ymd] => 2025-01-14 20:21:05 [RateCDR] => 1 ) [2025-01-14 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:21:05' and `end` < '2025-01-14 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:21:18] Production.INFO: count ==1925 [2025-01-14 20:21:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:21:05 - End Time 2025-01-14 20:21:05 [2025-01-14 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248687', 'tblTempUsageDetail_20' ) start [2025-01-14 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248687', 'tblTempUsageDetail_20' ) end [2025-01-14 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248687', 'tblTempVendorCDR_20' ) start [2025-01-14 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248687', 'tblTempVendorCDR_20' ) end [2025-01-14 20:21:19] Production.INFO: ProcessCDR(1,14248687,1,1,2) [2025-01-14 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248687', 'tblTempUsageDetail_20' ) start [2025-01-14 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248687', 'tblTempUsageDetail_20' ) end [2025-01-14 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:21:22] Production.INFO: ==30069== Releasing lock... [2025-01-14 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:21:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-14 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:22:05 [end_date_ymd] => 2025-01-14 20:22:05 [RateCDR] => 1 ) [2025-01-14 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:22:05' and `end` < '2025-01-14 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:22:19] Production.INFO: count ==1919 [2025-01-14 20:22:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:22:05 - End Time 2025-01-14 20:22:05 [2025-01-14 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248692', 'tblTempUsageDetail_20' ) start [2025-01-14 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248692', 'tblTempUsageDetail_20' ) end [2025-01-14 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248692', 'tblTempVendorCDR_20' ) start [2025-01-14 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248692', 'tblTempVendorCDR_20' ) end [2025-01-14 20:22:19] Production.INFO: ProcessCDR(1,14248692,1,1,2) [2025-01-14 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248692', 'tblTempUsageDetail_20' ) start [2025-01-14 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248692', 'tblTempUsageDetail_20' ) end [2025-01-14 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:22:23] Production.INFO: ==30155== Releasing lock... [2025-01-14 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:22:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-14 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:23:05 [end_date_ymd] => 2025-01-14 20:23:05 [RateCDR] => 1 ) [2025-01-14 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:23:05' and `end` < '2025-01-14 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:23:17] Production.INFO: count ==1915 [2025-01-14 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:23:05 - End Time 2025-01-14 20:23:05 [2025-01-14 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248697', 'tblTempUsageDetail_20' ) start [2025-01-14 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248697', 'tblTempUsageDetail_20' ) end [2025-01-14 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248697', 'tblTempVendorCDR_20' ) start [2025-01-14 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248697', 'tblTempVendorCDR_20' ) end [2025-01-14 20:23:18] Production.INFO: ProcessCDR(1,14248697,1,1,2) [2025-01-14 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248697', 'tblTempUsageDetail_20' ) start [2025-01-14 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248697', 'tblTempUsageDetail_20' ) end [2025-01-14 20:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:23:21] Production.INFO: ==30236== Releasing lock... [2025-01-14 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:23:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-14 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:24:05 [end_date_ymd] => 2025-01-14 20:24:05 [RateCDR] => 1 ) [2025-01-14 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:24:05' and `end` < '2025-01-14 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:24:19] Production.INFO: count ==1901 [2025-01-14 20:24:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:24:05 - End Time 2025-01-14 20:24:05 [2025-01-14 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248702', 'tblTempUsageDetail_20' ) start [2025-01-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248702', 'tblTempUsageDetail_20' ) end [2025-01-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248702', 'tblTempVendorCDR_20' ) start [2025-01-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248702', 'tblTempVendorCDR_20' ) end [2025-01-14 20:24:19] Production.INFO: ProcessCDR(1,14248702,1,1,2) [2025-01-14 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248702', 'tblTempUsageDetail_20' ) start [2025-01-14 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248702', 'tblTempUsageDetail_20' ) end [2025-01-14 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:24:24] Production.INFO: ==30321== Releasing lock... [2025-01-14 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:24:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-14 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:25:05 [end_date_ymd] => 2025-01-14 20:25:05 [RateCDR] => 1 ) [2025-01-14 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:25:05' and `end` < '2025-01-14 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:25:18] Production.INFO: count ==1889 [2025-01-14 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:25:05 - End Time 2025-01-14 20:25:05 [2025-01-14 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248707', 'tblTempUsageDetail_20' ) start [2025-01-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248707', 'tblTempUsageDetail_20' ) end [2025-01-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248707', 'tblTempVendorCDR_20' ) start [2025-01-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248707', 'tblTempVendorCDR_20' ) end [2025-01-14 20:25:18] Production.INFO: ProcessCDR(1,14248707,1,1,2) [2025-01-14 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248707', 'tblTempUsageDetail_20' ) start [2025-01-14 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248707', 'tblTempUsageDetail_20' ) end [2025-01-14 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:25:22] Production.INFO: ==30414== Releasing lock... [2025-01-14 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:25:22] Production.INFO: 42 MB #Memory Used# [2025-01-14 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:26:06 [end_date_ymd] => 2025-01-14 20:26:06 [RateCDR] => 1 ) [2025-01-14 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:26:06' and `end` < '2025-01-14 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:26:19] Production.INFO: count ==1880 [2025-01-14 20:26:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:26:06 - End Time 2025-01-14 20:26:06 [2025-01-14 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248712', 'tblTempUsageDetail_20' ) start [2025-01-14 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248712', 'tblTempUsageDetail_20' ) end [2025-01-14 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248712', 'tblTempVendorCDR_20' ) start [2025-01-14 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248712', 'tblTempVendorCDR_20' ) end [2025-01-14 20:26:19] Production.INFO: ProcessCDR(1,14248712,1,1,2) [2025-01-14 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248712', 'tblTempUsageDetail_20' ) start [2025-01-14 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248712', 'tblTempUsageDetail_20' ) end [2025-01-14 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:26:23] Production.INFO: ==30507== Releasing lock... [2025-01-14 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:26:23] Production.INFO: 42 MB #Memory Used# [2025-01-14 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:27:05 [end_date_ymd] => 2025-01-14 20:27:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:27:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:27:17] Production.INFO: count ==1854 [2025-01-14 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:27:05 - End Time 2025-01-14 20:27:05 [2025-01-14 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248717', 'tblTempUsageDetail_20' ) start [2025-01-14 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248717', 'tblTempUsageDetail_20' ) end [2025-01-14 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248717', 'tblTempVendorCDR_20' ) start [2025-01-14 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248717', 'tblTempVendorCDR_20' ) end [2025-01-14 20:27:18] Production.INFO: ProcessCDR(1,14248717,1,1,2) [2025-01-14 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248717', 'tblTempUsageDetail_20' ) start [2025-01-14 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248717', 'tblTempUsageDetail_20' ) end [2025-01-14 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:27:21] Production.INFO: ==30641== Releasing lock... [2025-01-14 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:27:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-14 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:28:05 [end_date_ymd] => 2025-01-14 20:28:05 [RateCDR] => 1 ) [2025-01-14 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:28:05' and `end` < '2025-01-14 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:28:18] Production.INFO: count ==1823 [2025-01-14 20:28:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:28:05 - End Time 2025-01-14 20:28:05 [2025-01-14 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248722', 'tblTempUsageDetail_20' ) start [2025-01-14 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248722', 'tblTempUsageDetail_20' ) end [2025-01-14 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248722', 'tblTempVendorCDR_20' ) start [2025-01-14 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248722', 'tblTempVendorCDR_20' ) end [2025-01-14 20:28:18] Production.INFO: ProcessCDR(1,14248722,1,1,2) [2025-01-14 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248722', 'tblTempUsageDetail_20' ) start [2025-01-14 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248722', 'tblTempUsageDetail_20' ) end [2025-01-14 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:28:22] Production.INFO: ==30736== Releasing lock... [2025-01-14 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:28:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-14 20:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:29:04 [end_date_ymd] => 2025-01-14 20:29:04 [RateCDR] => 1 ) [2025-01-14 20:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:29:04' and `end` < '2025-01-14 20:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:29:17] Production.INFO: count ==1815 [2025-01-14 20:29:17] Production.ERROR: pbx CDR StartTime 2025-01-14 17:29:04 - End Time 2025-01-14 20:29:04 [2025-01-14 20:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248727', 'tblTempUsageDetail_20' ) start [2025-01-14 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248727', 'tblTempUsageDetail_20' ) end [2025-01-14 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248727', 'tblTempVendorCDR_20' ) start [2025-01-14 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248727', 'tblTempVendorCDR_20' ) end [2025-01-14 20:29:17] Production.INFO: ProcessCDR(1,14248727,1,1,2) [2025-01-14 20:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248727', 'tblTempUsageDetail_20' ) start [2025-01-14 20:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248727', 'tblTempUsageDetail_20' ) end [2025-01-14 20:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:29:20] Production.INFO: ==30828== Releasing lock... [2025-01-14 20:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:29:20] Production.INFO: 41.75 MB #Memory Used# [2025-01-14 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:30:06 [end_date_ymd] => 2025-01-14 20:30:06 [RateCDR] => 1 ) [2025-01-14 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:30:06' and `end` < '2025-01-14 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:30:19] Production.INFO: count ==1808 [2025-01-14 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:30:06 - End Time 2025-01-14 20:30:06 [2025-01-14 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248733', 'tblTempUsageDetail_20' ) start [2025-01-14 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248733', 'tblTempUsageDetail_20' ) end [2025-01-14 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248733', 'tblTempVendorCDR_20' ) start [2025-01-14 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248733', 'tblTempVendorCDR_20' ) end [2025-01-14 20:30:19] Production.INFO: ProcessCDR(1,14248733,1,1,2) [2025-01-14 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248733', 'tblTempUsageDetail_20' ) start [2025-01-14 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248733', 'tblTempUsageDetail_20' ) end [2025-01-14 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:30:23] Production.INFO: ==30925== Releasing lock... [2025-01-14 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:30:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-14 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:31:05 [end_date_ymd] => 2025-01-14 20:31:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:31:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:31:18] Production.INFO: count ==1761 [2025-01-14 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:31:05 - End Time 2025-01-14 20:31:05 [2025-01-14 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248738', 'tblTempUsageDetail_20' ) start [2025-01-14 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248738', 'tblTempUsageDetail_20' ) end [2025-01-14 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248738', 'tblTempVendorCDR_20' ) start [2025-01-14 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248738', 'tblTempVendorCDR_20' ) end [2025-01-14 20:31:18] Production.INFO: ProcessCDR(1,14248738,1,1,2) [2025-01-14 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248738', 'tblTempUsageDetail_20' ) start [2025-01-14 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248738', 'tblTempUsageDetail_20' ) end [2025-01-14 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:31:22] Production.INFO: ==31022== Releasing lock... [2025-01-14 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:31:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-14 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:32:05 [end_date_ymd] => 2025-01-14 20:32:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:32:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:32:18] Production.INFO: count ==1747 [2025-01-14 20:32:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:32:05 - End Time 2025-01-14 20:32:05 [2025-01-14 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248743', 'tblTempUsageDetail_20' ) start [2025-01-14 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248743', 'tblTempUsageDetail_20' ) end [2025-01-14 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248743', 'tblTempVendorCDR_20' ) start [2025-01-14 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248743', 'tblTempVendorCDR_20' ) end [2025-01-14 20:32:19] Production.INFO: ProcessCDR(1,14248743,1,1,2) [2025-01-14 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248743', 'tblTempUsageDetail_20' ) start [2025-01-14 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248743', 'tblTempUsageDetail_20' ) end [2025-01-14 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:32:22] Production.INFO: ==31117== Releasing lock... [2025-01-14 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:32:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-14 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:33:05 [end_date_ymd] => 2025-01-14 20:33:05 [RateCDR] => 1 ) [2025-01-14 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:33:05' and `end` < '2025-01-14 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:33:18] Production.INFO: count ==1727 [2025-01-14 20:33:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:33:05 - End Time 2025-01-14 20:33:05 [2025-01-14 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248748', 'tblTempUsageDetail_20' ) start [2025-01-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248748', 'tblTempUsageDetail_20' ) end [2025-01-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248748', 'tblTempVendorCDR_20' ) start [2025-01-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248748', 'tblTempVendorCDR_20' ) end [2025-01-14 20:33:18] Production.INFO: ProcessCDR(1,14248748,1,1,2) [2025-01-14 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248748', 'tblTempUsageDetail_20' ) start [2025-01-14 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248748', 'tblTempUsageDetail_20' ) end [2025-01-14 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:33:22] Production.INFO: ==31210== Releasing lock... [2025-01-14 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:33:22] Production.INFO: 41 MB #Memory Used# [2025-01-14 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:34:05 [end_date_ymd] => 2025-01-14 20:34:05 [RateCDR] => 1 ) [2025-01-14 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:34:05' and `end` < '2025-01-14 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:34:18] Production.INFO: count ==1720 [2025-01-14 20:34:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:34:05 - End Time 2025-01-14 20:34:05 [2025-01-14 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248753', 'tblTempUsageDetail_20' ) start [2025-01-14 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248753', 'tblTempUsageDetail_20' ) end [2025-01-14 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248753', 'tblTempVendorCDR_20' ) start [2025-01-14 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248753', 'tblTempVendorCDR_20' ) end [2025-01-14 20:34:18] Production.INFO: ProcessCDR(1,14248753,1,1,2) [2025-01-14 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248753', 'tblTempUsageDetail_20' ) start [2025-01-14 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248753', 'tblTempUsageDetail_20' ) end [2025-01-14 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:34:22] Production.INFO: ==31304== Releasing lock... [2025-01-14 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:34:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-14 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:35:05 [end_date_ymd] => 2025-01-14 20:35:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:35:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:35:18] Production.INFO: count ==1719 [2025-01-14 20:35:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:35:05 - End Time 2025-01-14 20:35:05 [2025-01-14 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248758', 'tblTempUsageDetail_20' ) start [2025-01-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248758', 'tblTempUsageDetail_20' ) end [2025-01-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248758', 'tblTempVendorCDR_20' ) start [2025-01-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248758', 'tblTempVendorCDR_20' ) end [2025-01-14 20:35:18] Production.INFO: ProcessCDR(1,14248758,1,1,2) [2025-01-14 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248758', 'tblTempUsageDetail_20' ) start [2025-01-14 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248758', 'tblTempUsageDetail_20' ) end [2025-01-14 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:35:23] Production.INFO: ==31400== Releasing lock... [2025-01-14 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:35:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-14 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:36:05 [end_date_ymd] => 2025-01-14 20:36:05 [RateCDR] => 1 ) [2025-01-14 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:36:05' and `end` < '2025-01-14 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:36:17] Production.INFO: count ==1718 [2025-01-14 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:36:05 - End Time 2025-01-14 20:36:05 [2025-01-14 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248763', 'tblTempUsageDetail_20' ) start [2025-01-14 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248763', 'tblTempUsageDetail_20' ) end [2025-01-14 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248763', 'tblTempVendorCDR_20' ) start [2025-01-14 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248763', 'tblTempVendorCDR_20' ) end [2025-01-14 20:36:18] Production.INFO: ProcessCDR(1,14248763,1,1,2) [2025-01-14 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248763', 'tblTempUsageDetail_20' ) start [2025-01-14 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248763', 'tblTempUsageDetail_20' ) end [2025-01-14 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:36:23] Production.INFO: ==31493== Releasing lock... [2025-01-14 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:36:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-14 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:37:05 [end_date_ymd] => 2025-01-14 20:37:05 [RateCDR] => 1 ) [2025-01-14 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:37:05' and `end` < '2025-01-14 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:37:17] Production.INFO: count ==1710 [2025-01-14 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:37:05 - End Time 2025-01-14 20:37:05 [2025-01-14 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248768', 'tblTempUsageDetail_20' ) start [2025-01-14 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248768', 'tblTempUsageDetail_20' ) end [2025-01-14 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248768', 'tblTempVendorCDR_20' ) start [2025-01-14 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248768', 'tblTempVendorCDR_20' ) end [2025-01-14 20:37:18] Production.INFO: ProcessCDR(1,14248768,1,1,2) [2025-01-14 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248768', 'tblTempUsageDetail_20' ) start [2025-01-14 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248768', 'tblTempUsageDetail_20' ) end [2025-01-14 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:37:23] Production.INFO: ==31589== Releasing lock... [2025-01-14 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:37:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-14 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:38:05 [end_date_ymd] => 2025-01-14 20:38:05 [RateCDR] => 1 ) [2025-01-14 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:38:05' and `end` < '2025-01-14 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:38:18] Production.INFO: count ==1702 [2025-01-14 20:38:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:38:05 - End Time 2025-01-14 20:38:05 [2025-01-14 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248773', 'tblTempUsageDetail_20' ) start [2025-01-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248773', 'tblTempUsageDetail_20' ) end [2025-01-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248773', 'tblTempVendorCDR_20' ) start [2025-01-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248773', 'tblTempVendorCDR_20' ) end [2025-01-14 20:38:19] Production.INFO: ProcessCDR(1,14248773,1,1,2) [2025-01-14 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248773', 'tblTempUsageDetail_20' ) start [2025-01-14 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248773', 'tblTempUsageDetail_20' ) end [2025-01-14 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:38:22] Production.INFO: ==31680== Releasing lock... [2025-01-14 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:38:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-14 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:39:05 [end_date_ymd] => 2025-01-14 20:39:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:39:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:39:18] Production.INFO: count ==1704 [2025-01-14 20:39:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:39:05 - End Time 2025-01-14 20:39:05 [2025-01-14 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248778', 'tblTempUsageDetail_20' ) start [2025-01-14 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248778', 'tblTempUsageDetail_20' ) end [2025-01-14 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248778', 'tblTempVendorCDR_20' ) start [2025-01-14 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248778', 'tblTempVendorCDR_20' ) end [2025-01-14 20:39:18] Production.INFO: ProcessCDR(1,14248778,1,1,2) [2025-01-14 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248778', 'tblTempUsageDetail_20' ) start [2025-01-14 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248778', 'tblTempUsageDetail_20' ) end [2025-01-14 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:39:22] Production.INFO: ==31774== Releasing lock... [2025-01-14 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:39:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-14 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:40:06 [end_date_ymd] => 2025-01-14 20:40:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:40:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:40:19] Production.INFO: count ==1696 [2025-01-14 20:40:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:40:06 - End Time 2025-01-14 20:40:06 [2025-01-14 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248784', 'tblTempUsageDetail_20' ) start [2025-01-14 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248784', 'tblTempUsageDetail_20' ) end [2025-01-14 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248784', 'tblTempVendorCDR_20' ) start [2025-01-14 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248784', 'tblTempVendorCDR_20' ) end [2025-01-14 20:40:19] Production.INFO: ProcessCDR(1,14248784,1,1,2) [2025-01-14 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248784', 'tblTempUsageDetail_20' ) start [2025-01-14 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248784', 'tblTempUsageDetail_20' ) end [2025-01-14 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:40:23] Production.INFO: ==31870== Releasing lock... [2025-01-14 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:40:23] Production.INFO: 41 MB #Memory Used# [2025-01-14 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:41:05 [end_date_ymd] => 2025-01-14 20:41:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:41:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:41:17] Production.INFO: count ==1657 [2025-01-14 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:41:05 - End Time 2025-01-14 20:41:05 [2025-01-14 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248789', 'tblTempUsageDetail_20' ) start [2025-01-14 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248789', 'tblTempUsageDetail_20' ) end [2025-01-14 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248789', 'tblTempVendorCDR_20' ) start [2025-01-14 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248789', 'tblTempVendorCDR_20' ) end [2025-01-14 20:41:18] Production.INFO: ProcessCDR(1,14248789,1,1,2) [2025-01-14 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248789', 'tblTempUsageDetail_20' ) start [2025-01-14 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248789', 'tblTempUsageDetail_20' ) end [2025-01-14 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:41:21] Production.INFO: ==31964== Releasing lock... [2025-01-14 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:41:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-14 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:42:05 [end_date_ymd] => 2025-01-14 20:42:05 [RateCDR] => 1 ) [2025-01-14 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:42:05' and `end` < '2025-01-14 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:42:18] Production.INFO: count ==1656 [2025-01-14 20:42:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:42:05 - End Time 2025-01-14 20:42:05 [2025-01-14 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248794', 'tblTempUsageDetail_20' ) start [2025-01-14 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248794', 'tblTempUsageDetail_20' ) end [2025-01-14 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248794', 'tblTempVendorCDR_20' ) start [2025-01-14 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248794', 'tblTempVendorCDR_20' ) end [2025-01-14 20:42:18] Production.INFO: ProcessCDR(1,14248794,1,1,2) [2025-01-14 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248794', 'tblTempUsageDetail_20' ) start [2025-01-14 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248794', 'tblTempUsageDetail_20' ) end [2025-01-14 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:42:23] Production.INFO: ==32099== Releasing lock... [2025-01-14 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:42:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-14 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:43:05 [end_date_ymd] => 2025-01-14 20:43:05 [RateCDR] => 1 ) [2025-01-14 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:43:05' and `end` < '2025-01-14 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:43:17] Production.INFO: count ==1642 [2025-01-14 20:43:17] Production.ERROR: pbx CDR StartTime 2025-01-14 17:43:05 - End Time 2025-01-14 20:43:05 [2025-01-14 20:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248799', 'tblTempUsageDetail_20' ) start [2025-01-14 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248799', 'tblTempUsageDetail_20' ) end [2025-01-14 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248799', 'tblTempVendorCDR_20' ) start [2025-01-14 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248799', 'tblTempVendorCDR_20' ) end [2025-01-14 20:43:18] Production.INFO: ProcessCDR(1,14248799,1,1,2) [2025-01-14 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248799', 'tblTempUsageDetail_20' ) start [2025-01-14 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248799', 'tblTempUsageDetail_20' ) end [2025-01-14 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:43:21] Production.INFO: ==32192== Releasing lock... [2025-01-14 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:43:21] Production.INFO: 40 MB #Memory Used# [2025-01-14 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:44:06 [end_date_ymd] => 2025-01-14 20:44:06 [RateCDR] => 1 ) [2025-01-14 20:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:44:06' and `end` < '2025-01-14 20:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:44:18] Production.INFO: count ==1639 [2025-01-14 20:44:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:44:06 - End Time 2025-01-14 20:44:06 [2025-01-14 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248804', 'tblTempUsageDetail_20' ) start [2025-01-14 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248804', 'tblTempUsageDetail_20' ) end [2025-01-14 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248804', 'tblTempVendorCDR_20' ) start [2025-01-14 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248804', 'tblTempVendorCDR_20' ) end [2025-01-14 20:44:19] Production.INFO: ProcessCDR(1,14248804,1,1,2) [2025-01-14 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248804', 'tblTempUsageDetail_20' ) start [2025-01-14 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248804', 'tblTempUsageDetail_20' ) end [2025-01-14 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:44:22] Production.INFO: ==32288== Releasing lock... [2025-01-14 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:44:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-14 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:45:04 [end_date_ymd] => 2025-01-14 20:45:04 [RateCDR] => 1 ) [2025-01-14 20:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:45:04' and `end` < '2025-01-14 20:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:45:17] Production.INFO: count ==1638 [2025-01-14 20:45:17] Production.ERROR: pbx CDR StartTime 2025-01-14 17:45:04 - End Time 2025-01-14 20:45:04 [2025-01-14 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248809', 'tblTempUsageDetail_20' ) start [2025-01-14 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248809', 'tblTempUsageDetail_20' ) end [2025-01-14 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248809', 'tblTempVendorCDR_20' ) start [2025-01-14 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248809', 'tblTempVendorCDR_20' ) end [2025-01-14 20:45:17] Production.INFO: ProcessCDR(1,14248809,1,1,2) [2025-01-14 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248809', 'tblTempUsageDetail_20' ) start [2025-01-14 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248809', 'tblTempUsageDetail_20' ) end [2025-01-14 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:45:21] Production.INFO: ==32382== Releasing lock... [2025-01-14 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:45:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-14 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:46:06 [end_date_ymd] => 2025-01-14 20:46:06 [RateCDR] => 1 ) [2025-01-14 20:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:46:06' and `end` < '2025-01-14 20:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:46:19] Production.INFO: count ==1634 [2025-01-14 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:46:06 - End Time 2025-01-14 20:46:06 [2025-01-14 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248814', 'tblTempUsageDetail_20' ) start [2025-01-14 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248814', 'tblTempUsageDetail_20' ) end [2025-01-14 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248814', 'tblTempVendorCDR_20' ) start [2025-01-14 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248814', 'tblTempVendorCDR_20' ) end [2025-01-14 20:46:19] Production.INFO: ProcessCDR(1,14248814,1,1,2) [2025-01-14 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248814', 'tblTempUsageDetail_20' ) start [2025-01-14 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248814', 'tblTempUsageDetail_20' ) end [2025-01-14 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:46:23] Production.INFO: ==32476== Releasing lock... [2025-01-14 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:46:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-14 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:47:06 [end_date_ymd] => 2025-01-14 20:47:06 [RateCDR] => 1 ) [2025-01-14 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:47:06' and `end` < '2025-01-14 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:47:18] Production.INFO: count ==1608 [2025-01-14 20:47:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:47:06 - End Time 2025-01-14 20:47:06 [2025-01-14 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248819', 'tblTempUsageDetail_20' ) start [2025-01-14 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248819', 'tblTempUsageDetail_20' ) end [2025-01-14 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248819', 'tblTempVendorCDR_20' ) start [2025-01-14 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248819', 'tblTempVendorCDR_20' ) end [2025-01-14 20:47:19] Production.INFO: ProcessCDR(1,14248819,1,1,2) [2025-01-14 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248819', 'tblTempUsageDetail_20' ) start [2025-01-14 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248819', 'tblTempUsageDetail_20' ) end [2025-01-14 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:47:22] Production.INFO: ==32570== Releasing lock... [2025-01-14 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:47:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-14 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:48:05 [end_date_ymd] => 2025-01-14 20:48:05 [RateCDR] => 1 ) [2025-01-14 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:48:05' and `end` < '2025-01-14 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:48:18] Production.INFO: count ==1604 [2025-01-14 20:48:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:48:05 - End Time 2025-01-14 20:48:05 [2025-01-14 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248824', 'tblTempUsageDetail_20' ) start [2025-01-14 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248824', 'tblTempUsageDetail_20' ) end [2025-01-14 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248824', 'tblTempVendorCDR_20' ) start [2025-01-14 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248824', 'tblTempVendorCDR_20' ) end [2025-01-14 20:48:18] Production.INFO: ProcessCDR(1,14248824,1,1,2) [2025-01-14 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248824', 'tblTempUsageDetail_20' ) start [2025-01-14 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248824', 'tblTempUsageDetail_20' ) end [2025-01-14 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:48:22] Production.INFO: ==32665== Releasing lock... [2025-01-14 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:48:22] Production.INFO: 40 MB #Memory Used# [2025-01-14 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:49:05 [end_date_ymd] => 2025-01-14 20:49:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:49:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:49:18] Production.INFO: count ==1596 [2025-01-14 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:49:05 - End Time 2025-01-14 20:49:05 [2025-01-14 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248829', 'tblTempUsageDetail_20' ) start [2025-01-14 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248829', 'tblTempUsageDetail_20' ) end [2025-01-14 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248829', 'tblTempVendorCDR_20' ) start [2025-01-14 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248829', 'tblTempVendorCDR_20' ) end [2025-01-14 20:49:18] Production.INFO: ProcessCDR(1,14248829,1,1,2) [2025-01-14 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248829', 'tblTempUsageDetail_20' ) start [2025-01-14 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248829', 'tblTempUsageDetail_20' ) end [2025-01-14 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:49:22] Production.INFO: ==32761== Releasing lock... [2025-01-14 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:49:22] Production.INFO: 40 MB #Memory Used# [2025-01-14 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:50:05 [end_date_ymd] => 2025-01-14 20:50:05 [RateCDR] => 1 ) [2025-01-14 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:50:05' and `end` < '2025-01-14 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:50:18] Production.INFO: count ==1588 [2025-01-14 20:50:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:50:05 - End Time 2025-01-14 20:50:05 [2025-01-14 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248835', 'tblTempUsageDetail_20' ) start [2025-01-14 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248835', 'tblTempUsageDetail_20' ) end [2025-01-14 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248835', 'tblTempVendorCDR_20' ) start [2025-01-14 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248835', 'tblTempVendorCDR_20' ) end [2025-01-14 20:50:18] Production.INFO: ProcessCDR(1,14248835,1,1,2) [2025-01-14 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248835', 'tblTempUsageDetail_20' ) start [2025-01-14 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248835', 'tblTempUsageDetail_20' ) end [2025-01-14 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:50:22] Production.INFO: ==410== Releasing lock... [2025-01-14 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:50:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-14 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:51:05 [end_date_ymd] => 2025-01-14 20:51:05 [RateCDR] => 1 ) [2025-01-14 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:51:05' and `end` < '2025-01-14 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:51:18] Production.INFO: count ==1522 [2025-01-14 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:51:05 - End Time 2025-01-14 20:51:05 [2025-01-14 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248840', 'tblTempUsageDetail_20' ) start [2025-01-14 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248840', 'tblTempUsageDetail_20' ) end [2025-01-14 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248840', 'tblTempVendorCDR_20' ) start [2025-01-14 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248840', 'tblTempVendorCDR_20' ) end [2025-01-14 20:51:18] Production.INFO: ProcessCDR(1,14248840,1,1,2) [2025-01-14 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248840', 'tblTempUsageDetail_20' ) start [2025-01-14 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248840', 'tblTempUsageDetail_20' ) end [2025-01-14 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:51:22] Production.INFO: ==507== Releasing lock... [2025-01-14 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:51:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-14 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:52:04 [end_date_ymd] => 2025-01-14 20:52:04 [RateCDR] => 1 ) [2025-01-14 20:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:52:04' and `end` < '2025-01-14 20:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:52:17] Production.INFO: count ==1518 [2025-01-14 20:52:17] Production.ERROR: pbx CDR StartTime 2025-01-14 17:52:04 - End Time 2025-01-14 20:52:04 [2025-01-14 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248845', 'tblTempUsageDetail_20' ) start [2025-01-14 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248845', 'tblTempUsageDetail_20' ) end [2025-01-14 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248845', 'tblTempVendorCDR_20' ) start [2025-01-14 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248845', 'tblTempVendorCDR_20' ) end [2025-01-14 20:52:17] Production.INFO: ProcessCDR(1,14248845,1,1,2) [2025-01-14 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248845', 'tblTempUsageDetail_20' ) start [2025-01-14 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248845', 'tblTempUsageDetail_20' ) end [2025-01-14 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:52:21] Production.INFO: ==602== Releasing lock... [2025-01-14 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:52:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-14 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:53:05 [end_date_ymd] => 2025-01-14 20:53:05 [RateCDR] => 1 ) [2025-01-14 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:53:05' and `end` < '2025-01-14 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:53:18] Production.INFO: count ==1512 [2025-01-14 20:53:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:53:05 - End Time 2025-01-14 20:53:05 [2025-01-14 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248850', 'tblTempUsageDetail_20' ) start [2025-01-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248850', 'tblTempUsageDetail_20' ) end [2025-01-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248850', 'tblTempVendorCDR_20' ) start [2025-01-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248850', 'tblTempVendorCDR_20' ) end [2025-01-14 20:53:18] Production.INFO: ProcessCDR(1,14248850,1,1,2) [2025-01-14 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248850', 'tblTempUsageDetail_20' ) start [2025-01-14 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248850', 'tblTempUsageDetail_20' ) end [2025-01-14 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:53:23] Production.INFO: ==727== Releasing lock... [2025-01-14 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:53:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-14 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:54:06 [end_date_ymd] => 2025-01-14 20:54:06 [RateCDR] => 1 ) [2025-01-14 20:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:54:06' and `end` < '2025-01-14 20:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:54:19] Production.INFO: count ==1510 [2025-01-14 20:54:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:54:06 - End Time 2025-01-14 20:54:06 [2025-01-14 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248855', 'tblTempUsageDetail_20' ) start [2025-01-14 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248855', 'tblTempUsageDetail_20' ) end [2025-01-14 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248855', 'tblTempVendorCDR_20' ) start [2025-01-14 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248855', 'tblTempVendorCDR_20' ) end [2025-01-14 20:54:19] Production.INFO: ProcessCDR(1,14248855,1,1,2) [2025-01-14 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248855', 'tblTempUsageDetail_20' ) start [2025-01-14 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248855', 'tblTempUsageDetail_20' ) end [2025-01-14 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:54:22] Production.INFO: ==828== Releasing lock... [2025-01-14 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:54:22] Production.INFO: 39 MB #Memory Used# [2025-01-14 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:55:05 [end_date_ymd] => 2025-01-14 20:55:05 [RateCDR] => 1 ) [2025-01-14 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:55:05' and `end` < '2025-01-14 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:55:17] Production.INFO: count ==1505 [2025-01-14 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:55:05 - End Time 2025-01-14 20:55:05 [2025-01-14 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248860', 'tblTempUsageDetail_20' ) start [2025-01-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248860', 'tblTempUsageDetail_20' ) end [2025-01-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248860', 'tblTempVendorCDR_20' ) start [2025-01-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248860', 'tblTempVendorCDR_20' ) end [2025-01-14 20:55:18] Production.INFO: ProcessCDR(1,14248860,1,1,2) [2025-01-14 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248860', 'tblTempUsageDetail_20' ) start [2025-01-14 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248860', 'tblTempUsageDetail_20' ) end [2025-01-14 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:55:21] Production.INFO: ==919== Releasing lock... [2025-01-14 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:55:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-14 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:56:06 [end_date_ymd] => 2025-01-14 20:56:06 [RateCDR] => 1 ) [2025-01-14 20:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:56:06' and `end` < '2025-01-14 20:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:56:19] Production.INFO: count ==1502 [2025-01-14 20:56:19] Production.ERROR: pbx CDR StartTime 2025-01-14 17:56:06 - End Time 2025-01-14 20:56:06 [2025-01-14 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248865', 'tblTempUsageDetail_20' ) start [2025-01-14 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248865', 'tblTempUsageDetail_20' ) end [2025-01-14 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248865', 'tblTempVendorCDR_20' ) start [2025-01-14 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248865', 'tblTempVendorCDR_20' ) end [2025-01-14 20:56:19] Production.INFO: ProcessCDR(1,14248865,1,1,2) [2025-01-14 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248865', 'tblTempUsageDetail_20' ) start [2025-01-14 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248865', 'tblTempUsageDetail_20' ) end [2025-01-14 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:56:23] Production.INFO: ==1017== Releasing lock... [2025-01-14 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:56:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-14 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:57:05 [end_date_ymd] => 2025-01-14 20:57:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:57:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:57:18] Production.INFO: count ==1500 [2025-01-14 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:57:05 - End Time 2025-01-14 20:57:05 [2025-01-14 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248870', 'tblTempUsageDetail_20' ) start [2025-01-14 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248870', 'tblTempUsageDetail_20' ) end [2025-01-14 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248870', 'tblTempVendorCDR_20' ) start [2025-01-14 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248870', 'tblTempVendorCDR_20' ) end [2025-01-14 20:57:18] Production.INFO: ProcessCDR(1,14248870,1,1,2) [2025-01-14 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248870', 'tblTempUsageDetail_20' ) start [2025-01-14 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248870', 'tblTempUsageDetail_20' ) end [2025-01-14 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:57:21] Production.INFO: ==1111== Releasing lock... [2025-01-14 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:57:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-14 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:58:05 [end_date_ymd] => 2025-01-14 20:58:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 17:58:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 20:58:18] Production.INFO: count ==1489 [2025-01-14 20:58:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:58:05 - End Time 2025-01-14 20:58:05 [2025-01-14 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248875', 'tblTempUsageDetail_20' ) start [2025-01-14 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248875', 'tblTempUsageDetail_20' ) end [2025-01-14 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248875', 'tblTempVendorCDR_20' ) start [2025-01-14 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248875', 'tblTempVendorCDR_20' ) end [2025-01-14 20:58:18] Production.INFO: ProcessCDR(1,14248875,1,1,2) [2025-01-14 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248875', 'tblTempUsageDetail_20' ) start [2025-01-14 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248875', 'tblTempUsageDetail_20' ) end [2025-01-14 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:58:23] Production.INFO: ==1263== Releasing lock... [2025-01-14 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:58:23] Production.INFO: 39 MB #Memory Used# [2025-01-14 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 17:59:05 [end_date_ymd] => 2025-01-14 20:59:05 [RateCDR] => 1 ) [2025-01-14 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 17:59:05' and `end` < '2025-01-14 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 20:59:17] Production.INFO: count ==1483 [2025-01-14 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-14 17:59:05 - End Time 2025-01-14 20:59:05 [2025-01-14 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248880', 'tblTempUsageDetail_20' ) start [2025-01-14 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248880', 'tblTempUsageDetail_20' ) end [2025-01-14 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248880', 'tblTempVendorCDR_20' ) start [2025-01-14 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248880', 'tblTempVendorCDR_20' ) end [2025-01-14 20:59:18] Production.INFO: ProcessCDR(1,14248880,1,1,2) [2025-01-14 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248880', 'tblTempUsageDetail_20' ) start [2025-01-14 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248880', 'tblTempUsageDetail_20' ) end [2025-01-14 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 20:59:21] Production.INFO: ==1358== Releasing lock... [2025-01-14 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 20:59:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-14 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:00:06 [end_date_ymd] => 2025-01-14 21:00:06 [RateCDR] => 1 ) [2025-01-14 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:00:06' and `end` < '2025-01-14 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:00:18] Production.INFO: count ==1476 [2025-01-14 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:00:06 - End Time 2025-01-14 21:00:06 [2025-01-14 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248886', 'tblTempUsageDetail_20' ) start [2025-01-14 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248886', 'tblTempUsageDetail_20' ) end [2025-01-14 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248886', 'tblTempVendorCDR_20' ) start [2025-01-14 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248886', 'tblTempVendorCDR_20' ) end [2025-01-14 21:00:19] Production.INFO: ProcessCDR(1,14248886,1,1,2) [2025-01-14 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248886', 'tblTempUsageDetail_20' ) start [2025-01-14 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248886', 'tblTempUsageDetail_20' ) end [2025-01-14 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:00:22] Production.INFO: ==1453== Releasing lock... [2025-01-14 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:00:22] Production.INFO: 39 MB #Memory Used# [2025-01-14 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:01:05 [end_date_ymd] => 2025-01-14 21:01:05 [RateCDR] => 1 ) [2025-01-14 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:01:05' and `end` < '2025-01-14 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:01:18] Production.INFO: count ==1435 [2025-01-14 21:01:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:01:05 - End Time 2025-01-14 21:01:05 [2025-01-14 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248891', 'tblTempUsageDetail_20' ) start [2025-01-14 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248891', 'tblTempUsageDetail_20' ) end [2025-01-14 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248891', 'tblTempVendorCDR_20' ) start [2025-01-14 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248891', 'tblTempVendorCDR_20' ) end [2025-01-14 21:01:18] Production.INFO: ProcessCDR(1,14248891,1,1,2) [2025-01-14 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248891', 'tblTempUsageDetail_20' ) start [2025-01-14 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248891', 'tblTempUsageDetail_20' ) end [2025-01-14 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:01:22] Production.INFO: ==1600== Releasing lock... [2025-01-14 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:01:22] Production.INFO: 39 MB #Memory Used# [2025-01-14 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:02:05 [end_date_ymd] => 2025-01-14 21:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:02:19] Production.INFO: count ==1382 [2025-01-14 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:02:05 - End Time 2025-01-14 21:02:05 [2025-01-14 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248896', 'tblTempUsageDetail_20' ) start [2025-01-14 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248896', 'tblTempUsageDetail_20' ) end [2025-01-14 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248896', 'tblTempVendorCDR_20' ) start [2025-01-14 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248896', 'tblTempVendorCDR_20' ) end [2025-01-14 21:02:19] Production.INFO: ProcessCDR(1,14248896,1,1,2) [2025-01-14 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248896', 'tblTempUsageDetail_20' ) start [2025-01-14 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248896', 'tblTempUsageDetail_20' ) end [2025-01-14 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:02:22] Production.INFO: ==1693== Releasing lock... [2025-01-14 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:02:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-14 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:03:05 [end_date_ymd] => 2025-01-14 21:03:05 [RateCDR] => 1 ) [2025-01-14 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:03:05' and `end` < '2025-01-14 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:03:18] Production.INFO: count ==1359 [2025-01-14 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:03:05 - End Time 2025-01-14 21:03:05 [2025-01-14 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248901', 'tblTempUsageDetail_20' ) start [2025-01-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248901', 'tblTempUsageDetail_20' ) end [2025-01-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248901', 'tblTempVendorCDR_20' ) start [2025-01-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248901', 'tblTempVendorCDR_20' ) end [2025-01-14 21:03:18] Production.INFO: ProcessCDR(1,14248901,1,1,2) [2025-01-14 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248901', 'tblTempUsageDetail_20' ) start [2025-01-14 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248901', 'tblTempUsageDetail_20' ) end [2025-01-14 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:03:21] Production.INFO: ==1790== Releasing lock... [2025-01-14 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:03:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-14 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:04:05 [end_date_ymd] => 2025-01-14 21:04:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:04:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:04:17] Production.INFO: count ==1350 [2025-01-14 21:04:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:04:05 - End Time 2025-01-14 21:04:05 [2025-01-14 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248906', 'tblTempUsageDetail_20' ) start [2025-01-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248906', 'tblTempUsageDetail_20' ) end [2025-01-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248906', 'tblTempVendorCDR_20' ) start [2025-01-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248906', 'tblTempVendorCDR_20' ) end [2025-01-14 21:04:18] Production.INFO: ProcessCDR(1,14248906,1,1,2) [2025-01-14 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248906', 'tblTempUsageDetail_20' ) start [2025-01-14 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248906', 'tblTempUsageDetail_20' ) end [2025-01-14 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:04:21] Production.INFO: ==1881== Releasing lock... [2025-01-14 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:04:21] Production.INFO: 38 MB #Memory Used# [2025-01-14 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:05:05 [end_date_ymd] => 2025-01-14 21:05:05 [RateCDR] => 1 ) [2025-01-14 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:05:05' and `end` < '2025-01-14 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:05:18] Production.INFO: count ==1346 [2025-01-14 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:05:05 - End Time 2025-01-14 21:05:05 [2025-01-14 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248911', 'tblTempUsageDetail_20' ) start [2025-01-14 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248911', 'tblTempUsageDetail_20' ) end [2025-01-14 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248911', 'tblTempVendorCDR_20' ) start [2025-01-14 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248911', 'tblTempVendorCDR_20' ) end [2025-01-14 21:05:19] Production.INFO: ProcessCDR(1,14248911,1,1,2) [2025-01-14 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248911', 'tblTempUsageDetail_20' ) start [2025-01-14 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248911', 'tblTempUsageDetail_20' ) end [2025-01-14 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:05:22] Production.INFO: ==1962== Releasing lock... [2025-01-14 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:05:22] Production.INFO: 38 MB #Memory Used# [2025-01-14 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:06:04 [end_date_ymd] => 2025-01-14 21:06:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:06:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:06:18] Production.INFO: count ==1328 [2025-01-14 21:06:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:06:04 - End Time 2025-01-14 21:06:04 [2025-01-14 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248916', 'tblTempUsageDetail_20' ) start [2025-01-14 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248916', 'tblTempUsageDetail_20' ) end [2025-01-14 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248916', 'tblTempVendorCDR_20' ) start [2025-01-14 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248916', 'tblTempVendorCDR_20' ) end [2025-01-14 21:06:18] Production.INFO: ProcessCDR(1,14248916,1,1,2) [2025-01-14 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248916', 'tblTempUsageDetail_20' ) start [2025-01-14 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248916', 'tblTempUsageDetail_20' ) end [2025-01-14 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:06:22] Production.INFO: ==2044== Releasing lock... [2025-01-14 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:06:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-14 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:07:05 [end_date_ymd] => 2025-01-14 21:07:05 [RateCDR] => 1 ) [2025-01-14 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:07:05' and `end` < '2025-01-14 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:07:18] Production.INFO: count ==1327 [2025-01-14 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:07:05 - End Time 2025-01-14 21:07:05 [2025-01-14 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248921', 'tblTempUsageDetail_20' ) start [2025-01-14 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248921', 'tblTempUsageDetail_20' ) end [2025-01-14 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248921', 'tblTempVendorCDR_20' ) start [2025-01-14 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248921', 'tblTempVendorCDR_20' ) end [2025-01-14 21:07:18] Production.INFO: ProcessCDR(1,14248921,1,1,2) [2025-01-14 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248921', 'tblTempUsageDetail_20' ) start [2025-01-14 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248921', 'tblTempUsageDetail_20' ) end [2025-01-14 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:07:23] Production.INFO: ==2126== Releasing lock... [2025-01-14 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:07:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-14 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:08:05 [end_date_ymd] => 2025-01-14 21:08:05 [RateCDR] => 1 ) [2025-01-14 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:08:05' and `end` < '2025-01-14 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:08:18] Production.INFO: count ==1326 [2025-01-14 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:08:05 - End Time 2025-01-14 21:08:05 [2025-01-14 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248926', 'tblTempUsageDetail_20' ) start [2025-01-14 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248926', 'tblTempUsageDetail_20' ) end [2025-01-14 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248926', 'tblTempVendorCDR_20' ) start [2025-01-14 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248926', 'tblTempVendorCDR_20' ) end [2025-01-14 21:08:18] Production.INFO: ProcessCDR(1,14248926,1,1,2) [2025-01-14 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248926', 'tblTempUsageDetail_20' ) start [2025-01-14 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248926', 'tblTempUsageDetail_20' ) end [2025-01-14 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:08:21] Production.INFO: ==2209== Releasing lock... [2025-01-14 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:08:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-14 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:09:05 [end_date_ymd] => 2025-01-14 21:09:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:09:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:09:18] Production.INFO: count ==1323 [2025-01-14 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:09:05 - End Time 2025-01-14 21:09:05 [2025-01-14 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248931', 'tblTempUsageDetail_20' ) start [2025-01-14 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248931', 'tblTempUsageDetail_20' ) end [2025-01-14 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248931', 'tblTempVendorCDR_20' ) start [2025-01-14 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248931', 'tblTempVendorCDR_20' ) end [2025-01-14 21:09:18] Production.INFO: ProcessCDR(1,14248931,1,1,2) [2025-01-14 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248931', 'tblTempUsageDetail_20' ) start [2025-01-14 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248931', 'tblTempUsageDetail_20' ) end [2025-01-14 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:09:22] Production.INFO: ==2291== Releasing lock... [2025-01-14 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:09:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-14 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:10:06 [end_date_ymd] => 2025-01-14 21:10:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:10:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:10:18] Production.INFO: count ==1320 [2025-01-14 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:10:06 - End Time 2025-01-14 21:10:06 [2025-01-14 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248937', 'tblTempUsageDetail_20' ) start [2025-01-14 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248937', 'tblTempUsageDetail_20' ) end [2025-01-14 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248937', 'tblTempVendorCDR_20' ) start [2025-01-14 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248937', 'tblTempVendorCDR_20' ) end [2025-01-14 21:10:19] Production.INFO: ProcessCDR(1,14248937,1,1,2) [2025-01-14 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248937', 'tblTempUsageDetail_20' ) start [2025-01-14 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248937', 'tblTempUsageDetail_20' ) end [2025-01-14 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:10:22] Production.INFO: ==2374== Releasing lock... [2025-01-14 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:10:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-14 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:11:05 [end_date_ymd] => 2025-01-14 21:11:05 [RateCDR] => 1 ) [2025-01-14 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:11:05' and `end` < '2025-01-14 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:11:18] Production.INFO: count ==1293 [2025-01-14 21:11:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:11:05 - End Time 2025-01-14 21:11:05 [2025-01-14 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248942', 'tblTempUsageDetail_20' ) start [2025-01-14 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248942', 'tblTempUsageDetail_20' ) end [2025-01-14 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248942', 'tblTempVendorCDR_20' ) start [2025-01-14 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248942', 'tblTempVendorCDR_20' ) end [2025-01-14 21:11:18] Production.INFO: ProcessCDR(1,14248942,1,1,2) [2025-01-14 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248942', 'tblTempUsageDetail_20' ) start [2025-01-14 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248942', 'tblTempUsageDetail_20' ) end [2025-01-14 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:11:22] Production.INFO: ==2459== Releasing lock... [2025-01-14 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:11:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-14 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:12:05 [end_date_ymd] => 2025-01-14 21:12:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:12:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:12:17] Production.INFO: count ==1289 [2025-01-14 21:12:17] Production.ERROR: pbx CDR StartTime 2025-01-14 18:12:05 - End Time 2025-01-14 21:12:05 [2025-01-14 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248947', 'tblTempUsageDetail_20' ) start [2025-01-14 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248947', 'tblTempUsageDetail_20' ) end [2025-01-14 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248947', 'tblTempVendorCDR_20' ) start [2025-01-14 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248947', 'tblTempVendorCDR_20' ) end [2025-01-14 21:12:18] Production.INFO: ProcessCDR(1,14248947,1,1,2) [2025-01-14 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248947', 'tblTempUsageDetail_20' ) start [2025-01-14 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248947', 'tblTempUsageDetail_20' ) end [2025-01-14 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:12:21] Production.INFO: ==2540== Releasing lock... [2025-01-14 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:12:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-14 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:13:05 [end_date_ymd] => 2025-01-14 21:13:05 [RateCDR] => 1 ) [2025-01-14 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:13:05' and `end` < '2025-01-14 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:13:17] Production.INFO: count ==1284 [2025-01-14 21:13:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:13:05 - End Time 2025-01-14 21:13:05 [2025-01-14 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248952', 'tblTempUsageDetail_20' ) start [2025-01-14 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248952', 'tblTempUsageDetail_20' ) end [2025-01-14 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248952', 'tblTempVendorCDR_20' ) start [2025-01-14 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248952', 'tblTempVendorCDR_20' ) end [2025-01-14 21:13:18] Production.INFO: ProcessCDR(1,14248952,1,1,2) [2025-01-14 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248952', 'tblTempUsageDetail_20' ) start [2025-01-14 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248952', 'tblTempUsageDetail_20' ) end [2025-01-14 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:13:21] Production.INFO: ==2662== Releasing lock... [2025-01-14 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:13:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-14 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:14:06 [end_date_ymd] => 2025-01-14 21:14:06 [RateCDR] => 1 ) [2025-01-14 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:14:06' and `end` < '2025-01-14 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:14:18] Production.INFO: count ==1277 [2025-01-14 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:14:06 - End Time 2025-01-14 21:14:06 [2025-01-14 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248957', 'tblTempUsageDetail_20' ) start [2025-01-14 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248957', 'tblTempUsageDetail_20' ) end [2025-01-14 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248957', 'tblTempVendorCDR_20' ) start [2025-01-14 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248957', 'tblTempVendorCDR_20' ) end [2025-01-14 21:14:18] Production.INFO: ProcessCDR(1,14248957,1,1,2) [2025-01-14 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248957', 'tblTempUsageDetail_20' ) start [2025-01-14 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248957', 'tblTempUsageDetail_20' ) end [2025-01-14 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:14:22] Production.INFO: ==2744== Releasing lock... [2025-01-14 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-14 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:15:05 [end_date_ymd] => 2025-01-14 21:15:05 [RateCDR] => 1 ) [2025-01-14 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:15:05' and `end` < '2025-01-14 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:15:17] Production.INFO: count ==1249 [2025-01-14 21:15:17] Production.ERROR: pbx CDR StartTime 2025-01-14 18:15:05 - End Time 2025-01-14 21:15:05 [2025-01-14 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248962', 'tblTempUsageDetail_20' ) start [2025-01-14 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248962', 'tblTempUsageDetail_20' ) end [2025-01-14 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248962', 'tblTempVendorCDR_20' ) start [2025-01-14 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248962', 'tblTempVendorCDR_20' ) end [2025-01-14 21:15:17] Production.INFO: ProcessCDR(1,14248962,1,1,2) [2025-01-14 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248962', 'tblTempUsageDetail_20' ) start [2025-01-14 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248962', 'tblTempUsageDetail_20' ) end [2025-01-14 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:15:21] Production.INFO: ==2827== Releasing lock... [2025-01-14 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:15:21] Production.INFO: 37 MB #Memory Used# [2025-01-14 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:16:05 [end_date_ymd] => 2025-01-14 21:16:05 [RateCDR] => 1 ) [2025-01-14 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:16:05' and `end` < '2025-01-14 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:16:18] Production.INFO: count ==1244 [2025-01-14 21:16:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:16:05 - End Time 2025-01-14 21:16:05 [2025-01-14 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248967', 'tblTempUsageDetail_20' ) start [2025-01-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248967', 'tblTempUsageDetail_20' ) end [2025-01-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248967', 'tblTempVendorCDR_20' ) start [2025-01-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248967', 'tblTempVendorCDR_20' ) end [2025-01-14 21:16:19] Production.INFO: ProcessCDR(1,14248967,1,1,2) [2025-01-14 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248967', 'tblTempUsageDetail_20' ) start [2025-01-14 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248967', 'tblTempUsageDetail_20' ) end [2025-01-14 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:16:22] Production.INFO: ==2910== Releasing lock... [2025-01-14 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:16:22] Production.INFO: 37 MB #Memory Used# [2025-01-14 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:17:05 [end_date_ymd] => 2025-01-14 21:17:05 [RateCDR] => 1 ) [2025-01-14 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:17:05' and `end` < '2025-01-14 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:17:18] Production.INFO: count ==1242 [2025-01-14 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:17:05 - End Time 2025-01-14 21:17:05 [2025-01-14 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248972', 'tblTempUsageDetail_20' ) start [2025-01-14 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248972', 'tblTempUsageDetail_20' ) end [2025-01-14 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248972', 'tblTempVendorCDR_20' ) start [2025-01-14 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248972', 'tblTempVendorCDR_20' ) end [2025-01-14 21:17:18] Production.INFO: ProcessCDR(1,14248972,1,1,2) [2025-01-14 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248972', 'tblTempUsageDetail_20' ) start [2025-01-14 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248972', 'tblTempUsageDetail_20' ) end [2025-01-14 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:17:21] Production.INFO: ==2994== Releasing lock... [2025-01-14 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:17:21] Production.INFO: 37 MB #Memory Used# [2025-01-14 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:18:06 [end_date_ymd] => 2025-01-14 21:18:06 [RateCDR] => 1 ) [2025-01-14 21:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:18:06' and `end` < '2025-01-14 21:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:18:18] Production.INFO: count ==1239 [2025-01-14 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:18:06 - End Time 2025-01-14 21:18:06 [2025-01-14 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248977', 'tblTempUsageDetail_20' ) start [2025-01-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248977', 'tblTempUsageDetail_20' ) end [2025-01-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248977', 'tblTempVendorCDR_20' ) start [2025-01-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248977', 'tblTempVendorCDR_20' ) end [2025-01-14 21:18:18] Production.INFO: ProcessCDR(1,14248977,1,1,2) [2025-01-14 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248977', 'tblTempUsageDetail_20' ) start [2025-01-14 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248977', 'tblTempUsageDetail_20' ) end [2025-01-14 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:18:22] Production.INFO: ==3078== Releasing lock... [2025-01-14 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:18:22] Production.INFO: 37 MB #Memory Used# [2025-01-14 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:19:05 [end_date_ymd] => 2025-01-14 21:19:05 [RateCDR] => 1 ) [2025-01-14 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:19:05' and `end` < '2025-01-14 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:19:18] Production.INFO: count ==1240 [2025-01-14 21:19:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:19:05 - End Time 2025-01-14 21:19:05 [2025-01-14 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248982', 'tblTempUsageDetail_20' ) start [2025-01-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248982', 'tblTempUsageDetail_20' ) end [2025-01-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248982', 'tblTempVendorCDR_20' ) start [2025-01-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248982', 'tblTempVendorCDR_20' ) end [2025-01-14 21:19:19] Production.INFO: ProcessCDR(1,14248982,1,1,2) [2025-01-14 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248982', 'tblTempUsageDetail_20' ) start [2025-01-14 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248982', 'tblTempUsageDetail_20' ) end [2025-01-14 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:19:22] Production.INFO: ==3160== Releasing lock... [2025-01-14 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:19:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-14 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:20:06 [end_date_ymd] => 2025-01-14 21:20:06 [RateCDR] => 1 ) [2025-01-14 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:20:06' and `end` < '2025-01-14 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:20:19] Production.INFO: count ==1236 [2025-01-14 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:20:06 - End Time 2025-01-14 21:20:06 [2025-01-14 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248988', 'tblTempUsageDetail_20' ) start [2025-01-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248988', 'tblTempUsageDetail_20' ) end [2025-01-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248988', 'tblTempVendorCDR_20' ) start [2025-01-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248988', 'tblTempVendorCDR_20' ) end [2025-01-14 21:20:19] Production.INFO: ProcessCDR(1,14248988,1,1,2) [2025-01-14 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248988', 'tblTempUsageDetail_20' ) start [2025-01-14 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248988', 'tblTempUsageDetail_20' ) end [2025-01-14 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:20:22] Production.INFO: ==3244== Releasing lock... [2025-01-14 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:20:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-14 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:21:05 [end_date_ymd] => 2025-01-14 21:21:05 [RateCDR] => 1 ) [2025-01-14 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:21:05' and `end` < '2025-01-14 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:21:17] Production.INFO: count ==1245 [2025-01-14 21:21:17] Production.ERROR: pbx CDR StartTime 2025-01-14 18:21:05 - End Time 2025-01-14 21:21:05 [2025-01-14 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248992', 'tblTempUsageDetail_20' ) start [2025-01-14 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248992', 'tblTempUsageDetail_20' ) end [2025-01-14 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248992', 'tblTempVendorCDR_20' ) start [2025-01-14 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248992', 'tblTempVendorCDR_20' ) end [2025-01-14 21:21:18] Production.INFO: ProcessCDR(1,14248992,1,1,2) [2025-01-14 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248992', 'tblTempUsageDetail_20' ) start [2025-01-14 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248992', 'tblTempUsageDetail_20' ) end [2025-01-14 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:21:21] Production.INFO: ==3325== Releasing lock... [2025-01-14 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:21:21] Production.INFO: 37 MB #Memory Used# [2025-01-14 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:22:05 [end_date_ymd] => 2025-01-14 21:22:05 [RateCDR] => 1 ) [2025-01-14 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:22:05' and `end` < '2025-01-14 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:22:18] Production.INFO: count ==1240 [2025-01-14 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:22:05 - End Time 2025-01-14 21:22:05 [2025-01-14 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248998', 'tblTempUsageDetail_20' ) start [2025-01-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14248998', 'tblTempUsageDetail_20' ) end [2025-01-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248998', 'tblTempVendorCDR_20' ) start [2025-01-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14248998', 'tblTempVendorCDR_20' ) end [2025-01-14 21:22:18] Production.INFO: ProcessCDR(1,14248998,1,1,2) [2025-01-14 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14248998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14248998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14248998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14248998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248998', 'tblTempUsageDetail_20' ) start [2025-01-14 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14248998', 'tblTempUsageDetail_20' ) end [2025-01-14 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:22:22] Production.INFO: ==3407== Releasing lock... [2025-01-14 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:22:22] Production.INFO: 37 MB #Memory Used# [2025-01-14 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:23:05 [end_date_ymd] => 2025-01-14 21:23:05 [RateCDR] => 1 ) [2025-01-14 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:23:05' and `end` < '2025-01-14 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:23:18] Production.INFO: count ==1228 [2025-01-14 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:23:05 - End Time 2025-01-14 21:23:05 [2025-01-14 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249003', 'tblTempUsageDetail_20' ) start [2025-01-14 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249003', 'tblTempUsageDetail_20' ) end [2025-01-14 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249003', 'tblTempVendorCDR_20' ) start [2025-01-14 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249003', 'tblTempVendorCDR_20' ) end [2025-01-14 21:23:18] Production.INFO: ProcessCDR(1,14249003,1,1,2) [2025-01-14 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249003', 'tblTempUsageDetail_20' ) start [2025-01-14 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249003', 'tblTempUsageDetail_20' ) end [2025-01-14 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:23:22] Production.INFO: ==3488== Releasing lock... [2025-01-14 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:23:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-14 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:24:05 [end_date_ymd] => 2025-01-14 21:24:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:24:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:24:18] Production.INFO: count ==1227 [2025-01-14 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:24:05 - End Time 2025-01-14 21:24:05 [2025-01-14 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249008', 'tblTempUsageDetail_20' ) start [2025-01-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249008', 'tblTempUsageDetail_20' ) end [2025-01-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249008', 'tblTempVendorCDR_20' ) start [2025-01-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249008', 'tblTempVendorCDR_20' ) end [2025-01-14 21:24:18] Production.INFO: ProcessCDR(1,14249008,1,1,2) [2025-01-14 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249008', 'tblTempUsageDetail_20' ) start [2025-01-14 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249008', 'tblTempUsageDetail_20' ) end [2025-01-14 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:24:22] Production.INFO: ==3570== Releasing lock... [2025-01-14 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:24:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-14 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:25:05 [end_date_ymd] => 2025-01-14 21:25:05 [RateCDR] => 1 ) [2025-01-14 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:25:05' and `end` < '2025-01-14 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:25:18] Production.INFO: count ==1228 [2025-01-14 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:25:05 - End Time 2025-01-14 21:25:05 [2025-01-14 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249013', 'tblTempUsageDetail_20' ) start [2025-01-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249013', 'tblTempUsageDetail_20' ) end [2025-01-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249013', 'tblTempVendorCDR_20' ) start [2025-01-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249013', 'tblTempVendorCDR_20' ) end [2025-01-14 21:25:18] Production.INFO: ProcessCDR(1,14249013,1,1,2) [2025-01-14 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249013', 'tblTempUsageDetail_20' ) start [2025-01-14 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249013', 'tblTempUsageDetail_20' ) end [2025-01-14 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:25:23] Production.INFO: ==3652== Releasing lock... [2025-01-14 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:25:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-14 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:26:06 [end_date_ymd] => 2025-01-14 21:26:06 [RateCDR] => 1 ) [2025-01-14 21:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:26:06' and `end` < '2025-01-14 21:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:26:18] Production.INFO: count ==1227 [2025-01-14 21:26:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:26:06 - End Time 2025-01-14 21:26:06 [2025-01-14 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249018', 'tblTempUsageDetail_20' ) start [2025-01-14 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249018', 'tblTempUsageDetail_20' ) end [2025-01-14 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249018', 'tblTempVendorCDR_20' ) start [2025-01-14 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249018', 'tblTempVendorCDR_20' ) end [2025-01-14 21:26:19] Production.INFO: ProcessCDR(1,14249018,1,1,2) [2025-01-14 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249018', 'tblTempUsageDetail_20' ) start [2025-01-14 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249018', 'tblTempUsageDetail_20' ) end [2025-01-14 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:26:22] Production.INFO: ==3739== Releasing lock... [2025-01-14 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:26:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-14 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:27:05 [end_date_ymd] => 2025-01-14 21:27:05 [RateCDR] => 1 ) [2025-01-14 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:27:05' and `end` < '2025-01-14 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:27:18] Production.INFO: count ==1226 [2025-01-14 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:27:05 - End Time 2025-01-14 21:27:05 [2025-01-14 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249023', 'tblTempUsageDetail_20' ) start [2025-01-14 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249023', 'tblTempUsageDetail_20' ) end [2025-01-14 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249023', 'tblTempVendorCDR_20' ) start [2025-01-14 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249023', 'tblTempVendorCDR_20' ) end [2025-01-14 21:27:18] Production.INFO: ProcessCDR(1,14249023,1,1,2) [2025-01-14 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249023', 'tblTempUsageDetail_20' ) start [2025-01-14 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249023', 'tblTempUsageDetail_20' ) end [2025-01-14 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:27:22] Production.INFO: ==3820== Releasing lock... [2025-01-14 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:27:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-14 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:28:06 [end_date_ymd] => 2025-01-14 21:28:06 [RateCDR] => 1 ) [2025-01-14 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:28:06' and `end` < '2025-01-14 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:28:19] Production.INFO: count ==1225 [2025-01-14 21:28:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:28:06 - End Time 2025-01-14 21:28:06 [2025-01-14 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249028', 'tblTempUsageDetail_20' ) start [2025-01-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249028', 'tblTempUsageDetail_20' ) end [2025-01-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249028', 'tblTempVendorCDR_20' ) start [2025-01-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249028', 'tblTempVendorCDR_20' ) end [2025-01-14 21:28:19] Production.INFO: ProcessCDR(1,14249028,1,1,2) [2025-01-14 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249028', 'tblTempUsageDetail_20' ) start [2025-01-14 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249028', 'tblTempUsageDetail_20' ) end [2025-01-14 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:28:23] Production.INFO: ==3904== Releasing lock... [2025-01-14 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:28:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-14 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:29:05 [end_date_ymd] => 2025-01-14 21:29:05 [RateCDR] => 1 ) [2025-01-14 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:29:05' and `end` < '2025-01-14 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:29:17] Production.INFO: count ==1222 [2025-01-14 21:29:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:29:05 - End Time 2025-01-14 21:29:05 [2025-01-14 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249033', 'tblTempUsageDetail_20' ) start [2025-01-14 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249033', 'tblTempUsageDetail_20' ) end [2025-01-14 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249033', 'tblTempVendorCDR_20' ) start [2025-01-14 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249033', 'tblTempVendorCDR_20' ) end [2025-01-14 21:29:18] Production.INFO: ProcessCDR(1,14249033,1,1,2) [2025-01-14 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249033', 'tblTempUsageDetail_20' ) start [2025-01-14 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249033', 'tblTempUsageDetail_20' ) end [2025-01-14 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:29:21] Production.INFO: ==4029== Releasing lock... [2025-01-14 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:29:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-14 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:30:06 [end_date_ymd] => 2025-01-14 21:30:06 [RateCDR] => 1 ) [2025-01-14 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:30:06' and `end` < '2025-01-14 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:30:18] Production.INFO: count ==1217 [2025-01-14 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:30:06 - End Time 2025-01-14 21:30:06 [2025-01-14 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249038', 'tblTempUsageDetail_20' ) start [2025-01-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249038', 'tblTempUsageDetail_20' ) end [2025-01-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249038', 'tblTempVendorCDR_20' ) start [2025-01-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249038', 'tblTempVendorCDR_20' ) end [2025-01-14 21:30:19] Production.INFO: ProcessCDR(1,14249038,1,1,2) [2025-01-14 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249038', 'tblTempUsageDetail_20' ) start [2025-01-14 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249038', 'tblTempUsageDetail_20' ) end [2025-01-14 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:30:22] Production.INFO: ==4120== Releasing lock... [2025-01-14 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:30:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-14 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:31:05 [end_date_ymd] => 2025-01-14 21:31:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:31:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:31:17] Production.INFO: count ==1176 [2025-01-14 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:31:05 - End Time 2025-01-14 21:31:05 [2025-01-14 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249044', 'tblTempUsageDetail_20' ) start [2025-01-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249044', 'tblTempUsageDetail_20' ) end [2025-01-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249044', 'tblTempVendorCDR_20' ) start [2025-01-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249044', 'tblTempVendorCDR_20' ) end [2025-01-14 21:31:18] Production.INFO: ProcessCDR(1,14249044,1,1,2) [2025-01-14 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249044', 'tblTempUsageDetail_20' ) start [2025-01-14 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249044', 'tblTempUsageDetail_20' ) end [2025-01-14 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:31:23] Production.INFO: ==4211== Releasing lock... [2025-01-14 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:31:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-14 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:32:06 [end_date_ymd] => 2025-01-14 21:32:06 [RateCDR] => 1 ) [2025-01-14 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:32:06' and `end` < '2025-01-14 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:32:19] Production.INFO: count ==1163 [2025-01-14 21:32:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:32:06 - End Time 2025-01-14 21:32:06 [2025-01-14 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249049', 'tblTempUsageDetail_20' ) start [2025-01-14 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249049', 'tblTempUsageDetail_20' ) end [2025-01-14 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249049', 'tblTempVendorCDR_20' ) start [2025-01-14 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249049', 'tblTempVendorCDR_20' ) end [2025-01-14 21:32:19] Production.INFO: ProcessCDR(1,14249049,1,1,2) [2025-01-14 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249049', 'tblTempUsageDetail_20' ) start [2025-01-14 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249049', 'tblTempUsageDetail_20' ) end [2025-01-14 21:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:32:24] Production.INFO: ==4295== Releasing lock... [2025-01-14 21:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:32:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-14 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:33:05 [end_date_ymd] => 2025-01-14 21:33:05 [RateCDR] => 1 ) [2025-01-14 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:33:05' and `end` < '2025-01-14 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:33:18] Production.INFO: count ==1160 [2025-01-14 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:33:05 - End Time 2025-01-14 21:33:05 [2025-01-14 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249054', 'tblTempUsageDetail_20' ) start [2025-01-14 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249054', 'tblTempUsageDetail_20' ) end [2025-01-14 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249054', 'tblTempVendorCDR_20' ) start [2025-01-14 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249054', 'tblTempVendorCDR_20' ) end [2025-01-14 21:33:18] Production.INFO: ProcessCDR(1,14249054,1,1,2) [2025-01-14 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249054', 'tblTempUsageDetail_20' ) start [2025-01-14 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249054', 'tblTempUsageDetail_20' ) end [2025-01-14 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:33:21] Production.INFO: ==4376== Releasing lock... [2025-01-14 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:33:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-14 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:34:05 [end_date_ymd] => 2025-01-14 21:34:05 [RateCDR] => 1 ) [2025-01-14 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:34:05' and `end` < '2025-01-14 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:34:18] Production.INFO: count ==1155 [2025-01-14 21:34:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:34:05 - End Time 2025-01-14 21:34:05 [2025-01-14 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249059', 'tblTempUsageDetail_20' ) start [2025-01-14 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249059', 'tblTempUsageDetail_20' ) end [2025-01-14 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249059', 'tblTempVendorCDR_20' ) start [2025-01-14 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249059', 'tblTempVendorCDR_20' ) end [2025-01-14 21:34:18] Production.INFO: ProcessCDR(1,14249059,1,1,2) [2025-01-14 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249059', 'tblTempUsageDetail_20' ) start [2025-01-14 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249059', 'tblTempUsageDetail_20' ) end [2025-01-14 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:34:21] Production.INFO: ==4457== Releasing lock... [2025-01-14 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:34:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-14 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:35:04 [end_date_ymd] => 2025-01-14 21:35:04 [RateCDR] => 1 ) [2025-01-14 21:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:35:04' and `end` < '2025-01-14 21:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:35:17] Production.INFO: count ==1153 [2025-01-14 21:35:17] Production.ERROR: pbx CDR StartTime 2025-01-14 18:35:04 - End Time 2025-01-14 21:35:04 [2025-01-14 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249064', 'tblTempUsageDetail_20' ) start [2025-01-14 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249064', 'tblTempUsageDetail_20' ) end [2025-01-14 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249064', 'tblTempVendorCDR_20' ) start [2025-01-14 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249064', 'tblTempVendorCDR_20' ) end [2025-01-14 21:35:17] Production.INFO: ProcessCDR(1,14249064,1,1,2) [2025-01-14 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249064', 'tblTempUsageDetail_20' ) start [2025-01-14 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249064', 'tblTempUsageDetail_20' ) end [2025-01-14 21:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:35:20] Production.INFO: ==4536== Releasing lock... [2025-01-14 21:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:35:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-14 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:36:05 [end_date_ymd] => 2025-01-14 21:36:05 [RateCDR] => 1 ) [2025-01-14 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:36:05' and `end` < '2025-01-14 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:36:19] Production.INFO: count ==1152 [2025-01-14 21:36:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:36:05 - End Time 2025-01-14 21:36:05 [2025-01-14 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249069', 'tblTempUsageDetail_20' ) start [2025-01-14 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249069', 'tblTempUsageDetail_20' ) end [2025-01-14 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249069', 'tblTempVendorCDR_20' ) start [2025-01-14 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249069', 'tblTempVendorCDR_20' ) end [2025-01-14 21:36:19] Production.INFO: ProcessCDR(1,14249069,1,1,2) [2025-01-14 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249069', 'tblTempUsageDetail_20' ) start [2025-01-14 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249069', 'tblTempUsageDetail_20' ) end [2025-01-14 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:36:22] Production.INFO: ==4623== Releasing lock... [2025-01-14 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:36:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-14 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:37:05 [end_date_ymd] => 2025-01-14 21:37:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:37:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:37:18] Production.INFO: count ==1152 [2025-01-14 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:37:05 - End Time 2025-01-14 21:37:05 [2025-01-14 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249074', 'tblTempUsageDetail_20' ) start [2025-01-14 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249074', 'tblTempUsageDetail_20' ) end [2025-01-14 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249074', 'tblTempVendorCDR_20' ) start [2025-01-14 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249074', 'tblTempVendorCDR_20' ) end [2025-01-14 21:37:18] Production.INFO: ProcessCDR(1,14249074,1,1,2) [2025-01-14 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249074', 'tblTempUsageDetail_20' ) start [2025-01-14 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249074', 'tblTempUsageDetail_20' ) end [2025-01-14 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:37:23] Production.INFO: ==4703== Releasing lock... [2025-01-14 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:37:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-14 21:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:38:04 [end_date_ymd] => 2025-01-14 21:38:04 [RateCDR] => 1 ) [2025-01-14 21: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` >= '2025-01-14 18:38:04' and `end` < '2025-01-14 21: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 ,'') [2025-01-14 21:38:18] Production.INFO: count ==1144 [2025-01-14 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:38:04 - End Time 2025-01-14 21:38:04 [2025-01-14 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249079', 'tblTempUsageDetail_20' ) start [2025-01-14 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249079', 'tblTempUsageDetail_20' ) end [2025-01-14 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249079', 'tblTempVendorCDR_20' ) start [2025-01-14 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249079', 'tblTempVendorCDR_20' ) end [2025-01-14 21:38:19] Production.INFO: ProcessCDR(1,14249079,1,1,2) [2025-01-14 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249079', 'tblTempUsageDetail_20' ) start [2025-01-14 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249079', 'tblTempUsageDetail_20' ) end [2025-01-14 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:38:22] Production.INFO: ==4788== Releasing lock... [2025-01-14 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:38:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-14 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:39:06 [end_date_ymd] => 2025-01-14 21:39:06 [RateCDR] => 1 ) [2025-01-14 21:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:39:06' and `end` < '2025-01-14 21:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:39:18] Production.INFO: count ==1135 [2025-01-14 21:39:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:39:06 - End Time 2025-01-14 21:39:06 [2025-01-14 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249084', 'tblTempUsageDetail_20' ) start [2025-01-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249084', 'tblTempUsageDetail_20' ) end [2025-01-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249084', 'tblTempVendorCDR_20' ) start [2025-01-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249084', 'tblTempVendorCDR_20' ) end [2025-01-14 21:39:19] Production.INFO: ProcessCDR(1,14249084,1,1,2) [2025-01-14 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249084', 'tblTempUsageDetail_20' ) start [2025-01-14 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249084', 'tblTempUsageDetail_20' ) end [2025-01-14 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:39:22] Production.INFO: ==4869== Releasing lock... [2025-01-14 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:39:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-14 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:40:05 [end_date_ymd] => 2025-01-14 21:40:05 [RateCDR] => 1 ) [2025-01-14 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:40:05' and `end` < '2025-01-14 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:40:18] Production.INFO: count ==1136 [2025-01-14 21:40:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:40:05 - End Time 2025-01-14 21:40:05 [2025-01-14 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249089', 'tblTempUsageDetail_20' ) start [2025-01-14 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249089', 'tblTempUsageDetail_20' ) end [2025-01-14 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249089', 'tblTempVendorCDR_20' ) start [2025-01-14 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249089', 'tblTempVendorCDR_20' ) end [2025-01-14 21:40:18] Production.INFO: ProcessCDR(1,14249089,1,1,2) [2025-01-14 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249089', 'tblTempUsageDetail_20' ) start [2025-01-14 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249089', 'tblTempUsageDetail_20' ) end [2025-01-14 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:40:22] Production.INFO: ==4950== Releasing lock... [2025-01-14 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:40:22] Production.INFO: 36 MB #Memory Used# [2025-01-14 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:41:05 [end_date_ymd] => 2025-01-14 21:41:05 [RateCDR] => 1 ) [2025-01-14 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:41:05' and `end` < '2025-01-14 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:41:18] Production.INFO: count ==1087 [2025-01-14 21:41:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:41:05 - End Time 2025-01-14 21:41:05 [2025-01-14 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249095', 'tblTempUsageDetail_20' ) start [2025-01-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249095', 'tblTempUsageDetail_20' ) end [2025-01-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249095', 'tblTempVendorCDR_20' ) start [2025-01-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249095', 'tblTempVendorCDR_20' ) end [2025-01-14 21:41:18] Production.INFO: ProcessCDR(1,14249095,1,1,2) [2025-01-14 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249095', 'tblTempUsageDetail_20' ) start [2025-01-14 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249095', 'tblTempUsageDetail_20' ) end [2025-01-14 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:41:23] Production.INFO: ==5034== Releasing lock... [2025-01-14 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:41:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-14 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:42:05 [end_date_ymd] => 2025-01-14 21:42:05 [RateCDR] => 1 ) [2025-01-14 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:42:05' and `end` < '2025-01-14 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:42:18] Production.INFO: count ==1086 [2025-01-14 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:42:05 - End Time 2025-01-14 21:42:05 [2025-01-14 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249100', 'tblTempUsageDetail_20' ) start [2025-01-14 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249100', 'tblTempUsageDetail_20' ) end [2025-01-14 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249100', 'tblTempVendorCDR_20' ) start [2025-01-14 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249100', 'tblTempVendorCDR_20' ) end [2025-01-14 21:42:18] Production.INFO: ProcessCDR(1,14249100,1,1,2) [2025-01-14 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249100', 'tblTempUsageDetail_20' ) start [2025-01-14 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249100', 'tblTempUsageDetail_20' ) end [2025-01-14 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:42:21] Production.INFO: ==5115== Releasing lock... [2025-01-14 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:42:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-14 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:43:05 [end_date_ymd] => 2025-01-14 21:43:05 [RateCDR] => 1 ) [2025-01-14 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:43:05' and `end` < '2025-01-14 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:43:19] Production.INFO: count ==1090 [2025-01-14 21:43:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:43:05 - End Time 2025-01-14 21:43:05 [2025-01-14 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249105', 'tblTempUsageDetail_20' ) start [2025-01-14 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249105', 'tblTempUsageDetail_20' ) end [2025-01-14 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249105', 'tblTempVendorCDR_20' ) start [2025-01-14 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249105', 'tblTempVendorCDR_20' ) end [2025-01-14 21:43:19] Production.INFO: ProcessCDR(1,14249105,1,1,2) [2025-01-14 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249105', 'tblTempUsageDetail_20' ) start [2025-01-14 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249105', 'tblTempUsageDetail_20' ) end [2025-01-14 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:43:22] Production.INFO: ==5196== Releasing lock... [2025-01-14 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:43:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-14 21:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:44:04 [end_date_ymd] => 2025-01-14 21:44:04 [RateCDR] => 1 ) [2025-01-14 21:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:44:04' and `end` < '2025-01-14 21:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:44:17] Production.INFO: count ==1089 [2025-01-14 21:44:17] Production.ERROR: pbx CDR StartTime 2025-01-14 18:44:04 - End Time 2025-01-14 21:44:04 [2025-01-14 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249110', 'tblTempUsageDetail_20' ) start [2025-01-14 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249110', 'tblTempUsageDetail_20' ) end [2025-01-14 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249110', 'tblTempVendorCDR_20' ) start [2025-01-14 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249110', 'tblTempVendorCDR_20' ) end [2025-01-14 21:44:17] Production.INFO: ProcessCDR(1,14249110,1,1,2) [2025-01-14 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249110', 'tblTempUsageDetail_20' ) start [2025-01-14 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249110', 'tblTempUsageDetail_20' ) end [2025-01-14 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:44:21] Production.INFO: ==5278== Releasing lock... [2025-01-14 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:44:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-14 21:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:45:06 [end_date_ymd] => 2025-01-14 21:45:06 [RateCDR] => 1 ) [2025-01-14 21:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:45:06' and `end` < '2025-01-14 21:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:45:18] Production.INFO: count ==1088 [2025-01-14 21:45:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:45:06 - End Time 2025-01-14 21:45:06 [2025-01-14 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249115', 'tblTempUsageDetail_20' ) start [2025-01-14 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249115', 'tblTempUsageDetail_20' ) end [2025-01-14 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249115', 'tblTempVendorCDR_20' ) start [2025-01-14 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249115', 'tblTempVendorCDR_20' ) end [2025-01-14 21:45:19] Production.INFO: ProcessCDR(1,14249115,1,1,2) [2025-01-14 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249115', 'tblTempUsageDetail_20' ) start [2025-01-14 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249115', 'tblTempUsageDetail_20' ) end [2025-01-14 21:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:45:24] Production.INFO: ==5402== Releasing lock... [2025-01-14 21:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:45:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-14 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:46:06 [end_date_ymd] => 2025-01-14 21:46:06 [RateCDR] => 1 ) [2025-01-14 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:46:06' and `end` < '2025-01-14 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:46:18] Production.INFO: count ==1088 [2025-01-14 21:46:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:46:06 - End Time 2025-01-14 21:46:06 [2025-01-14 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249120', 'tblTempUsageDetail_20' ) start [2025-01-14 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249120', 'tblTempUsageDetail_20' ) end [2025-01-14 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249120', 'tblTempVendorCDR_20' ) start [2025-01-14 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249120', 'tblTempVendorCDR_20' ) end [2025-01-14 21:46:19] Production.INFO: ProcessCDR(1,14249120,1,1,2) [2025-01-14 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249120', 'tblTempUsageDetail_20' ) start [2025-01-14 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249120', 'tblTempUsageDetail_20' ) end [2025-01-14 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:46:22] Production.INFO: ==5485== Releasing lock... [2025-01-14 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:46:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-14 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:47:05 [end_date_ymd] => 2025-01-14 21:47:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:47:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:47:18] Production.INFO: count ==1082 [2025-01-14 21:47:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:47:05 - End Time 2025-01-14 21:47:05 [2025-01-14 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249125', 'tblTempUsageDetail_20' ) start [2025-01-14 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249125', 'tblTempUsageDetail_20' ) end [2025-01-14 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249125', 'tblTempVendorCDR_20' ) start [2025-01-14 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249125', 'tblTempVendorCDR_20' ) end [2025-01-14 21:47:19] Production.INFO: ProcessCDR(1,14249125,1,1,2) [2025-01-14 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249125', 'tblTempUsageDetail_20' ) start [2025-01-14 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249125', 'tblTempUsageDetail_20' ) end [2025-01-14 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:47:22] Production.INFO: ==5566== Releasing lock... [2025-01-14 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:47:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-14 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:48:06 [end_date_ymd] => 2025-01-14 21:48:06 [RateCDR] => 1 ) [2025-01-14 21:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:48:06' and `end` < '2025-01-14 21:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:48:19] Production.INFO: count ==1070 [2025-01-14 21:48:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:48:06 - End Time 2025-01-14 21:48:06 [2025-01-14 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249130', 'tblTempUsageDetail_20' ) start [2025-01-14 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249130', 'tblTempUsageDetail_20' ) end [2025-01-14 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249130', 'tblTempVendorCDR_20' ) start [2025-01-14 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249130', 'tblTempVendorCDR_20' ) end [2025-01-14 21:48:19] Production.INFO: ProcessCDR(1,14249130,1,1,2) [2025-01-14 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249130', 'tblTempUsageDetail_20' ) start [2025-01-14 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249130', 'tblTempUsageDetail_20' ) end [2025-01-14 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:48:22] Production.INFO: ==5646== Releasing lock... [2025-01-14 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:48:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-14 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:49:05 [end_date_ymd] => 2025-01-14 21:49:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:49:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:49:18] Production.INFO: count ==1070 [2025-01-14 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:49:05 - End Time 2025-01-14 21:49:05 [2025-01-14 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249135', 'tblTempUsageDetail_20' ) start [2025-01-14 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249135', 'tblTempUsageDetail_20' ) end [2025-01-14 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249135', 'tblTempVendorCDR_20' ) start [2025-01-14 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249135', 'tblTempVendorCDR_20' ) end [2025-01-14 21:49:18] Production.INFO: ProcessCDR(1,14249135,1,1,2) [2025-01-14 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249135', 'tblTempUsageDetail_20' ) start [2025-01-14 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249135', 'tblTempUsageDetail_20' ) end [2025-01-14 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:49:21] Production.INFO: ==5728== Releasing lock... [2025-01-14 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:49:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-14 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:50:06 [end_date_ymd] => 2025-01-14 21:50:06 [RateCDR] => 1 ) [2025-01-14 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:50:06' and `end` < '2025-01-14 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:50:19] Production.INFO: count ==1069 [2025-01-14 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:50:06 - End Time 2025-01-14 21:50:06 [2025-01-14 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249141', 'tblTempUsageDetail_20' ) start [2025-01-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249141', 'tblTempUsageDetail_20' ) end [2025-01-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249141', 'tblTempVendorCDR_20' ) start [2025-01-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249141', 'tblTempVendorCDR_20' ) end [2025-01-14 21:50:19] Production.INFO: ProcessCDR(1,14249141,1,1,2) [2025-01-14 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249141', 'tblTempUsageDetail_20' ) start [2025-01-14 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249141', 'tblTempUsageDetail_20' ) end [2025-01-14 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:50:24] Production.INFO: ==5811== Releasing lock... [2025-01-14 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:50:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-14 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:51:05 [end_date_ymd] => 2025-01-14 21:51:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:51:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:51:17] Production.INFO: count ==1021 [2025-01-14 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:51:05 - End Time 2025-01-14 21:51:05 [2025-01-14 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249146', 'tblTempUsageDetail_20' ) start [2025-01-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249146', 'tblTempUsageDetail_20' ) end [2025-01-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249146', 'tblTempVendorCDR_20' ) start [2025-01-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249146', 'tblTempVendorCDR_20' ) end [2025-01-14 21:51:18] Production.INFO: ProcessCDR(1,14249146,1,1,2) [2025-01-14 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249146', 'tblTempUsageDetail_20' ) start [2025-01-14 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249146', 'tblTempUsageDetail_20' ) end [2025-01-14 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:51:21] Production.INFO: ==5893== Releasing lock... [2025-01-14 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:51:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-14 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:52:05 [end_date_ymd] => 2025-01-14 21:52:05 [RateCDR] => 1 ) [2025-01-14 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:52:05' and `end` < '2025-01-14 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:52:19] Production.INFO: count ==1015 [2025-01-14 21:52:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:52:05 - End Time 2025-01-14 21:52:05 [2025-01-14 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249151', 'tblTempUsageDetail_20' ) start [2025-01-14 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249151', 'tblTempUsageDetail_20' ) end [2025-01-14 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249151', 'tblTempVendorCDR_20' ) start [2025-01-14 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249151', 'tblTempVendorCDR_20' ) end [2025-01-14 21:52:19] Production.INFO: ProcessCDR(1,14249151,1,1,2) [2025-01-14 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249151', 'tblTempUsageDetail_20' ) start [2025-01-14 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249151', 'tblTempUsageDetail_20' ) end [2025-01-14 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:52:23] Production.INFO: ==5976== Releasing lock... [2025-01-14 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:52:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-14 21:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:53:04 [end_date_ymd] => 2025-01-14 21:53:04 [RateCDR] => 1 ) [2025-01-14 21:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:53:04' and `end` < '2025-01-14 21:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:53:17] Production.INFO: count ==1014 [2025-01-14 21:53:17] Production.ERROR: pbx CDR StartTime 2025-01-14 18:53:04 - End Time 2025-01-14 21:53:04 [2025-01-14 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249156', 'tblTempUsageDetail_20' ) start [2025-01-14 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249156', 'tblTempUsageDetail_20' ) end [2025-01-14 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249156', 'tblTempVendorCDR_20' ) start [2025-01-14 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249156', 'tblTempVendorCDR_20' ) end [2025-01-14 21:53:17] Production.INFO: ProcessCDR(1,14249156,1,1,2) [2025-01-14 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249156', 'tblTempUsageDetail_20' ) start [2025-01-14 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249156', 'tblTempUsageDetail_20' ) end [2025-01-14 21:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:53:20] Production.INFO: ==6056== Releasing lock... [2025-01-14 21:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:53:20] Production.INFO: 35.25 MB #Memory Used# [2025-01-14 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:54:05 [end_date_ymd] => 2025-01-14 21:54:05 [RateCDR] => 1 ) [2025-01-14 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:54:05' and `end` < '2025-01-14 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:54:19] Production.INFO: count ==1012 [2025-01-14 21:54:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:54:05 - End Time 2025-01-14 21:54:05 [2025-01-14 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249161', 'tblTempUsageDetail_20' ) start [2025-01-14 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249161', 'tblTempUsageDetail_20' ) end [2025-01-14 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249161', 'tblTempVendorCDR_20' ) start [2025-01-14 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249161', 'tblTempVendorCDR_20' ) end [2025-01-14 21:54:19] Production.INFO: ProcessCDR(1,14249161,1,1,2) [2025-01-14 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249161', 'tblTempUsageDetail_20' ) start [2025-01-14 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249161', 'tblTempUsageDetail_20' ) end [2025-01-14 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:54:22] Production.INFO: ==6137== Releasing lock... [2025-01-14 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:54:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-14 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:55:05 [end_date_ymd] => 2025-01-14 21:55:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:55:05' and `end` < '2025-01-14 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:55:18] Production.INFO: count ==1007 [2025-01-14 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:55:05 - End Time 2025-01-14 21:55:05 [2025-01-14 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249166', 'tblTempUsageDetail_20' ) start [2025-01-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249166', 'tblTempUsageDetail_20' ) end [2025-01-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249166', 'tblTempVendorCDR_20' ) start [2025-01-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249166', 'tblTempVendorCDR_20' ) end [2025-01-14 21:55:18] Production.INFO: ProcessCDR(1,14249166,1,1,2) [2025-01-14 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249166', 'tblTempUsageDetail_20' ) start [2025-01-14 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249166', 'tblTempUsageDetail_20' ) end [2025-01-14 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:55:22] Production.INFO: ==6220== Releasing lock... [2025-01-14 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:55:22] Production.INFO: 35 MB #Memory Used# [2025-01-14 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:56:05 [end_date_ymd] => 2025-01-14 21:56:05 [RateCDR] => 1 ) [2025-01-14 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:56:05' and `end` < '2025-01-14 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:56:18] Production.INFO: count ==994 [2025-01-14 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:56:05 - End Time 2025-01-14 21:56:05 [2025-01-14 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249171', 'tblTempUsageDetail_20' ) start [2025-01-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249171', 'tblTempUsageDetail_20' ) end [2025-01-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249171', 'tblTempVendorCDR_20' ) start [2025-01-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249171', 'tblTempVendorCDR_20' ) end [2025-01-14 21:56:18] Production.INFO: ProcessCDR(1,14249171,1,1,2) [2025-01-14 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249171', 'tblTempUsageDetail_20' ) start [2025-01-14 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249171', 'tblTempUsageDetail_20' ) end [2025-01-14 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:56:22] Production.INFO: ==6300== Releasing lock... [2025-01-14 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:56:22] Production.INFO: 35 MB #Memory Used# [2025-01-14 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:57:05 [end_date_ymd] => 2025-01-14 21:57:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 18:57:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 21:57:19] Production.INFO: count ==993 [2025-01-14 21:57:19] Production.ERROR: pbx CDR StartTime 2025-01-14 18:57:05 - End Time 2025-01-14 21:57:05 [2025-01-14 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249176', 'tblTempUsageDetail_20' ) start [2025-01-14 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249176', 'tblTempUsageDetail_20' ) end [2025-01-14 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249176', 'tblTempVendorCDR_20' ) start [2025-01-14 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249176', 'tblTempVendorCDR_20' ) end [2025-01-14 21:57:19] Production.INFO: ProcessCDR(1,14249176,1,1,2) [2025-01-14 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249176', 'tblTempUsageDetail_20' ) start [2025-01-14 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249176', 'tblTempUsageDetail_20' ) end [2025-01-14 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:57:22] Production.INFO: ==6381== Releasing lock... [2025-01-14 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:57:22] Production.INFO: 35 MB #Memory Used# [2025-01-14 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:58:05 [end_date_ymd] => 2025-01-14 21:58:05 [RateCDR] => 1 ) [2025-01-14 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:58:05' and `end` < '2025-01-14 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:58:18] Production.INFO: count ==989 [2025-01-14 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:58:05 - End Time 2025-01-14 21:58:05 [2025-01-14 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249181', 'tblTempUsageDetail_20' ) start [2025-01-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249181', 'tblTempUsageDetail_20' ) end [2025-01-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249181', 'tblTempVendorCDR_20' ) start [2025-01-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249181', 'tblTempVendorCDR_20' ) end [2025-01-14 21:58:18] Production.INFO: ProcessCDR(1,14249181,1,1,2) [2025-01-14 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249181', 'tblTempUsageDetail_20' ) start [2025-01-14 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249181', 'tblTempUsageDetail_20' ) end [2025-01-14 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:58:22] Production.INFO: ==6464== Releasing lock... [2025-01-14 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:58:22] Production.INFO: 35 MB #Memory Used# [2025-01-14 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 18:59:05 [end_date_ymd] => 2025-01-14 21:59:05 [RateCDR] => 1 ) [2025-01-14 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 18:59:05' and `end` < '2025-01-14 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 21:59:18] Production.INFO: count ==980 [2025-01-14 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-14 18:59:05 - End Time 2025-01-14 21:59:05 [2025-01-14 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249186', 'tblTempUsageDetail_20' ) start [2025-01-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249186', 'tblTempUsageDetail_20' ) end [2025-01-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249186', 'tblTempVendorCDR_20' ) start [2025-01-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249186', 'tblTempVendorCDR_20' ) end [2025-01-14 21:59:18] Production.INFO: ProcessCDR(1,14249186,1,1,2) [2025-01-14 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249186', 'tblTempUsageDetail_20' ) start [2025-01-14 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249186', 'tblTempUsageDetail_20' ) end [2025-01-14 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 21:59:23] Production.INFO: ==6549== Releasing lock... [2025-01-14 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 21:59:23] Production.INFO: 35 MB #Memory Used# [2025-01-14 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:00:06 [end_date_ymd] => 2025-01-14 22:00:06 [RateCDR] => 1 ) [2025-01-14 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:00:06' and `end` < '2025-01-14 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:00:18] Production.INFO: count ==967 [2025-01-14 22:00:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:00:06 - End Time 2025-01-14 22:00:06 [2025-01-14 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249192', 'tblTempUsageDetail_20' ) start [2025-01-14 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249192', 'tblTempUsageDetail_20' ) end [2025-01-14 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249192', 'tblTempVendorCDR_20' ) start [2025-01-14 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249192', 'tblTempVendorCDR_20' ) end [2025-01-14 22:00:18] Production.INFO: ProcessCDR(1,14249192,1,1,2) [2025-01-14 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249192', 'tblTempUsageDetail_20' ) start [2025-01-14 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249192', 'tblTempUsageDetail_20' ) end [2025-01-14 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:00:22] Production.INFO: ==6671== Releasing lock... [2025-01-14 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:00:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-14 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:01:05 [end_date_ymd] => 2025-01-14 22:01:05 [RateCDR] => 1 ) [2025-01-14 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:01:05' and `end` < '2025-01-14 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:01:18] Production.INFO: count ==902 [2025-01-14 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:01:05 - End Time 2025-01-14 22:01:05 [2025-01-14 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249197', 'tblTempUsageDetail_20' ) start [2025-01-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249197', 'tblTempUsageDetail_20' ) end [2025-01-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249197', 'tblTempVendorCDR_20' ) start [2025-01-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249197', 'tblTempVendorCDR_20' ) end [2025-01-14 22:01:18] Production.INFO: ProcessCDR(1,14249197,1,1,2) [2025-01-14 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249197', 'tblTempUsageDetail_20' ) start [2025-01-14 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249197', 'tblTempUsageDetail_20' ) end [2025-01-14 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:01:21] Production.INFO: ==6766== Releasing lock... [2025-01-14 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:01:21] Production.INFO: 34 MB #Memory Used# [2025-01-14 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:02:05 [end_date_ymd] => 2025-01-14 22:02:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:02:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:02:19] Production.INFO: count ==900 [2025-01-14 22:02:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:02:05 - End Time 2025-01-14 22:02:05 [2025-01-14 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249202', 'tblTempUsageDetail_20' ) start [2025-01-14 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249202', 'tblTempUsageDetail_20' ) end [2025-01-14 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249202', 'tblTempVendorCDR_20' ) start [2025-01-14 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249202', 'tblTempVendorCDR_20' ) end [2025-01-14 22:02:19] Production.INFO: ProcessCDR(1,14249202,1,1,2) [2025-01-14 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249202', 'tblTempUsageDetail_20' ) start [2025-01-14 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249202', 'tblTempUsageDetail_20' ) end [2025-01-14 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:02:23] Production.INFO: ==6846== Releasing lock... [2025-01-14 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:02:23] Production.INFO: 34 MB #Memory Used# [2025-01-14 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:03:05 [end_date_ymd] => 2025-01-14 22:03:05 [RateCDR] => 1 ) [2025-01-14 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:03:05' and `end` < '2025-01-14 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:03:17] Production.INFO: count ==899 [2025-01-14 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:03:05 - End Time 2025-01-14 22:03:05 [2025-01-14 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249207', 'tblTempUsageDetail_20' ) start [2025-01-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249207', 'tblTempUsageDetail_20' ) end [2025-01-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249207', 'tblTempVendorCDR_20' ) start [2025-01-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249207', 'tblTempVendorCDR_20' ) end [2025-01-14 22:03:18] Production.INFO: ProcessCDR(1,14249207,1,1,2) [2025-01-14 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249207', 'tblTempUsageDetail_20' ) start [2025-01-14 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249207', 'tblTempUsageDetail_20' ) end [2025-01-14 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:03:21] Production.INFO: ==6926== Releasing lock... [2025-01-14 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:03:21] Production.INFO: 34 MB #Memory Used# [2025-01-14 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:04:05 [end_date_ymd] => 2025-01-14 22:04:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:04:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:04:18] Production.INFO: count ==899 [2025-01-14 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:04:05 - End Time 2025-01-14 22:04:05 [2025-01-14 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249212', 'tblTempUsageDetail_20' ) start [2025-01-14 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249212', 'tblTempUsageDetail_20' ) end [2025-01-14 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249212', 'tblTempVendorCDR_20' ) start [2025-01-14 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249212', 'tblTempVendorCDR_20' ) end [2025-01-14 22:04:18] Production.INFO: ProcessCDR(1,14249212,1,1,2) [2025-01-14 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249212', 'tblTempUsageDetail_20' ) start [2025-01-14 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249212', 'tblTempUsageDetail_20' ) end [2025-01-14 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:04:22] Production.INFO: ==7008== Releasing lock... [2025-01-14 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:04:22] Production.INFO: 34 MB #Memory Used# [2025-01-14 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:05:05 [end_date_ymd] => 2025-01-14 22:05:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:05:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:05:17] Production.INFO: count ==896 [2025-01-14 22:05:17] Production.ERROR: pbx CDR StartTime 2025-01-14 19:05:05 - End Time 2025-01-14 22:05:05 [2025-01-14 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249217', 'tblTempUsageDetail_20' ) start [2025-01-14 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249217', 'tblTempUsageDetail_20' ) end [2025-01-14 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249217', 'tblTempVendorCDR_20' ) start [2025-01-14 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249217', 'tblTempVendorCDR_20' ) end [2025-01-14 22:05:17] Production.INFO: ProcessCDR(1,14249217,1,1,2) [2025-01-14 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249217', 'tblTempUsageDetail_20' ) start [2025-01-14 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249217', 'tblTempUsageDetail_20' ) end [2025-01-14 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:05:21] Production.INFO: ==7087== Releasing lock... [2025-01-14 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:05:21] Production.INFO: 34 MB #Memory Used# [2025-01-14 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:06:06 [end_date_ymd] => 2025-01-14 22:06:06 [RateCDR] => 1 ) [2025-01-14 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:06:06' and `end` < '2025-01-14 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:06:19] Production.INFO: count ==899 [2025-01-14 22:06:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:06:06 - End Time 2025-01-14 22:06:06 [2025-01-14 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249222', 'tblTempUsageDetail_20' ) start [2025-01-14 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249222', 'tblTempUsageDetail_20' ) end [2025-01-14 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249222', 'tblTempVendorCDR_20' ) start [2025-01-14 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249222', 'tblTempVendorCDR_20' ) end [2025-01-14 22:06:19] Production.INFO: ProcessCDR(1,14249222,1,1,2) [2025-01-14 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249222', 'tblTempUsageDetail_20' ) start [2025-01-14 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249222', 'tblTempUsageDetail_20' ) end [2025-01-14 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:06:22] Production.INFO: ==7170== Releasing lock... [2025-01-14 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:06:22] Production.INFO: 34 MB #Memory Used# [2025-01-14 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:07:05 [end_date_ymd] => 2025-01-14 22:07:05 [RateCDR] => 1 ) [2025-01-14 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:07:05' and `end` < '2025-01-14 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:07:18] Production.INFO: count ==898 [2025-01-14 22:07:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:07:05 - End Time 2025-01-14 22:07:05 [2025-01-14 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249227', 'tblTempUsageDetail_20' ) start [2025-01-14 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249227', 'tblTempUsageDetail_20' ) end [2025-01-14 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249227', 'tblTempVendorCDR_20' ) start [2025-01-14 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249227', 'tblTempVendorCDR_20' ) end [2025-01-14 22:07:18] Production.INFO: ProcessCDR(1,14249227,1,1,2) [2025-01-14 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249227', 'tblTempUsageDetail_20' ) start [2025-01-14 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249227', 'tblTempUsageDetail_20' ) end [2025-01-14 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:07:22] Production.INFO: ==7252== Releasing lock... [2025-01-14 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:07:22] Production.INFO: 34 MB #Memory Used# [2025-01-14 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:08:05 [end_date_ymd] => 2025-01-14 22:08:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:08:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:08:19] Production.INFO: count ==898 [2025-01-14 22:08:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:08:05 - End Time 2025-01-14 22:08:05 [2025-01-14 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249232', 'tblTempUsageDetail_20' ) start [2025-01-14 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249232', 'tblTempUsageDetail_20' ) end [2025-01-14 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249232', 'tblTempVendorCDR_20' ) start [2025-01-14 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249232', 'tblTempVendorCDR_20' ) end [2025-01-14 22:08:19] Production.INFO: ProcessCDR(1,14249232,1,1,2) [2025-01-14 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249232', 'tblTempUsageDetail_20' ) start [2025-01-14 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249232', 'tblTempUsageDetail_20' ) end [2025-01-14 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:08:22] Production.INFO: ==7333== Releasing lock... [2025-01-14 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:08:22] Production.INFO: 34 MB #Memory Used# [2025-01-14 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:09:04 [end_date_ymd] => 2025-01-14 22:09:04 [RateCDR] => 1 ) [2025-01-14 22:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:09:04' and `end` < '2025-01-14 22:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:09:19] Production.INFO: count ==891 [2025-01-14 22:09:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:09:04 - End Time 2025-01-14 22:09:04 [2025-01-14 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249237', 'tblTempUsageDetail_20' ) start [2025-01-14 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249237', 'tblTempUsageDetail_20' ) end [2025-01-14 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249237', 'tblTempVendorCDR_20' ) start [2025-01-14 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249237', 'tblTempVendorCDR_20' ) end [2025-01-14 22:09:19] Production.INFO: ProcessCDR(1,14249237,1,1,2) [2025-01-14 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249237', 'tblTempUsageDetail_20' ) start [2025-01-14 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249237', 'tblTempUsageDetail_20' ) end [2025-01-14 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:09:22] Production.INFO: ==7401== Releasing lock... [2025-01-14 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-14 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:10:06 [end_date_ymd] => 2025-01-14 22:10:06 [RateCDR] => 1 ) [2025-01-14 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:10:06' and `end` < '2025-01-14 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:10:18] Production.INFO: count ==888 [2025-01-14 22:10:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:10:06 - End Time 2025-01-14 22:10:06 [2025-01-14 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249243', 'tblTempUsageDetail_20' ) start [2025-01-14 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249243', 'tblTempUsageDetail_20' ) end [2025-01-14 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249243', 'tblTempVendorCDR_20' ) start [2025-01-14 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249243', 'tblTempVendorCDR_20' ) end [2025-01-14 22:10:18] Production.INFO: ProcessCDR(1,14249243,1,1,2) [2025-01-14 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249243', 'tblTempUsageDetail_20' ) start [2025-01-14 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249243', 'tblTempUsageDetail_20' ) end [2025-01-14 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:10:22] Production.INFO: ==7476== Releasing lock... [2025-01-14 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-14 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:11:06 [end_date_ymd] => 2025-01-14 22:11:06 [RateCDR] => 1 ) [2025-01-14 22:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:11:06' and `end` < '2025-01-14 22:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:11:18] Production.INFO: count ==866 [2025-01-14 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:11:06 - End Time 2025-01-14 22:11:06 [2025-01-14 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249248', 'tblTempUsageDetail_20' ) start [2025-01-14 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249248', 'tblTempUsageDetail_20' ) end [2025-01-14 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249248', 'tblTempVendorCDR_20' ) start [2025-01-14 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249248', 'tblTempVendorCDR_20' ) end [2025-01-14 22:11:18] Production.INFO: ProcessCDR(1,14249248,1,1,2) [2025-01-14 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249248', 'tblTempUsageDetail_20' ) start [2025-01-14 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249248', 'tblTempUsageDetail_20' ) end [2025-01-14 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:11:22] Production.INFO: ==7548== Releasing lock... [2025-01-14 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:11:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-14 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:12:05 [end_date_ymd] => 2025-01-14 22:12:05 [RateCDR] => 1 ) [2025-01-14 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:12:05' and `end` < '2025-01-14 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:12:18] Production.INFO: count ==863 [2025-01-14 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:12:05 - End Time 2025-01-14 22:12:05 [2025-01-14 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249253', 'tblTempUsageDetail_20' ) start [2025-01-14 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249253', 'tblTempUsageDetail_20' ) end [2025-01-14 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249253', 'tblTempVendorCDR_20' ) start [2025-01-14 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249253', 'tblTempVendorCDR_20' ) end [2025-01-14 22:12:18] Production.INFO: ProcessCDR(1,14249253,1,1,2) [2025-01-14 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249253', 'tblTempUsageDetail_20' ) start [2025-01-14 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249253', 'tblTempUsageDetail_20' ) end [2025-01-14 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:12:21] Production.INFO: ==7622== Releasing lock... [2025-01-14 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:12:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-14 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:13:06 [end_date_ymd] => 2025-01-14 22:13:06 [RateCDR] => 1 ) [2025-01-14 22:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:13:06' and `end` < '2025-01-14 22:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:13:20] Production.INFO: count ==863 [2025-01-14 22:13:20] Production.ERROR: pbx CDR StartTime 2025-01-14 19:13:06 - End Time 2025-01-14 22:13:06 [2025-01-14 22:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249258', 'tblTempUsageDetail_20' ) start [2025-01-14 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249258', 'tblTempUsageDetail_20' ) end [2025-01-14 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249258', 'tblTempVendorCDR_20' ) start [2025-01-14 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249258', 'tblTempVendorCDR_20' ) end [2025-01-14 22:13:20] Production.INFO: ProcessCDR(1,14249258,1,1,2) [2025-01-14 22:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249258', 'tblTempUsageDetail_20' ) start [2025-01-14 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249258', 'tblTempUsageDetail_20' ) end [2025-01-14 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:13:23] Production.INFO: ==7697== Releasing lock... [2025-01-14 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:13:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-14 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:14:05 [end_date_ymd] => 2025-01-14 22:14:05 [RateCDR] => 1 ) [2025-01-14 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:14:05' and `end` < '2025-01-14 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:14:17] Production.INFO: count ==863 [2025-01-14 22:14:17] Production.ERROR: pbx CDR StartTime 2025-01-14 19:14:05 - End Time 2025-01-14 22:14:05 [2025-01-14 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249263', 'tblTempUsageDetail_20' ) start [2025-01-14 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249263', 'tblTempUsageDetail_20' ) end [2025-01-14 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249263', 'tblTempVendorCDR_20' ) start [2025-01-14 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249263', 'tblTempVendorCDR_20' ) end [2025-01-14 22:14:17] Production.INFO: ProcessCDR(1,14249263,1,1,2) [2025-01-14 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249263', 'tblTempUsageDetail_20' ) start [2025-01-14 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249263', 'tblTempUsageDetail_20' ) end [2025-01-14 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:14:21] Production.INFO: ==7766== Releasing lock... [2025-01-14 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:14:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-14 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:15:05 [end_date_ymd] => 2025-01-14 22:15:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:15:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:15:18] Production.INFO: count ==861 [2025-01-14 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:15:05 - End Time 2025-01-14 22:15:05 [2025-01-14 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249268', 'tblTempUsageDetail_20' ) start [2025-01-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249268', 'tblTempUsageDetail_20' ) end [2025-01-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249268', 'tblTempVendorCDR_20' ) start [2025-01-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249268', 'tblTempVendorCDR_20' ) end [2025-01-14 22:15:18] Production.INFO: ProcessCDR(1,14249268,1,1,2) [2025-01-14 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249268', 'tblTempUsageDetail_20' ) start [2025-01-14 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249268', 'tblTempUsageDetail_20' ) end [2025-01-14 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:15:23] Production.INFO: ==7848== Releasing lock... [2025-01-14 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:15:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-14 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:16:05 [end_date_ymd] => 2025-01-14 22:16:05 [RateCDR] => 1 ) [2025-01-14 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:16:05' and `end` < '2025-01-14 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:16:19] Production.INFO: count ==850 [2025-01-14 22:16:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:16:05 - End Time 2025-01-14 22:16:05 [2025-01-14 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249273', 'tblTempUsageDetail_20' ) start [2025-01-14 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249273', 'tblTempUsageDetail_20' ) end [2025-01-14 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249273', 'tblTempVendorCDR_20' ) start [2025-01-14 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249273', 'tblTempVendorCDR_20' ) end [2025-01-14 22:16:19] Production.INFO: ProcessCDR(1,14249273,1,1,2) [2025-01-14 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249273', 'tblTempUsageDetail_20' ) start [2025-01-14 22:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249273', 'tblTempUsageDetail_20' ) end [2025-01-14 22:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:16:24] Production.INFO: ==7975== Releasing lock... [2025-01-14 22:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:16:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:17:05 [end_date_ymd] => 2025-01-14 22:17:05 [RateCDR] => 1 ) [2025-01-14 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:17:05' and `end` < '2025-01-14 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:17:19] Production.INFO: count ==850 [2025-01-14 22:17:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:17:05 - End Time 2025-01-14 22:17:05 [2025-01-14 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249278', 'tblTempUsageDetail_20' ) start [2025-01-14 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249278', 'tblTempUsageDetail_20' ) end [2025-01-14 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249278', 'tblTempVendorCDR_20' ) start [2025-01-14 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249278', 'tblTempVendorCDR_20' ) end [2025-01-14 22:17:19] Production.INFO: ProcessCDR(1,14249278,1,1,2) [2025-01-14 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249278', 'tblTempUsageDetail_20' ) start [2025-01-14 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249278', 'tblTempUsageDetail_20' ) end [2025-01-14 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:17:23] Production.INFO: ==8061== Releasing lock... [2025-01-14 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:17:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:18:05 [end_date_ymd] => 2025-01-14 22:18:05 [RateCDR] => 1 ) [2025-01-14 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:18:05' and `end` < '2025-01-14 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:18:19] Production.INFO: count ==843 [2025-01-14 22:18:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:18:05 - End Time 2025-01-14 22:18:05 [2025-01-14 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249283', 'tblTempUsageDetail_20' ) start [2025-01-14 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249283', 'tblTempUsageDetail_20' ) end [2025-01-14 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249283', 'tblTempVendorCDR_20' ) start [2025-01-14 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249283', 'tblTempVendorCDR_20' ) end [2025-01-14 22:18:19] Production.INFO: ProcessCDR(1,14249283,1,1,2) [2025-01-14 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249283', 'tblTempUsageDetail_20' ) start [2025-01-14 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249283', 'tblTempUsageDetail_20' ) end [2025-01-14 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:18:22] Production.INFO: ==8161== Releasing lock... [2025-01-14 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:18:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:19:05 [end_date_ymd] => 2025-01-14 22:19:05 [RateCDR] => 1 ) [2025-01-14 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:19:05' and `end` < '2025-01-14 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:19:17] Production.INFO: count ==843 [2025-01-14 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:19:05 - End Time 2025-01-14 22:19:05 [2025-01-14 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249288', 'tblTempUsageDetail_20' ) start [2025-01-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249288', 'tblTempUsageDetail_20' ) end [2025-01-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249288', 'tblTempVendorCDR_20' ) start [2025-01-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249288', 'tblTempVendorCDR_20' ) end [2025-01-14 22:19:18] Production.INFO: ProcessCDR(1,14249288,1,1,2) [2025-01-14 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249288', 'tblTempUsageDetail_20' ) start [2025-01-14 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249288', 'tblTempUsageDetail_20' ) end [2025-01-14 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:19:21] Production.INFO: ==8238== Releasing lock... [2025-01-14 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:19:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:20:06 [end_date_ymd] => 2025-01-14 22:20:06 [RateCDR] => 1 ) [2025-01-14 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:20:06' and `end` < '2025-01-14 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:20:19] Production.INFO: count ==841 [2025-01-14 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:20:06 - End Time 2025-01-14 22:20:06 [2025-01-14 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249294', 'tblTempUsageDetail_20' ) start [2025-01-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249294', 'tblTempUsageDetail_20' ) end [2025-01-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249294', 'tblTempVendorCDR_20' ) start [2025-01-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249294', 'tblTempVendorCDR_20' ) end [2025-01-14 22:20:19] Production.INFO: ProcessCDR(1,14249294,1,1,2) [2025-01-14 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249294', 'tblTempUsageDetail_20' ) start [2025-01-14 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249294', 'tblTempUsageDetail_20' ) end [2025-01-14 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:20:23] Production.INFO: ==8336== Releasing lock... [2025-01-14 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:20:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:21:05 [end_date_ymd] => 2025-01-14 22:21:05 [RateCDR] => 1 ) [2025-01-14 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:21:05' and `end` < '2025-01-14 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:21:18] Production.INFO: count ==828 [2025-01-14 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:21:05 - End Time 2025-01-14 22:21:05 [2025-01-14 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249299', 'tblTempUsageDetail_20' ) start [2025-01-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249299', 'tblTempUsageDetail_20' ) end [2025-01-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249299', 'tblTempVendorCDR_20' ) start [2025-01-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249299', 'tblTempVendorCDR_20' ) end [2025-01-14 22:21:18] Production.INFO: ProcessCDR(1,14249299,1,1,2) [2025-01-14 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249299', 'tblTempUsageDetail_20' ) start [2025-01-14 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249299', 'tblTempUsageDetail_20' ) end [2025-01-14 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:21:21] Production.INFO: ==8410== Releasing lock... [2025-01-14 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:21:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:22:06 [end_date_ymd] => 2025-01-14 22:22:06 [RateCDR] => 1 ) [2025-01-14 22:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:22:06' and `end` < '2025-01-14 22:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:22:18] Production.INFO: count ==833 [2025-01-14 22:22:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:22:06 - End Time 2025-01-14 22:22:06 [2025-01-14 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249304', 'tblTempUsageDetail_20' ) start [2025-01-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249304', 'tblTempUsageDetail_20' ) end [2025-01-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249304', 'tblTempVendorCDR_20' ) start [2025-01-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249304', 'tblTempVendorCDR_20' ) end [2025-01-14 22:22:18] Production.INFO: ProcessCDR(1,14249304,1,1,2) [2025-01-14 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249304', 'tblTempUsageDetail_20' ) start [2025-01-14 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249304', 'tblTempUsageDetail_20' ) end [2025-01-14 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:22:22] Production.INFO: ==8511== Releasing lock... [2025-01-14 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:22:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:23:05 [end_date_ymd] => 2025-01-14 22:23:05 [RateCDR] => 1 ) [2025-01-14 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:23:05' and `end` < '2025-01-14 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:23:18] Production.INFO: count ==832 [2025-01-14 22:23:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:23:05 - End Time 2025-01-14 22:23:05 [2025-01-14 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249309', 'tblTempUsageDetail_20' ) start [2025-01-14 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249309', 'tblTempUsageDetail_20' ) end [2025-01-14 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249309', 'tblTempVendorCDR_20' ) start [2025-01-14 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249309', 'tblTempVendorCDR_20' ) end [2025-01-14 22:23:18] Production.INFO: ProcessCDR(1,14249309,1,1,2) [2025-01-14 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249309', 'tblTempUsageDetail_20' ) start [2025-01-14 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249309', 'tblTempUsageDetail_20' ) end [2025-01-14 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:23:21] Production.INFO: ==8582== Releasing lock... [2025-01-14 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:23:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:24:05 [end_date_ymd] => 2025-01-14 22:24:05 [RateCDR] => 1 ) [2025-01-14 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:24:05' and `end` < '2025-01-14 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:24:18] Production.INFO: count ==832 [2025-01-14 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:24:05 - End Time 2025-01-14 22:24:05 [2025-01-14 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249314', 'tblTempUsageDetail_20' ) start [2025-01-14 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249314', 'tblTempUsageDetail_20' ) end [2025-01-14 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249314', 'tblTempVendorCDR_20' ) start [2025-01-14 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249314', 'tblTempVendorCDR_20' ) end [2025-01-14 22:24:18] Production.INFO: ProcessCDR(1,14249314,1,1,2) [2025-01-14 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249314', 'tblTempUsageDetail_20' ) start [2025-01-14 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249314', 'tblTempUsageDetail_20' ) end [2025-01-14 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:24:21] Production.INFO: ==8683== Releasing lock... [2025-01-14 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:24:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:25:05 [end_date_ymd] => 2025-01-14 22:25:05 [RateCDR] => 1 ) [2025-01-14 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:25:05' and `end` < '2025-01-14 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:25:17] Production.INFO: count ==831 [2025-01-14 22:25:17] Production.ERROR: pbx CDR StartTime 2025-01-14 19:25:05 - End Time 2025-01-14 22:25:05 [2025-01-14 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249319', 'tblTempUsageDetail_20' ) start [2025-01-14 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249319', 'tblTempUsageDetail_20' ) end [2025-01-14 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249319', 'tblTempVendorCDR_20' ) start [2025-01-14 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249319', 'tblTempVendorCDR_20' ) end [2025-01-14 22:25:17] Production.INFO: ProcessCDR(1,14249319,1,1,2) [2025-01-14 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249319', 'tblTempUsageDetail_20' ) start [2025-01-14 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249319', 'tblTempUsageDetail_20' ) end [2025-01-14 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:25:21] Production.INFO: ==8756== Releasing lock... [2025-01-14 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:25:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:26:05 [end_date_ymd] => 2025-01-14 22:26:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:26:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:26:18] Production.INFO: count ==830 [2025-01-14 22:26:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:26:05 - End Time 2025-01-14 22:26:05 [2025-01-14 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249324', 'tblTempUsageDetail_20' ) start [2025-01-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249324', 'tblTempUsageDetail_20' ) end [2025-01-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249324', 'tblTempVendorCDR_20' ) start [2025-01-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249324', 'tblTempVendorCDR_20' ) end [2025-01-14 22:26:18] Production.INFO: ProcessCDR(1,14249324,1,1,2) [2025-01-14 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249324', 'tblTempUsageDetail_20' ) start [2025-01-14 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249324', 'tblTempUsageDetail_20' ) end [2025-01-14 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:26:21] Production.INFO: ==8864== Releasing lock... [2025-01-14 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:26:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:27:05 [end_date_ymd] => 2025-01-14 22:27:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:27:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:27:18] Production.INFO: count ==829 [2025-01-14 22:27:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:27:05 - End Time 2025-01-14 22:27:05 [2025-01-14 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249329', 'tblTempUsageDetail_20' ) start [2025-01-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249329', 'tblTempUsageDetail_20' ) end [2025-01-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249329', 'tblTempVendorCDR_20' ) start [2025-01-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249329', 'tblTempVendorCDR_20' ) end [2025-01-14 22:27:18] Production.INFO: ProcessCDR(1,14249329,1,1,2) [2025-01-14 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249329', 'tblTempUsageDetail_20' ) start [2025-01-14 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249329', 'tblTempUsageDetail_20' ) end [2025-01-14 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:27:21] Production.INFO: ==8941== Releasing lock... [2025-01-14 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:28:05 [end_date_ymd] => 2025-01-14 22:28:05 [RateCDR] => 1 ) [2025-01-14 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:28:05' and `end` < '2025-01-14 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:28:20] Production.INFO: count ==827 [2025-01-14 22:28:20] Production.ERROR: pbx CDR StartTime 2025-01-14 19:28:05 - End Time 2025-01-14 22:28:05 [2025-01-14 22:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249334', 'tblTempUsageDetail_20' ) start [2025-01-14 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249334', 'tblTempUsageDetail_20' ) end [2025-01-14 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249334', 'tblTempVendorCDR_20' ) start [2025-01-14 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249334', 'tblTempVendorCDR_20' ) end [2025-01-14 22:28:20] Production.INFO: ProcessCDR(1,14249334,1,1,2) [2025-01-14 22:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249334', 'tblTempUsageDetail_20' ) start [2025-01-14 22:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249334', 'tblTempUsageDetail_20' ) end [2025-01-14 22:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:28:24] Production.INFO: ==9040== Releasing lock... [2025-01-14 22:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:28:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:29:05 [end_date_ymd] => 2025-01-14 22:29:05 [RateCDR] => 1 ) [2025-01-14 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:29:05' and `end` < '2025-01-14 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:29:18] Production.INFO: count ==827 [2025-01-14 22:29:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:29:05 - End Time 2025-01-14 22:29:05 [2025-01-14 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249339', 'tblTempUsageDetail_20' ) start [2025-01-14 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249339', 'tblTempUsageDetail_20' ) end [2025-01-14 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249339', 'tblTempVendorCDR_20' ) start [2025-01-14 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249339', 'tblTempVendorCDR_20' ) end [2025-01-14 22:29:18] Production.INFO: ProcessCDR(1,14249339,1,1,2) [2025-01-14 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249339', 'tblTempUsageDetail_20' ) start [2025-01-14 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249339', 'tblTempUsageDetail_20' ) end [2025-01-14 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:29:21] Production.INFO: ==9114== Releasing lock... [2025-01-14 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:30:05 [end_date_ymd] => 2025-01-14 22:30:05 [RateCDR] => 1 ) [2025-01-14 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:30:05' and `end` < '2025-01-14 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:30:18] Production.INFO: count ==829 [2025-01-14 22:30:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:30:05 - End Time 2025-01-14 22:30:05 [2025-01-14 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249345', 'tblTempUsageDetail_20' ) start [2025-01-14 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249345', 'tblTempUsageDetail_20' ) end [2025-01-14 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249345', 'tblTempVendorCDR_20' ) start [2025-01-14 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249345', 'tblTempVendorCDR_20' ) end [2025-01-14 22:30:18] Production.INFO: ProcessCDR(1,14249345,1,1,2) [2025-01-14 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249345', 'tblTempUsageDetail_20' ) start [2025-01-14 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249345', 'tblTempUsageDetail_20' ) end [2025-01-14 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:30:21] Production.INFO: ==9206== Releasing lock... [2025-01-14 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:30:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-14 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:31:05 [end_date_ymd] => 2025-01-14 22:31:05 [RateCDR] => 1 ) [2025-01-14 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:31:05' and `end` < '2025-01-14 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:31:19] Production.INFO: count ==815 [2025-01-14 22:31:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:31:05 - End Time 2025-01-14 22:31:05 [2025-01-14 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249350', 'tblTempUsageDetail_20' ) start [2025-01-14 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249350', 'tblTempUsageDetail_20' ) end [2025-01-14 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249350', 'tblTempVendorCDR_20' ) start [2025-01-14 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249350', 'tblTempVendorCDR_20' ) end [2025-01-14 22:31:19] Production.INFO: ProcessCDR(1,14249350,1,1,2) [2025-01-14 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249350', 'tblTempUsageDetail_20' ) start [2025-01-14 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249350', 'tblTempUsageDetail_20' ) end [2025-01-14 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:31:22] Production.INFO: ==9326== Releasing lock... [2025-01-14 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:31:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 22:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:32:04 [end_date_ymd] => 2025-01-14 22:32:04 [RateCDR] => 1 ) [2025-01-14 22:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:32:04' and `end` < '2025-01-14 22:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:32:18] Production.INFO: count ==815 [2025-01-14 22:32:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:32:04 - End Time 2025-01-14 22:32:04 [2025-01-14 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249355', 'tblTempUsageDetail_20' ) start [2025-01-14 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249355', 'tblTempUsageDetail_20' ) end [2025-01-14 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249355', 'tblTempVendorCDR_20' ) start [2025-01-14 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249355', 'tblTempVendorCDR_20' ) end [2025-01-14 22:32:19] Production.INFO: ProcessCDR(1,14249355,1,1,2) [2025-01-14 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249355', 'tblTempUsageDetail_20' ) start [2025-01-14 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249355', 'tblTempUsageDetail_20' ) end [2025-01-14 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:32:22] Production.INFO: ==9415== Releasing lock... [2025-01-14 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:32:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:33:05 [end_date_ymd] => 2025-01-14 22:33:05 [RateCDR] => 1 ) [2025-01-14 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:33:05' and `end` < '2025-01-14 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:33:18] Production.INFO: count ==806 [2025-01-14 22:33:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:33:05 - End Time 2025-01-14 22:33:05 [2025-01-14 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249360', 'tblTempUsageDetail_20' ) start [2025-01-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249360', 'tblTempUsageDetail_20' ) end [2025-01-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249360', 'tblTempVendorCDR_20' ) start [2025-01-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249360', 'tblTempVendorCDR_20' ) end [2025-01-14 22:33:18] Production.INFO: ProcessCDR(1,14249360,1,1,2) [2025-01-14 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249360', 'tblTempUsageDetail_20' ) start [2025-01-14 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249360', 'tblTempUsageDetail_20' ) end [2025-01-14 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:33:21] Production.INFO: ==9497== Releasing lock... [2025-01-14 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:33:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:34:05 [end_date_ymd] => 2025-01-14 22:34:05 [RateCDR] => 1 ) [2025-01-14 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:34:05' and `end` < '2025-01-14 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:34:17] Production.INFO: count ==805 [2025-01-14 22:34:17] Production.ERROR: pbx CDR StartTime 2025-01-14 19:34:05 - End Time 2025-01-14 22:34:05 [2025-01-14 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249365', 'tblTempUsageDetail_20' ) start [2025-01-14 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249365', 'tblTempUsageDetail_20' ) end [2025-01-14 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249365', 'tblTempVendorCDR_20' ) start [2025-01-14 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249365', 'tblTempVendorCDR_20' ) end [2025-01-14 22:34:17] Production.INFO: ProcessCDR(1,14249365,1,1,2) [2025-01-14 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249365', 'tblTempUsageDetail_20' ) start [2025-01-14 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249365', 'tblTempUsageDetail_20' ) end [2025-01-14 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:34:21] Production.INFO: ==9566== Releasing lock... [2025-01-14 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 22:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:35:06 [end_date_ymd] => 2025-01-14 22:35:06 [RateCDR] => 1 ) [2025-01-14 22:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:35:06' and `end` < '2025-01-14 22:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:35:18] Production.INFO: count ==806 [2025-01-14 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:35:06 - End Time 2025-01-14 22:35:06 [2025-01-14 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249370', 'tblTempUsageDetail_20' ) start [2025-01-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249370', 'tblTempUsageDetail_20' ) end [2025-01-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249370', 'tblTempVendorCDR_20' ) start [2025-01-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249370', 'tblTempVendorCDR_20' ) end [2025-01-14 22:35:18] Production.INFO: ProcessCDR(1,14249370,1,1,2) [2025-01-14 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249370', 'tblTempUsageDetail_20' ) start [2025-01-14 22:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249370', 'tblTempUsageDetail_20' ) end [2025-01-14 22:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:35:24] Production.INFO: ==9639== Releasing lock... [2025-01-14 22:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:35:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:36:05 [end_date_ymd] => 2025-01-14 22:36:05 [RateCDR] => 1 ) [2025-01-14 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:36:05' and `end` < '2025-01-14 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:36:17] Production.INFO: count ==805 [2025-01-14 22:36:17] Production.ERROR: pbx CDR StartTime 2025-01-14 19:36:05 - End Time 2025-01-14 22:36:05 [2025-01-14 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249375', 'tblTempUsageDetail_20' ) start [2025-01-14 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249375', 'tblTempUsageDetail_20' ) end [2025-01-14 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249375', 'tblTempVendorCDR_20' ) start [2025-01-14 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249375', 'tblTempVendorCDR_20' ) end [2025-01-14 22:36:17] Production.INFO: ProcessCDR(1,14249375,1,1,2) [2025-01-14 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249375', 'tblTempUsageDetail_20' ) start [2025-01-14 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249375', 'tblTempUsageDetail_20' ) end [2025-01-14 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:36:21] Production.INFO: ==9709== Releasing lock... [2025-01-14 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:36:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:37:05 [end_date_ymd] => 2025-01-14 22:37:05 [RateCDR] => 1 ) [2025-01-14 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:37:05' and `end` < '2025-01-14 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:37:18] Production.INFO: count ==805 [2025-01-14 22:37:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:37:05 - End Time 2025-01-14 22:37:05 [2025-01-14 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249380', 'tblTempUsageDetail_20' ) start [2025-01-14 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249380', 'tblTempUsageDetail_20' ) end [2025-01-14 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249380', 'tblTempVendorCDR_20' ) start [2025-01-14 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249380', 'tblTempVendorCDR_20' ) end [2025-01-14 22:37:19] Production.INFO: ProcessCDR(1,14249380,1,1,2) [2025-01-14 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249380', 'tblTempUsageDetail_20' ) start [2025-01-14 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249380', 'tblTempUsageDetail_20' ) end [2025-01-14 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:37:22] Production.INFO: ==9780== Releasing lock... [2025-01-14 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:37:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:38:04 [end_date_ymd] => 2025-01-14 22:38:04 [RateCDR] => 1 ) [2025-01-14 22: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` >= '2025-01-14 19:38:04' and `end` < '2025-01-14 22: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 ,'') [2025-01-14 22:38:17] Production.INFO: count ==805 [2025-01-14 22:38:17] Production.ERROR: pbx CDR StartTime 2025-01-14 19:38:04 - End Time 2025-01-14 22:38:04 [2025-01-14 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249385', 'tblTempUsageDetail_20' ) start [2025-01-14 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249385', 'tblTempUsageDetail_20' ) end [2025-01-14 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249385', 'tblTempVendorCDR_20' ) start [2025-01-14 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249385', 'tblTempVendorCDR_20' ) end [2025-01-14 22:38:17] Production.INFO: ProcessCDR(1,14249385,1,1,2) [2025-01-14 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249385', 'tblTempUsageDetail_20' ) start [2025-01-14 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249385', 'tblTempUsageDetail_20' ) end [2025-01-14 22:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:38:20] Production.INFO: ==9851== Releasing lock... [2025-01-14 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:38:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:39:05 [end_date_ymd] => 2025-01-14 22:39:05 [RateCDR] => 1 ) [2025-01-14 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:39:05' and `end` < '2025-01-14 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:39:17] Production.INFO: count ==805 [2025-01-14 22:39:17] Production.ERROR: pbx CDR StartTime 2025-01-14 19:39:05 - End Time 2025-01-14 22:39:05 [2025-01-14 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249390', 'tblTempUsageDetail_20' ) start [2025-01-14 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249390', 'tblTempUsageDetail_20' ) end [2025-01-14 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249390', 'tblTempVendorCDR_20' ) start [2025-01-14 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249390', 'tblTempVendorCDR_20' ) end [2025-01-14 22:39:17] Production.INFO: ProcessCDR(1,14249390,1,1,2) [2025-01-14 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249390', 'tblTempUsageDetail_20' ) start [2025-01-14 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249390', 'tblTempUsageDetail_20' ) end [2025-01-14 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:39:21] Production.INFO: ==9921== Releasing lock... [2025-01-14 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:39:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:40:05 [end_date_ymd] => 2025-01-14 22:40:05 [RateCDR] => 1 ) [2025-01-14 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:40:05' and `end` < '2025-01-14 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:40:17] Production.INFO: count ==804 [2025-01-14 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:40:05 - End Time 2025-01-14 22:40:05 [2025-01-14 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249396', 'tblTempUsageDetail_20' ) start [2025-01-14 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249396', 'tblTempUsageDetail_20' ) end [2025-01-14 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249396', 'tblTempVendorCDR_20' ) start [2025-01-14 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249396', 'tblTempVendorCDR_20' ) end [2025-01-14 22:40:18] Production.INFO: ProcessCDR(1,14249396,1,1,2) [2025-01-14 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249396', 'tblTempUsageDetail_20' ) start [2025-01-14 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249396', 'tblTempUsageDetail_20' ) end [2025-01-14 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:40:21] Production.INFO: ==10000== Releasing lock... [2025-01-14 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:40:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:41:05 [end_date_ymd] => 2025-01-14 22:41:05 [RateCDR] => 1 ) [2025-01-14 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:41:05' and `end` < '2025-01-14 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:41:17] Production.INFO: count ==788 [2025-01-14 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:41:05 - End Time 2025-01-14 22:41:05 [2025-01-14 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249401', 'tblTempUsageDetail_20' ) start [2025-01-14 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249401', 'tblTempUsageDetail_20' ) end [2025-01-14 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249401', 'tblTempVendorCDR_20' ) start [2025-01-14 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249401', 'tblTempVendorCDR_20' ) end [2025-01-14 22:41:18] Production.INFO: ProcessCDR(1,14249401,1,1,2) [2025-01-14 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249401', 'tblTempUsageDetail_20' ) start [2025-01-14 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249401', 'tblTempUsageDetail_20' ) end [2025-01-14 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:41:21] Production.INFO: ==10074== Releasing lock... [2025-01-14 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:41:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:42:05 [end_date_ymd] => 2025-01-14 22:42:05 [RateCDR] => 1 ) [2025-01-14 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:42:05' and `end` < '2025-01-14 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:42:18] Production.INFO: count ==787 [2025-01-14 22:42:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:42:05 - End Time 2025-01-14 22:42:05 [2025-01-14 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249406', 'tblTempUsageDetail_20' ) start [2025-01-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249406', 'tblTempUsageDetail_20' ) end [2025-01-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249406', 'tblTempVendorCDR_20' ) start [2025-01-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249406', 'tblTempVendorCDR_20' ) end [2025-01-14 22:42:18] Production.INFO: ProcessCDR(1,14249406,1,1,2) [2025-01-14 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249406', 'tblTempUsageDetail_20' ) start [2025-01-14 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249406', 'tblTempUsageDetail_20' ) end [2025-01-14 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:42:22] Production.INFO: ==10145== Releasing lock... [2025-01-14 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-14 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:43:05 [end_date_ymd] => 2025-01-14 22:43:05 [RateCDR] => 1 ) [2025-01-14 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:43:05' and `end` < '2025-01-14 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:43:18] Production.INFO: count ==788 [2025-01-14 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:43:05 - End Time 2025-01-14 22:43:05 [2025-01-14 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249411', 'tblTempUsageDetail_20' ) start [2025-01-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249411', 'tblTempUsageDetail_20' ) end [2025-01-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249411', 'tblTempVendorCDR_20' ) start [2025-01-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249411', 'tblTempVendorCDR_20' ) end [2025-01-14 22:43:18] Production.INFO: ProcessCDR(1,14249411,1,1,2) [2025-01-14 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249411', 'tblTempUsageDetail_20' ) start [2025-01-14 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249411', 'tblTempUsageDetail_20' ) end [2025-01-14 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:43:22] Production.INFO: ==10216== Releasing lock... [2025-01-14 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:43:22] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:44:05 [end_date_ymd] => 2025-01-14 22:44:05 [RateCDR] => 1 ) [2025-01-14 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:44:05' and `end` < '2025-01-14 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:44:18] Production.INFO: count ==788 [2025-01-14 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:44:05 - End Time 2025-01-14 22:44:05 [2025-01-14 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249416', 'tblTempUsageDetail_20' ) start [2025-01-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249416', 'tblTempUsageDetail_20' ) end [2025-01-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249416', 'tblTempVendorCDR_20' ) start [2025-01-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249416', 'tblTempVendorCDR_20' ) end [2025-01-14 22:44:18] Production.INFO: ProcessCDR(1,14249416,1,1,2) [2025-01-14 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249416', 'tblTempUsageDetail_20' ) start [2025-01-14 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249416', 'tblTempUsageDetail_20' ) end [2025-01-14 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:44:22] Production.INFO: ==10288== Releasing lock... [2025-01-14 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:44:22] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:45:05 [end_date_ymd] => 2025-01-14 22:45:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:45:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:45:18] Production.INFO: count ==788 [2025-01-14 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:45:05 - End Time 2025-01-14 22:45:05 [2025-01-14 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249421', 'tblTempUsageDetail_20' ) start [2025-01-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249421', 'tblTempUsageDetail_20' ) end [2025-01-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249421', 'tblTempVendorCDR_20' ) start [2025-01-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249421', 'tblTempVendorCDR_20' ) end [2025-01-14 22:45:18] Production.INFO: ProcessCDR(1,14249421,1,1,2) [2025-01-14 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249421', 'tblTempUsageDetail_20' ) start [2025-01-14 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249421', 'tblTempUsageDetail_20' ) end [2025-01-14 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:45:21] Production.INFO: ==10357== Releasing lock... [2025-01-14 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:45:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:46:05 [end_date_ymd] => 2025-01-14 22:46:05 [RateCDR] => 1 ) [2025-01-14 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:46:05' and `end` < '2025-01-14 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:46:18] Production.INFO: count ==788 [2025-01-14 22:46:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:46:05 - End Time 2025-01-14 22:46:05 [2025-01-14 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249426', 'tblTempUsageDetail_20' ) start [2025-01-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249426', 'tblTempUsageDetail_20' ) end [2025-01-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249426', 'tblTempVendorCDR_20' ) start [2025-01-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249426', 'tblTempVendorCDR_20' ) end [2025-01-14 22:46:18] Production.INFO: ProcessCDR(1,14249426,1,1,2) [2025-01-14 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249426', 'tblTempUsageDetail_20' ) start [2025-01-14 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249426', 'tblTempUsageDetail_20' ) end [2025-01-14 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:46:21] Production.INFO: ==10428== Releasing lock... [2025-01-14 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:46:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:47:05 [end_date_ymd] => 2025-01-14 22:47:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:47:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:47:18] Production.INFO: count ==783 [2025-01-14 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:47:05 - End Time 2025-01-14 22:47:05 [2025-01-14 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249431', 'tblTempUsageDetail_20' ) start [2025-01-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249431', 'tblTempUsageDetail_20' ) end [2025-01-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249431', 'tblTempVendorCDR_20' ) start [2025-01-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249431', 'tblTempVendorCDR_20' ) end [2025-01-14 22:47:18] Production.INFO: ProcessCDR(1,14249431,1,1,2) [2025-01-14 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249431', 'tblTempUsageDetail_20' ) start [2025-01-14 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249431', 'tblTempUsageDetail_20' ) end [2025-01-14 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:47:21] Production.INFO: ==10537== Releasing lock... [2025-01-14 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:47:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:48:05 [end_date_ymd] => 2025-01-14 22:48:05 [RateCDR] => 1 ) [2025-01-14 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:48:05' and `end` < '2025-01-14 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:48:19] Production.INFO: count ==783 [2025-01-14 22:48:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:48:05 - End Time 2025-01-14 22:48:05 [2025-01-14 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249436', 'tblTempUsageDetail_20' ) start [2025-01-14 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249436', 'tblTempUsageDetail_20' ) end [2025-01-14 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249436', 'tblTempVendorCDR_20' ) start [2025-01-14 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249436', 'tblTempVendorCDR_20' ) end [2025-01-14 22:48:19] Production.INFO: ProcessCDR(1,14249436,1,1,2) [2025-01-14 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249436', 'tblTempUsageDetail_20' ) start [2025-01-14 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249436', 'tblTempUsageDetail_20' ) end [2025-01-14 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:48:22] Production.INFO: ==10608== Releasing lock... [2025-01-14 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:48:22] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:49:04 [end_date_ymd] => 2025-01-14 22:49:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:49:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:49:19] Production.INFO: count ==783 [2025-01-14 22:49:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:49:04 - End Time 2025-01-14 22:49:04 [2025-01-14 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249441', 'tblTempUsageDetail_20' ) start [2025-01-14 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249441', 'tblTempUsageDetail_20' ) end [2025-01-14 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249441', 'tblTempVendorCDR_20' ) start [2025-01-14 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249441', 'tblTempVendorCDR_20' ) end [2025-01-14 22:49:19] Production.INFO: ProcessCDR(1,14249441,1,1,2) [2025-01-14 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249441', 'tblTempUsageDetail_20' ) start [2025-01-14 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249441', 'tblTempUsageDetail_20' ) end [2025-01-14 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:49:22] Production.INFO: ==10678== Releasing lock... [2025-01-14 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:49:22] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:50:05 [end_date_ymd] => 2025-01-14 22:50:05 [RateCDR] => 1 ) [2025-01-14 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:50:05' and `end` < '2025-01-14 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:50:18] Production.INFO: count ==783 [2025-01-14 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-14 19:50:05 - End Time 2025-01-14 22:50:05 [2025-01-14 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249447', 'tblTempUsageDetail_20' ) start [2025-01-14 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249447', 'tblTempUsageDetail_20' ) end [2025-01-14 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249447', 'tblTempVendorCDR_20' ) start [2025-01-14 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249447', 'tblTempVendorCDR_20' ) end [2025-01-14 22:50:19] Production.INFO: ProcessCDR(1,14249447,1,1,2) [2025-01-14 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249447', 'tblTempUsageDetail_20' ) start [2025-01-14 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249447', 'tblTempUsageDetail_20' ) end [2025-01-14 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:50:22] Production.INFO: ==10754== Releasing lock... [2025-01-14 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:50:22] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:51:05 [end_date_ymd] => 2025-01-14 22:51:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:51:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:51:18] Production.INFO: count ==767 [2025-01-14 22:51:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:51:05 - End Time 2025-01-14 22:51:05 [2025-01-14 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249452', 'tblTempUsageDetail_20' ) start [2025-01-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249452', 'tblTempUsageDetail_20' ) end [2025-01-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249452', 'tblTempVendorCDR_20' ) start [2025-01-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249452', 'tblTempVendorCDR_20' ) end [2025-01-14 22:51:18] Production.INFO: ProcessCDR(1,14249452,1,1,2) [2025-01-14 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249452', 'tblTempUsageDetail_20' ) start [2025-01-14 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249452', 'tblTempUsageDetail_20' ) end [2025-01-14 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:51:21] Production.INFO: ==10827== Releasing lock... [2025-01-14 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:51:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:52:05 [end_date_ymd] => 2025-01-14 22:52:05 [RateCDR] => 1 ) [2025-01-14 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:52:05' and `end` < '2025-01-14 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:52:18] Production.INFO: count ==767 [2025-01-14 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:52:05 - End Time 2025-01-14 22:52:05 [2025-01-14 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249457', 'tblTempUsageDetail_20' ) start [2025-01-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249457', 'tblTempUsageDetail_20' ) end [2025-01-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249457', 'tblTempVendorCDR_20' ) start [2025-01-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249457', 'tblTempVendorCDR_20' ) end [2025-01-14 22:52:18] Production.INFO: ProcessCDR(1,14249457,1,1,2) [2025-01-14 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249457', 'tblTempUsageDetail_20' ) start [2025-01-14 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249457', 'tblTempUsageDetail_20' ) end [2025-01-14 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:52:22] Production.INFO: ==10896== Releasing lock... [2025-01-14 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:52:22] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:53:04 [end_date_ymd] => 2025-01-14 22:53:04 [RateCDR] => 1 ) [2025-01-14 22:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:53:04' and `end` < '2025-01-14 22:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:53:17] Production.INFO: count ==767 [2025-01-14 22:53:17] Production.ERROR: pbx CDR StartTime 2025-01-14 19:53:04 - End Time 2025-01-14 22:53:04 [2025-01-14 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249462', 'tblTempUsageDetail_20' ) start [2025-01-14 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249462', 'tblTempUsageDetail_20' ) end [2025-01-14 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249462', 'tblTempVendorCDR_20' ) start [2025-01-14 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249462', 'tblTempVendorCDR_20' ) end [2025-01-14 22:53:17] Production.INFO: ProcessCDR(1,14249462,1,1,2) [2025-01-14 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249462', 'tblTempUsageDetail_20' ) start [2025-01-14 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249462', 'tblTempUsageDetail_20' ) end [2025-01-14 22:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:53:20] Production.INFO: ==10969== Releasing lock... [2025-01-14 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:53:20] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:54:05 [end_date_ymd] => 2025-01-14 22:54:05 [RateCDR] => 1 ) [2025-01-14 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:54:05' and `end` < '2025-01-14 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:54:17] Production.INFO: count ==767 [2025-01-14 22:54:17] Production.ERROR: pbx CDR StartTime 2025-01-14 19:54:05 - End Time 2025-01-14 22:54:05 [2025-01-14 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249467', 'tblTempUsageDetail_20' ) start [2025-01-14 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249467', 'tblTempUsageDetail_20' ) end [2025-01-14 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249467', 'tblTempVendorCDR_20' ) start [2025-01-14 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249467', 'tblTempVendorCDR_20' ) end [2025-01-14 22:54:17] Production.INFO: ProcessCDR(1,14249467,1,1,2) [2025-01-14 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249467', 'tblTempUsageDetail_20' ) start [2025-01-14 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249467', 'tblTempUsageDetail_20' ) end [2025-01-14 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:54:21] Production.INFO: ==11039== Releasing lock... [2025-01-14 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:54:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:55:05 [end_date_ymd] => 2025-01-14 22:55:05 [RateCDR] => 1 ) [2025-01-14 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:55:05' and `end` < '2025-01-14 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:55:17] Production.INFO: count ==767 [2025-01-14 22:55:17] Production.ERROR: pbx CDR StartTime 2025-01-14 19:55:05 - End Time 2025-01-14 22:55:05 [2025-01-14 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249472', 'tblTempUsageDetail_20' ) start [2025-01-14 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249472', 'tblTempUsageDetail_20' ) end [2025-01-14 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249472', 'tblTempVendorCDR_20' ) start [2025-01-14 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249472', 'tblTempVendorCDR_20' ) end [2025-01-14 22:55:17] Production.INFO: ProcessCDR(1,14249472,1,1,2) [2025-01-14 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249472', 'tblTempUsageDetail_20' ) start [2025-01-14 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249472', 'tblTempUsageDetail_20' ) end [2025-01-14 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:55:21] Production.INFO: ==11110== Releasing lock... [2025-01-14 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:55:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:56:05 [end_date_ymd] => 2025-01-14 22:56:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:56:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:56:18] Production.INFO: count ==767 [2025-01-14 22:56:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:56:05 - End Time 2025-01-14 22:56:05 [2025-01-14 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249477', 'tblTempUsageDetail_20' ) start [2025-01-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249477', 'tblTempUsageDetail_20' ) end [2025-01-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249477', 'tblTempVendorCDR_20' ) start [2025-01-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249477', 'tblTempVendorCDR_20' ) end [2025-01-14 22:56:18] Production.INFO: ProcessCDR(1,14249477,1,1,2) [2025-01-14 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249477', 'tblTempUsageDetail_20' ) start [2025-01-14 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249477', 'tblTempUsageDetail_20' ) end [2025-01-14 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:56:22] Production.INFO: ==11181== Releasing lock... [2025-01-14 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:56:22] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:57:04 [end_date_ymd] => 2025-01-14 22:57:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 19:57:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 22:57:17] Production.INFO: count ==764 [2025-01-14 22:57:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:57:04 - End Time 2025-01-14 22:57:04 [2025-01-14 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249482', 'tblTempUsageDetail_20' ) start [2025-01-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249482', 'tblTempUsageDetail_20' ) end [2025-01-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249482', 'tblTempVendorCDR_20' ) start [2025-01-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249482', 'tblTempVendorCDR_20' ) end [2025-01-14 22:57:18] Production.INFO: ProcessCDR(1,14249482,1,1,2) [2025-01-14 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249482', 'tblTempUsageDetail_20' ) start [2025-01-14 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249482', 'tblTempUsageDetail_20' ) end [2025-01-14 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:57:21] Production.INFO: ==11257== Releasing lock... [2025-01-14 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:57:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:58:05 [end_date_ymd] => 2025-01-14 22:58:05 [RateCDR] => 1 ) [2025-01-14 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:58:05' and `end` < '2025-01-14 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:58:17] Production.INFO: count ==765 [2025-01-14 22:58:17] Production.ERROR: pbx CDR StartTime 2025-01-14 19:58:05 - End Time 2025-01-14 22:58:05 [2025-01-14 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249487', 'tblTempUsageDetail_20' ) start [2025-01-14 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249487', 'tblTempUsageDetail_20' ) end [2025-01-14 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249487', 'tblTempVendorCDR_20' ) start [2025-01-14 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249487', 'tblTempVendorCDR_20' ) end [2025-01-14 22:58:17] Production.INFO: ProcessCDR(1,14249487,1,1,2) [2025-01-14 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249487', 'tblTempUsageDetail_20' ) start [2025-01-14 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249487', 'tblTempUsageDetail_20' ) end [2025-01-14 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:58:21] Production.INFO: ==11334== Releasing lock... [2025-01-14 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:58:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 19:59:05 [end_date_ymd] => 2025-01-14 22:59:05 [RateCDR] => 1 ) [2025-01-14 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 19:59:05' and `end` < '2025-01-14 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 22:59:18] Production.INFO: count ==766 [2025-01-14 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-14 19:59:05 - End Time 2025-01-14 22:59:05 [2025-01-14 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249492', 'tblTempUsageDetail_20' ) start [2025-01-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249492', 'tblTempUsageDetail_20' ) end [2025-01-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249492', 'tblTempVendorCDR_20' ) start [2025-01-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249492', 'tblTempVendorCDR_20' ) end [2025-01-14 22:59:18] Production.INFO: ProcessCDR(1,14249492,1,1,2) [2025-01-14 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249492', 'tblTempUsageDetail_20' ) start [2025-01-14 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249492', 'tblTempUsageDetail_20' ) end [2025-01-14 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 22:59:21] Production.INFO: ==11404== Releasing lock... [2025-01-14 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 22:59:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:00:05 [end_date_ymd] => 2025-01-14 23:00:05 [RateCDR] => 1 ) [2025-01-14 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:00:05' and `end` < '2025-01-14 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:00:18] Production.INFO: count ==766 [2025-01-14 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:00:05 - End Time 2025-01-14 23:00:05 [2025-01-14 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249498', 'tblTempUsageDetail_20' ) start [2025-01-14 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249498', 'tblTempUsageDetail_20' ) end [2025-01-14 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249498', 'tblTempVendorCDR_20' ) start [2025-01-14 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249498', 'tblTempVendorCDR_20' ) end [2025-01-14 23:00:18] Production.INFO: ProcessCDR(1,14249498,1,1,2) [2025-01-14 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249498', 'tblTempUsageDetail_20' ) start [2025-01-14 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249498', 'tblTempUsageDetail_20' ) end [2025-01-14 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:00:21] Production.INFO: ==11478== Releasing lock... [2025-01-14 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:00:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:01:05 [end_date_ymd] => 2025-01-14 23:01:05 [RateCDR] => 1 ) [2025-01-14 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:01:05' and `end` < '2025-01-14 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:01:19] Production.INFO: count ==755 [2025-01-14 23:01:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:01:05 - End Time 2025-01-14 23:01:05 [2025-01-14 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249503', 'tblTempUsageDetail_20' ) start [2025-01-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249503', 'tblTempUsageDetail_20' ) end [2025-01-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249503', 'tblTempVendorCDR_20' ) start [2025-01-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249503', 'tblTempVendorCDR_20' ) end [2025-01-14 23:01:19] Production.INFO: ProcessCDR(1,14249503,1,1,2) [2025-01-14 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249503', 'tblTempUsageDetail_20' ) start [2025-01-14 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249503', 'tblTempUsageDetail_20' ) end [2025-01-14 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:01:23] Production.INFO: ==11565== Releasing lock... [2025-01-14 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:01:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:02:04 [end_date_ymd] => 2025-01-14 23:02:04 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:02:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:02:17] Production.INFO: count ==755 [2025-01-14 23:02:17] Production.ERROR: pbx CDR StartTime 2025-01-14 20:02:04 - End Time 2025-01-14 23:02:04 [2025-01-14 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249508', 'tblTempUsageDetail_20' ) start [2025-01-14 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249508', 'tblTempUsageDetail_20' ) end [2025-01-14 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249508', 'tblTempVendorCDR_20' ) start [2025-01-14 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249508', 'tblTempVendorCDR_20' ) end [2025-01-14 23:02:17] Production.INFO: ProcessCDR(1,14249508,1,1,2) [2025-01-14 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249508', 'tblTempUsageDetail_20' ) start [2025-01-14 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249508', 'tblTempUsageDetail_20' ) end [2025-01-14 23:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:02:20] Production.INFO: ==11682== Releasing lock... [2025-01-14 23:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:02:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:03:05 [end_date_ymd] => 2025-01-14 23:03:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:03:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:03:18] Production.INFO: count ==755 [2025-01-14 23:03:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:03:05 - End Time 2025-01-14 23:03:05 [2025-01-14 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249513', 'tblTempUsageDetail_20' ) start [2025-01-14 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249513', 'tblTempUsageDetail_20' ) end [2025-01-14 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249513', 'tblTempVendorCDR_20' ) start [2025-01-14 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249513', 'tblTempVendorCDR_20' ) end [2025-01-14 23:03:18] Production.INFO: ProcessCDR(1,14249513,1,1,2) [2025-01-14 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249513', 'tblTempUsageDetail_20' ) start [2025-01-14 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249513', 'tblTempUsageDetail_20' ) end [2025-01-14 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:03:22] Production.INFO: ==11784== Releasing lock... [2025-01-14 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:03:22] Production.INFO: 33 MB #Memory Used# [2025-01-14 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:04:05 [end_date_ymd] => 2025-01-14 23:04:05 [RateCDR] => 1 ) [2025-01-14 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:04:05' and `end` < '2025-01-14 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:04:17] Production.INFO: count ==756 [2025-01-14 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:04:05 - End Time 2025-01-14 23:04:05 [2025-01-14 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249518', 'tblTempUsageDetail_20' ) start [2025-01-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249518', 'tblTempUsageDetail_20' ) end [2025-01-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249518', 'tblTempVendorCDR_20' ) start [2025-01-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249518', 'tblTempVendorCDR_20' ) end [2025-01-14 23:04:18] Production.INFO: ProcessCDR(1,14249518,1,1,2) [2025-01-14 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249518', 'tblTempUsageDetail_20' ) start [2025-01-14 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249518', 'tblTempUsageDetail_20' ) end [2025-01-14 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:04:21] Production.INFO: ==11882== Releasing lock... [2025-01-14 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:04:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:05:05 [end_date_ymd] => 2025-01-14 23:05:05 [RateCDR] => 1 ) [2025-01-14 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:05:05' and `end` < '2025-01-14 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:05:17] Production.INFO: count ==755 [2025-01-14 23:05:17] Production.ERROR: pbx CDR StartTime 2025-01-14 20:05:05 - End Time 2025-01-14 23:05:05 [2025-01-14 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249523', 'tblTempUsageDetail_20' ) start [2025-01-14 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249523', 'tblTempUsageDetail_20' ) end [2025-01-14 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249523', 'tblTempVendorCDR_20' ) start [2025-01-14 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249523', 'tblTempVendorCDR_20' ) end [2025-01-14 23:05:17] Production.INFO: ProcessCDR(1,14249523,1,1,2) [2025-01-14 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249523', 'tblTempUsageDetail_20' ) start [2025-01-14 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249523', 'tblTempUsageDetail_20' ) end [2025-01-14 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:05:21] Production.INFO: ==12061== Releasing lock... [2025-01-14 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:05:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:06:04 [end_date_ymd] => 2025-01-14 23:06:04 [RateCDR] => 1 ) [2025-01-14 23:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:06:04' and `end` < '2025-01-14 23:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:06:17] Production.INFO: count ==751 [2025-01-14 23:06:17] Production.ERROR: pbx CDR StartTime 2025-01-14 20:06:04 - End Time 2025-01-14 23:06:04 [2025-01-14 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249528', 'tblTempUsageDetail_20' ) start [2025-01-14 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249528', 'tblTempUsageDetail_20' ) end [2025-01-14 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249528', 'tblTempVendorCDR_20' ) start [2025-01-14 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249528', 'tblTempVendorCDR_20' ) end [2025-01-14 23:06:17] Production.INFO: ProcessCDR(1,14249528,1,1,2) [2025-01-14 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249528', 'tblTempUsageDetail_20' ) start [2025-01-14 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249528', 'tblTempUsageDetail_20' ) end [2025-01-14 23:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:06:20] Production.INFO: ==12169== Releasing lock... [2025-01-14 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:06:20] Production.INFO: 33 MB #Memory Used# [2025-01-14 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:07:06 [end_date_ymd] => 2025-01-14 23:07:06 [RateCDR] => 1 ) [2025-01-14 23:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:07:06' and `end` < '2025-01-14 23:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:07:18] Production.INFO: count ==753 [2025-01-14 23:07:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:07:06 - End Time 2025-01-14 23:07:06 [2025-01-14 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249533', 'tblTempUsageDetail_20' ) start [2025-01-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249533', 'tblTempUsageDetail_20' ) end [2025-01-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249533', 'tblTempVendorCDR_20' ) start [2025-01-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249533', 'tblTempVendorCDR_20' ) end [2025-01-14 23:07:18] Production.INFO: ProcessCDR(1,14249533,1,1,2) [2025-01-14 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249533', 'tblTempUsageDetail_20' ) start [2025-01-14 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249533', 'tblTempUsageDetail_20' ) end [2025-01-14 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:07:22] Production.INFO: ==12276== Releasing lock... [2025-01-14 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:07:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:08:06 [end_date_ymd] => 2025-01-14 23:08:06 [RateCDR] => 1 ) [2025-01-14 23:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:08:06' and `end` < '2025-01-14 23:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:08:18] Production.INFO: count ==752 [2025-01-14 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:08:06 - End Time 2025-01-14 23:08:06 [2025-01-14 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249538', 'tblTempUsageDetail_20' ) start [2025-01-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249538', 'tblTempUsageDetail_20' ) end [2025-01-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249538', 'tblTempVendorCDR_20' ) start [2025-01-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249538', 'tblTempVendorCDR_20' ) end [2025-01-14 23:08:18] Production.INFO: ProcessCDR(1,14249538,1,1,2) [2025-01-14 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249538', 'tblTempUsageDetail_20' ) start [2025-01-14 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249538', 'tblTempUsageDetail_20' ) end [2025-01-14 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:08:22] Production.INFO: ==12382== Releasing lock... [2025-01-14 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:08:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:09:05 [end_date_ymd] => 2025-01-14 23:09:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:09:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:09:19] Production.INFO: count ==752 [2025-01-14 23:09:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:09:05 - End Time 2025-01-14 23:09:05 [2025-01-14 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249543', 'tblTempUsageDetail_20' ) start [2025-01-14 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249543', 'tblTempUsageDetail_20' ) end [2025-01-14 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249543', 'tblTempVendorCDR_20' ) start [2025-01-14 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249543', 'tblTempVendorCDR_20' ) end [2025-01-14 23:09:19] Production.INFO: ProcessCDR(1,14249543,1,1,2) [2025-01-14 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249543', 'tblTempUsageDetail_20' ) start [2025-01-14 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249543', 'tblTempUsageDetail_20' ) end [2025-01-14 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:09:22] Production.INFO: ==12560== Releasing lock... [2025-01-14 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:09:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:10:05 [end_date_ymd] => 2025-01-14 23:10:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:10:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:10:18] Production.INFO: count ==750 [2025-01-14 23:10:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:10:05 - End Time 2025-01-14 23:10:05 [2025-01-14 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249549', 'tblTempUsageDetail_20' ) start [2025-01-14 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249549', 'tblTempUsageDetail_20' ) end [2025-01-14 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249549', 'tblTempVendorCDR_20' ) start [2025-01-14 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249549', 'tblTempVendorCDR_20' ) end [2025-01-14 23:10:18] Production.INFO: ProcessCDR(1,14249549,1,1,2) [2025-01-14 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249549', 'tblTempUsageDetail_20' ) start [2025-01-14 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249549', 'tblTempUsageDetail_20' ) end [2025-01-14 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:10:21] Production.INFO: ==12700== Releasing lock... [2025-01-14 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:10:21] Production.INFO: 33 MB #Memory Used# [2025-01-14 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:11:05 [end_date_ymd] => 2025-01-14 23:11:05 [RateCDR] => 1 ) [2025-01-14 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:11:05' and `end` < '2025-01-14 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:11:19] Production.INFO: count ==711 [2025-01-14 23:11:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:11:05 - End Time 2025-01-14 23:11:05 [2025-01-14 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249554', 'tblTempUsageDetail_20' ) start [2025-01-14 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249554', 'tblTempUsageDetail_20' ) end [2025-01-14 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249554', 'tblTempVendorCDR_20' ) start [2025-01-14 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249554', 'tblTempVendorCDR_20' ) end [2025-01-14 23:11:19] Production.INFO: ProcessCDR(1,14249554,1,1,2) [2025-01-14 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249554', 'tblTempUsageDetail_20' ) start [2025-01-14 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249554', 'tblTempUsageDetail_20' ) end [2025-01-14 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:11:22] Production.INFO: ==12805== Releasing lock... [2025-01-14 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:11:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:12:06 [end_date_ymd] => 2025-01-14 23:12:06 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:12:06' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:12:18] Production.INFO: count ==710 [2025-01-14 23:12:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:12:06 - End Time 2025-01-14 23:12:06 [2025-01-14 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249559', 'tblTempUsageDetail_20' ) start [2025-01-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249559', 'tblTempUsageDetail_20' ) end [2025-01-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249559', 'tblTempVendorCDR_20' ) start [2025-01-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249559', 'tblTempVendorCDR_20' ) end [2025-01-14 23:12:18] Production.INFO: ProcessCDR(1,14249559,1,1,2) [2025-01-14 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249559', 'tblTempUsageDetail_20' ) start [2025-01-14 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249559', 'tblTempUsageDetail_20' ) end [2025-01-14 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:12:22] Production.INFO: ==12987== Releasing lock... [2025-01-14 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:12:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:13:05 [end_date_ymd] => 2025-01-14 23:13:05 [RateCDR] => 1 ) [2025-01-14 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:13:05' and `end` < '2025-01-14 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:13:19] Production.INFO: count ==709 [2025-01-14 23:13:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:13:05 - End Time 2025-01-14 23:13:05 [2025-01-14 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249564', 'tblTempUsageDetail_20' ) start [2025-01-14 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249564', 'tblTempUsageDetail_20' ) end [2025-01-14 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249564', 'tblTempVendorCDR_20' ) start [2025-01-14 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249564', 'tblTempVendorCDR_20' ) end [2025-01-14 23:13:19] Production.INFO: ProcessCDR(1,14249564,1,1,2) [2025-01-14 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249564', 'tblTempUsageDetail_20' ) start [2025-01-14 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249564', 'tblTempUsageDetail_20' ) end [2025-01-14 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:13:22] Production.INFO: ==13091== Releasing lock... [2025-01-14 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:13:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:14:06 [end_date_ymd] => 2025-01-14 23:14:06 [RateCDR] => 1 ) [2025-01-14 23:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:14:06' and `end` < '2025-01-14 23:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:14:18] Production.INFO: count ==702 [2025-01-14 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:14:06 - End Time 2025-01-14 23:14:06 [2025-01-14 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249569', 'tblTempUsageDetail_20' ) start [2025-01-14 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249569', 'tblTempUsageDetail_20' ) end [2025-01-14 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249569', 'tblTempVendorCDR_20' ) start [2025-01-14 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249569', 'tblTempVendorCDR_20' ) end [2025-01-14 23:14:18] Production.INFO: ProcessCDR(1,14249569,1,1,2) [2025-01-14 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249569', 'tblTempUsageDetail_20' ) start [2025-01-14 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249569', 'tblTempUsageDetail_20' ) end [2025-01-14 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:14:22] Production.INFO: ==13193== Releasing lock... [2025-01-14 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:14:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:15:05 [end_date_ymd] => 2025-01-14 23:15:05 [RateCDR] => 1 ) [2025-01-14 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:15:05' and `end` < '2025-01-14 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:15:17] Production.INFO: count ==700 [2025-01-14 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:15:05 - End Time 2025-01-14 23:15:05 [2025-01-14 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249574', 'tblTempUsageDetail_20' ) start [2025-01-14 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249574', 'tblTempUsageDetail_20' ) end [2025-01-14 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249574', 'tblTempVendorCDR_20' ) start [2025-01-14 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249574', 'tblTempVendorCDR_20' ) end [2025-01-14 23:15:18] Production.INFO: ProcessCDR(1,14249574,1,1,2) [2025-01-14 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249574', 'tblTempUsageDetail_20' ) start [2025-01-14 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249574', 'tblTempUsageDetail_20' ) end [2025-01-14 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:15:21] Production.INFO: ==13373== Releasing lock... [2025-01-14 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:16:05 [end_date_ymd] => 2025-01-14 23:16:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:16:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:16:20] Production.INFO: count ==700 [2025-01-14 23:16:20] Production.ERROR: pbx CDR StartTime 2025-01-14 20:16:05 - End Time 2025-01-14 23:16:05 [2025-01-14 23:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249579', 'tblTempUsageDetail_20' ) start [2025-01-14 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249579', 'tblTempUsageDetail_20' ) end [2025-01-14 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249579', 'tblTempVendorCDR_20' ) start [2025-01-14 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249579', 'tblTempVendorCDR_20' ) end [2025-01-14 23:16:20] Production.INFO: ProcessCDR(1,14249579,1,1,2) [2025-01-14 23:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249579', 'tblTempUsageDetail_20' ) start [2025-01-14 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249579', 'tblTempUsageDetail_20' ) end [2025-01-14 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:16:23] Production.INFO: ==13474== Releasing lock... [2025-01-14 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:16:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:17:05 [end_date_ymd] => 2025-01-14 23:17:05 [RateCDR] => 1 ) [2025-01-14 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:17:05' and `end` < '2025-01-14 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:17:19] Production.INFO: count ==703 [2025-01-14 23:17:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:17:05 - End Time 2025-01-14 23:17:05 [2025-01-14 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249584', 'tblTempUsageDetail_20' ) start [2025-01-14 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249584', 'tblTempUsageDetail_20' ) end [2025-01-14 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249584', 'tblTempVendorCDR_20' ) start [2025-01-14 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249584', 'tblTempVendorCDR_20' ) end [2025-01-14 23:17:19] Production.INFO: ProcessCDR(1,14249584,1,1,2) [2025-01-14 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249584', 'tblTempUsageDetail_20' ) start [2025-01-14 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249584', 'tblTempUsageDetail_20' ) end [2025-01-14 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:17:22] Production.INFO: ==13574== Releasing lock... [2025-01-14 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:17:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:18:05 [end_date_ymd] => 2025-01-14 23:18:05 [RateCDR] => 1 ) [2025-01-14 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:18:05' and `end` < '2025-01-14 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:18:18] Production.INFO: count ==702 [2025-01-14 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:18:05 - End Time 2025-01-14 23:18:05 [2025-01-14 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249589', 'tblTempUsageDetail_20' ) start [2025-01-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249589', 'tblTempUsageDetail_20' ) end [2025-01-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249589', 'tblTempVendorCDR_20' ) start [2025-01-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249589', 'tblTempVendorCDR_20' ) end [2025-01-14 23:18:18] Production.INFO: ProcessCDR(1,14249589,1,1,2) [2025-01-14 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249589', 'tblTempUsageDetail_20' ) start [2025-01-14 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249589', 'tblTempUsageDetail_20' ) end [2025-01-14 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:18:21] Production.INFO: ==13678== Releasing lock... [2025-01-14 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:18:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:19:04 [end_date_ymd] => 2025-01-14 23:19:04 [RateCDR] => 1 ) [2025-01-14 23:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:19:04' and `end` < '2025-01-14 23:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:19:17] Production.INFO: count ==706 [2025-01-14 23:19:17] Production.ERROR: pbx CDR StartTime 2025-01-14 20:19:04 - End Time 2025-01-14 23:19:04 [2025-01-14 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249594', 'tblTempUsageDetail_20' ) start [2025-01-14 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249594', 'tblTempUsageDetail_20' ) end [2025-01-14 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249594', 'tblTempVendorCDR_20' ) start [2025-01-14 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249594', 'tblTempVendorCDR_20' ) end [2025-01-14 23:19:17] Production.INFO: ProcessCDR(1,14249594,1,1,2) [2025-01-14 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249594', 'tblTempUsageDetail_20' ) start [2025-01-14 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249594', 'tblTempUsageDetail_20' ) end [2025-01-14 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:19:20] Production.INFO: ==13781== Releasing lock... [2025-01-14 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:19:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:20:06 [end_date_ymd] => 2025-01-14 23:20:06 [RateCDR] => 1 ) [2025-01-14 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:20:06' and `end` < '2025-01-14 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:20:19] Production.INFO: count ==705 [2025-01-14 23:20:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:20:06 - End Time 2025-01-14 23:20:06 [2025-01-14 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249600', 'tblTempUsageDetail_20' ) start [2025-01-14 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249600', 'tblTempUsageDetail_20' ) end [2025-01-14 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249600', 'tblTempVendorCDR_20' ) start [2025-01-14 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249600', 'tblTempVendorCDR_20' ) end [2025-01-14 23:20:19] Production.INFO: ProcessCDR(1,14249600,1,1,2) [2025-01-14 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249600', 'tblTempUsageDetail_20' ) start [2025-01-14 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249600', 'tblTempUsageDetail_20' ) end [2025-01-14 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:20:22] Production.INFO: ==13888== Releasing lock... [2025-01-14 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:20:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:21:05 [end_date_ymd] => 2025-01-14 23:21:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:21:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:21:18] Production.INFO: count ==697 [2025-01-14 23:21:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:21:05 - End Time 2025-01-14 23:21:05 [2025-01-14 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249605', 'tblTempUsageDetail_20' ) start [2025-01-14 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249605', 'tblTempUsageDetail_20' ) end [2025-01-14 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249605', 'tblTempVendorCDR_20' ) start [2025-01-14 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249605', 'tblTempVendorCDR_20' ) end [2025-01-14 23:21:18] Production.INFO: ProcessCDR(1,14249605,1,1,2) [2025-01-14 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249605', 'tblTempUsageDetail_20' ) start [2025-01-14 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249605', 'tblTempUsageDetail_20' ) end [2025-01-14 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:21:21] Production.INFO: ==13994== Releasing lock... [2025-01-14 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:22:05 [end_date_ymd] => 2025-01-14 23:22:05 [RateCDR] => 1 ) [2025-01-14 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:22:05' and `end` < '2025-01-14 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:22:20] Production.INFO: count ==698 [2025-01-14 23:22:20] Production.ERROR: pbx CDR StartTime 2025-01-14 20:22:05 - End Time 2025-01-14 23:22:05 [2025-01-14 23:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249610', 'tblTempUsageDetail_20' ) start [2025-01-14 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249610', 'tblTempUsageDetail_20' ) end [2025-01-14 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249610', 'tblTempVendorCDR_20' ) start [2025-01-14 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249610', 'tblTempVendorCDR_20' ) end [2025-01-14 23:22:20] Production.INFO: ProcessCDR(1,14249610,1,1,2) [2025-01-14 23:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249610', 'tblTempUsageDetail_20' ) start [2025-01-14 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249610', 'tblTempUsageDetail_20' ) end [2025-01-14 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:22:23] Production.INFO: ==14100== Releasing lock... [2025-01-14 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:22:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:23:05 [end_date_ymd] => 2025-01-14 23:23:05 [RateCDR] => 1 ) [2025-01-14 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:23:05' and `end` < '2025-01-14 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:23:18] Production.INFO: count ==698 [2025-01-14 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:23:05 - End Time 2025-01-14 23:23:05 [2025-01-14 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249615', 'tblTempUsageDetail_20' ) start [2025-01-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249615', 'tblTempUsageDetail_20' ) end [2025-01-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249615', 'tblTempVendorCDR_20' ) start [2025-01-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249615', 'tblTempVendorCDR_20' ) end [2025-01-14 23:23:18] Production.INFO: ProcessCDR(1,14249615,1,1,2) [2025-01-14 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249615', 'tblTempUsageDetail_20' ) start [2025-01-14 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249615', 'tblTempUsageDetail_20' ) end [2025-01-14 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:23:22] Production.INFO: ==14207== Releasing lock... [2025-01-14 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:23:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:24:05 [end_date_ymd] => 2025-01-14 23:24:05 [RateCDR] => 1 ) [2025-01-14 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:24:05' and `end` < '2025-01-14 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:24:18] Production.INFO: count ==697 [2025-01-14 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:24:05 - End Time 2025-01-14 23:24:05 [2025-01-14 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249620', 'tblTempUsageDetail_20' ) start [2025-01-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249620', 'tblTempUsageDetail_20' ) end [2025-01-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249620', 'tblTempVendorCDR_20' ) start [2025-01-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249620', 'tblTempVendorCDR_20' ) end [2025-01-14 23:24:18] Production.INFO: ProcessCDR(1,14249620,1,1,2) [2025-01-14 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249620', 'tblTempUsageDetail_20' ) start [2025-01-14 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249620', 'tblTempUsageDetail_20' ) end [2025-01-14 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:24:22] Production.INFO: ==14308== Releasing lock... [2025-01-14 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:24:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:25:06 [end_date_ymd] => 2025-01-14 23:25:06 [RateCDR] => 1 ) [2025-01-14 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:25:06' and `end` < '2025-01-14 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:25:20] Production.INFO: count ==694 [2025-01-14 23:25:20] Production.ERROR: pbx CDR StartTime 2025-01-14 20:25:06 - End Time 2025-01-14 23:25:06 [2025-01-14 23:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249625', 'tblTempUsageDetail_20' ) start [2025-01-14 23:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249625', 'tblTempUsageDetail_20' ) end [2025-01-14 23:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249625', 'tblTempVendorCDR_20' ) start [2025-01-14 23:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249625', 'tblTempVendorCDR_20' ) end [2025-01-14 23:25:20] Production.INFO: ProcessCDR(1,14249625,1,1,2) [2025-01-14 23:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249625', 'tblTempUsageDetail_20' ) start [2025-01-14 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249625', 'tblTempUsageDetail_20' ) end [2025-01-14 23:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:25:23] Production.INFO: ==14451== Releasing lock... [2025-01-14 23:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:25:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:26:05 [end_date_ymd] => 2025-01-14 23:26:05 [RateCDR] => 1 ) [2025-01-14 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:26:05' and `end` < '2025-01-14 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:26:19] Production.INFO: count ==694 [2025-01-14 23:26:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:26:05 - End Time 2025-01-14 23:26:05 [2025-01-14 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249630', 'tblTempUsageDetail_20' ) start [2025-01-14 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249630', 'tblTempUsageDetail_20' ) end [2025-01-14 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249630', 'tblTempVendorCDR_20' ) start [2025-01-14 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249630', 'tblTempVendorCDR_20' ) end [2025-01-14 23:26:19] Production.INFO: ProcessCDR(1,14249630,1,1,2) [2025-01-14 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249630', 'tblTempUsageDetail_20' ) start [2025-01-14 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249630', 'tblTempUsageDetail_20' ) end [2025-01-14 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:26:23] Production.INFO: ==14553== Releasing lock... [2025-01-14 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:26:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:27:05 [end_date_ymd] => 2025-01-14 23:27:05 [RateCDR] => 1 ) [2025-01-14 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:27:05' and `end` < '2025-01-14 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:27:18] Production.INFO: count ==697 [2025-01-14 23:27:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:27:05 - End Time 2025-01-14 23:27:05 [2025-01-14 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249635', 'tblTempUsageDetail_20' ) start [2025-01-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249635', 'tblTempUsageDetail_20' ) end [2025-01-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249635', 'tblTempVendorCDR_20' ) start [2025-01-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249635', 'tblTempVendorCDR_20' ) end [2025-01-14 23:27:18] Production.INFO: ProcessCDR(1,14249635,1,1,2) [2025-01-14 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249635', 'tblTempUsageDetail_20' ) start [2025-01-14 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249635', 'tblTempUsageDetail_20' ) end [2025-01-14 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:27:21] Production.INFO: ==14654== Releasing lock... [2025-01-14 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:28:05 [end_date_ymd] => 2025-01-14 23:28:05 [RateCDR] => 1 ) [2025-01-14 23:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:28:05' and `end` < '2025-01-14 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:28:20] Production.INFO: count ==697 [2025-01-14 23:28:20] Production.ERROR: pbx CDR StartTime 2025-01-14 20:28:05 - End Time 2025-01-14 23:28:05 [2025-01-14 23:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249640', 'tblTempUsageDetail_20' ) start [2025-01-14 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249640', 'tblTempUsageDetail_20' ) end [2025-01-14 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249640', 'tblTempVendorCDR_20' ) start [2025-01-14 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249640', 'tblTempVendorCDR_20' ) end [2025-01-14 23:28:20] Production.INFO: ProcessCDR(1,14249640,1,1,2) [2025-01-14 23:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249640', 'tblTempUsageDetail_20' ) start [2025-01-14 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249640', 'tblTempUsageDetail_20' ) end [2025-01-14 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:28:23] Production.INFO: ==14756== Releasing lock... [2025-01-14 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:28:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:29:05 [end_date_ymd] => 2025-01-14 23:29:05 [RateCDR] => 1 ) [2025-01-14 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:29:05' and `end` < '2025-01-14 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:29:18] Production.INFO: count ==697 [2025-01-14 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:29:05 - End Time 2025-01-14 23:29:05 [2025-01-14 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249645', 'tblTempUsageDetail_20' ) start [2025-01-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249645', 'tblTempUsageDetail_20' ) end [2025-01-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249645', 'tblTempVendorCDR_20' ) start [2025-01-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249645', 'tblTempVendorCDR_20' ) end [2025-01-14 23:29:18] Production.INFO: ProcessCDR(1,14249645,1,1,2) [2025-01-14 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249645', 'tblTempUsageDetail_20' ) start [2025-01-14 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249645', 'tblTempUsageDetail_20' ) end [2025-01-14 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:29:21] Production.INFO: ==14855== Releasing lock... [2025-01-14 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:30:06 [end_date_ymd] => 2025-01-14 23:30:06 [RateCDR] => 1 ) [2025-01-14 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:30:06' and `end` < '2025-01-14 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:30:18] Production.INFO: count ==704 [2025-01-14 23:30:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:30:06 - End Time 2025-01-14 23:30:06 [2025-01-14 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249651', 'tblTempUsageDetail_20' ) start [2025-01-14 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249651', 'tblTempUsageDetail_20' ) end [2025-01-14 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249651', 'tblTempVendorCDR_20' ) start [2025-01-14 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249651', 'tblTempVendorCDR_20' ) end [2025-01-14 23:30:18] Production.INFO: ProcessCDR(1,14249651,1,1,2) [2025-01-14 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249651', 'tblTempUsageDetail_20' ) start [2025-01-14 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249651', 'tblTempUsageDetail_20' ) end [2025-01-14 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:30:23] Production.INFO: ==14928== Releasing lock... [2025-01-14 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:30:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-14 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:31:05 [end_date_ymd] => 2025-01-14 23:31:05 [RateCDR] => 1 ) [2025-01-14 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:31:05' and `end` < '2025-01-14 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:31:18] Production.INFO: count ==679 [2025-01-14 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:31:05 - End Time 2025-01-14 23:31:05 [2025-01-14 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249656', 'tblTempUsageDetail_20' ) start [2025-01-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249656', 'tblTempUsageDetail_20' ) end [2025-01-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249656', 'tblTempVendorCDR_20' ) start [2025-01-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249656', 'tblTempVendorCDR_20' ) end [2025-01-14 23:31:18] Production.INFO: ProcessCDR(1,14249656,1,1,2) [2025-01-14 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249656', 'tblTempUsageDetail_20' ) start [2025-01-14 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249656', 'tblTempUsageDetail_20' ) end [2025-01-14 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:31:22] Production.INFO: ==14999== Releasing lock... [2025-01-14 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:31:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:32:04 [end_date_ymd] => 2025-01-14 23:32:04 [RateCDR] => 1 ) [2025-01-14 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:32:04' and `end` < '2025-01-14 23:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:32:18] Production.INFO: count ==676 [2025-01-14 23:32:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:32:04 - End Time 2025-01-14 23:32:04 [2025-01-14 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249661', 'tblTempUsageDetail_20' ) start [2025-01-14 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249661', 'tblTempUsageDetail_20' ) end [2025-01-14 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249661', 'tblTempVendorCDR_20' ) start [2025-01-14 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249661', 'tblTempVendorCDR_20' ) end [2025-01-14 23:32:18] Production.INFO: ProcessCDR(1,14249661,1,1,2) [2025-01-14 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249661', 'tblTempUsageDetail_20' ) start [2025-01-14 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249661', 'tblTempUsageDetail_20' ) end [2025-01-14 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:32:22] Production.INFO: ==15070== Releasing lock... [2025-01-14 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:32:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:33:05 [end_date_ymd] => 2025-01-14 23:33:05 [RateCDR] => 1 ) [2025-01-14 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:33:05' and `end` < '2025-01-14 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:33:17] Production.INFO: count ==675 [2025-01-14 23:33:17] Production.ERROR: pbx CDR StartTime 2025-01-14 20:33:05 - End Time 2025-01-14 23:33:05 [2025-01-14 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249666', 'tblTempUsageDetail_20' ) start [2025-01-14 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249666', 'tblTempUsageDetail_20' ) end [2025-01-14 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249666', 'tblTempVendorCDR_20' ) start [2025-01-14 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249666', 'tblTempVendorCDR_20' ) end [2025-01-14 23:33:17] Production.INFO: ProcessCDR(1,14249666,1,1,2) [2025-01-14 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249666', 'tblTempUsageDetail_20' ) start [2025-01-14 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249666', 'tblTempUsageDetail_20' ) end [2025-01-14 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:33:21] Production.INFO: ==15141== Releasing lock... [2025-01-14 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:34:05 [end_date_ymd] => 2025-01-14 23:34:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:34:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:34:19] Production.INFO: count ==673 [2025-01-14 23:34:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:34:05 - End Time 2025-01-14 23:34:05 [2025-01-14 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249671', 'tblTempUsageDetail_20' ) start [2025-01-14 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249671', 'tblTempUsageDetail_20' ) end [2025-01-14 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249671', 'tblTempVendorCDR_20' ) start [2025-01-14 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249671', 'tblTempVendorCDR_20' ) end [2025-01-14 23:34:19] Production.INFO: ProcessCDR(1,14249671,1,1,2) [2025-01-14 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249671', 'tblTempUsageDetail_20' ) start [2025-01-14 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249671', 'tblTempUsageDetail_20' ) end [2025-01-14 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:34:22] Production.INFO: ==15213== Releasing lock... [2025-01-14 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:35:05 [end_date_ymd] => 2025-01-14 23:35:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:35:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:35:17] Production.INFO: count ==671 [2025-01-14 23:35:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:35:05 - End Time 2025-01-14 23:35:05 [2025-01-14 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249676', 'tblTempUsageDetail_20' ) start [2025-01-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249676', 'tblTempUsageDetail_20' ) end [2025-01-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249676', 'tblTempVendorCDR_20' ) start [2025-01-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249676', 'tblTempVendorCDR_20' ) end [2025-01-14 23:35:18] Production.INFO: ProcessCDR(1,14249676,1,1,2) [2025-01-14 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249676', 'tblTempUsageDetail_20' ) start [2025-01-14 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249676', 'tblTempUsageDetail_20' ) end [2025-01-14 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:35:21] Production.INFO: ==15286== Releasing lock... [2025-01-14 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:36:05 [end_date_ymd] => 2025-01-14 23:36:05 [RateCDR] => 1 ) [2025-01-14 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:36:05' and `end` < '2025-01-14 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:36:18] Production.INFO: count ==669 [2025-01-14 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:36:05 - End Time 2025-01-14 23:36:05 [2025-01-14 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249681', 'tblTempUsageDetail_20' ) start [2025-01-14 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249681', 'tblTempUsageDetail_20' ) end [2025-01-14 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249681', 'tblTempVendorCDR_20' ) start [2025-01-14 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249681', 'tblTempVendorCDR_20' ) end [2025-01-14 23:36:18] Production.INFO: ProcessCDR(1,14249681,1,1,2) [2025-01-14 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249681', 'tblTempUsageDetail_20' ) start [2025-01-14 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249681', 'tblTempUsageDetail_20' ) end [2025-01-14 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:36:22] Production.INFO: ==15359== Releasing lock... [2025-01-14 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-14 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:37:05 [end_date_ymd] => 2025-01-14 23:37:05 [RateCDR] => 1 ) [2025-01-14 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:37:05' and `end` < '2025-01-14 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:37:19] Production.INFO: count ==655 [2025-01-14 23:37:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:37:05 - End Time 2025-01-14 23:37:05 [2025-01-14 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249686', 'tblTempUsageDetail_20' ) start [2025-01-14 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249686', 'tblTempUsageDetail_20' ) end [2025-01-14 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249686', 'tblTempVendorCDR_20' ) start [2025-01-14 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249686', 'tblTempVendorCDR_20' ) end [2025-01-14 23:37:19] Production.INFO: ProcessCDR(1,14249686,1,1,2) [2025-01-14 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249686', 'tblTempUsageDetail_20' ) start [2025-01-14 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249686', 'tblTempUsageDetail_20' ) end [2025-01-14 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:37:23] Production.INFO: ==15430== Releasing lock... [2025-01-14 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:37:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:38:05 [end_date_ymd] => 2025-01-14 23:38:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:38:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:38:17] Production.INFO: count ==655 [2025-01-14 23:38:17] Production.ERROR: pbx CDR StartTime 2025-01-14 20:38:05 - End Time 2025-01-14 23:38:05 [2025-01-14 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249691', 'tblTempUsageDetail_20' ) start [2025-01-14 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249691', 'tblTempUsageDetail_20' ) end [2025-01-14 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249691', 'tblTempVendorCDR_20' ) start [2025-01-14 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249691', 'tblTempVendorCDR_20' ) end [2025-01-14 23:38:17] Production.INFO: ProcessCDR(1,14249691,1,1,2) [2025-01-14 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249691', 'tblTempUsageDetail_20' ) start [2025-01-14 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249691', 'tblTempUsageDetail_20' ) end [2025-01-14 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:38:21] Production.INFO: ==15499== Releasing lock... [2025-01-14 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:38:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:39:05 [end_date_ymd] => 2025-01-14 23:39:05 [RateCDR] => 1 ) [2025-01-14 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:39:05' and `end` < '2025-01-14 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:39:18] Production.INFO: count ==661 [2025-01-14 23:39:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:39:05 - End Time 2025-01-14 23:39:05 [2025-01-14 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249696', 'tblTempUsageDetail_20' ) start [2025-01-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249696', 'tblTempUsageDetail_20' ) end [2025-01-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249696', 'tblTempVendorCDR_20' ) start [2025-01-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249696', 'tblTempVendorCDR_20' ) end [2025-01-14 23:39:18] Production.INFO: ProcessCDR(1,14249696,1,1,2) [2025-01-14 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249696', 'tblTempUsageDetail_20' ) start [2025-01-14 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249696', 'tblTempUsageDetail_20' ) end [2025-01-14 23:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:39:23] Production.INFO: ==15573== Releasing lock... [2025-01-14 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:39:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:40:06 [end_date_ymd] => 2025-01-14 23:40:06 [RateCDR] => 1 ) [2025-01-14 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:40:06' and `end` < '2025-01-14 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:40:19] Production.INFO: count ==660 [2025-01-14 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:40:06 - End Time 2025-01-14 23:40:06 [2025-01-14 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249702', 'tblTempUsageDetail_20' ) start [2025-01-14 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249702', 'tblTempUsageDetail_20' ) end [2025-01-14 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249702', 'tblTempVendorCDR_20' ) start [2025-01-14 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249702', 'tblTempVendorCDR_20' ) end [2025-01-14 23:40:20] Production.INFO: ProcessCDR(1,14249702,1,1,2) [2025-01-14 23:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249702', 'tblTempUsageDetail_20' ) start [2025-01-14 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249702', 'tblTempUsageDetail_20' ) end [2025-01-14 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:40:23] Production.INFO: ==15647== Releasing lock... [2025-01-14 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:40:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:41:05 [end_date_ymd] => 2025-01-14 23:41:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:41:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:41:18] Production.INFO: count ==638 [2025-01-14 23:41:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:41:05 - End Time 2025-01-14 23:41:05 [2025-01-14 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249707', 'tblTempUsageDetail_20' ) start [2025-01-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249707', 'tblTempUsageDetail_20' ) end [2025-01-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249707', 'tblTempVendorCDR_20' ) start [2025-01-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249707', 'tblTempVendorCDR_20' ) end [2025-01-14 23:41:18] Production.INFO: ProcessCDR(1,14249707,1,1,2) [2025-01-14 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249707', 'tblTempUsageDetail_20' ) start [2025-01-14 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249707', 'tblTempUsageDetail_20' ) end [2025-01-14 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:41:21] Production.INFO: ==15761== Releasing lock... [2025-01-14 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:41:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:42:05 [end_date_ymd] => 2025-01-14 23:42:05 [RateCDR] => 1 ) [2025-01-14 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:42:05' and `end` < '2025-01-14 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:42:17] Production.INFO: count ==637 [2025-01-14 23:42:17] Production.ERROR: pbx CDR StartTime 2025-01-14 20:42:05 - End Time 2025-01-14 23:42:05 [2025-01-14 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249712', 'tblTempUsageDetail_20' ) start [2025-01-14 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249712', 'tblTempUsageDetail_20' ) end [2025-01-14 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249712', 'tblTempVendorCDR_20' ) start [2025-01-14 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249712', 'tblTempVendorCDR_20' ) end [2025-01-14 23:42:17] Production.INFO: ProcessCDR(1,14249712,1,1,2) [2025-01-14 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249712', 'tblTempUsageDetail_20' ) start [2025-01-14 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249712', 'tblTempUsageDetail_20' ) end [2025-01-14 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:42:21] Production.INFO: ==15831== Releasing lock... [2025-01-14 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:43:05 [end_date_ymd] => 2025-01-14 23:43:05 [RateCDR] => 1 ) [2025-01-14 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:43:05' and `end` < '2025-01-14 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:43:19] Production.INFO: count ==637 [2025-01-14 23:43:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:43:05 - End Time 2025-01-14 23:43:05 [2025-01-14 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249717', 'tblTempUsageDetail_20' ) start [2025-01-14 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249717', 'tblTempUsageDetail_20' ) end [2025-01-14 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249717', 'tblTempVendorCDR_20' ) start [2025-01-14 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249717', 'tblTempVendorCDR_20' ) end [2025-01-14 23:43:19] Production.INFO: ProcessCDR(1,14249717,1,1,2) [2025-01-14 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249717', 'tblTempUsageDetail_20' ) start [2025-01-14 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249717', 'tblTempUsageDetail_20' ) end [2025-01-14 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:43:23] Production.INFO: ==15902== Releasing lock... [2025-01-14 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:43:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:44:05 [end_date_ymd] => 2025-01-14 23:44:05 [RateCDR] => 1 ) [2025-01-14 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:44:05' and `end` < '2025-01-14 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:44:18] Production.INFO: count ==637 [2025-01-14 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:44:05 - End Time 2025-01-14 23:44:05 [2025-01-14 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249722', 'tblTempUsageDetail_20' ) start [2025-01-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249722', 'tblTempUsageDetail_20' ) end [2025-01-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249722', 'tblTempVendorCDR_20' ) start [2025-01-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249722', 'tblTempVendorCDR_20' ) end [2025-01-14 23:44:18] Production.INFO: ProcessCDR(1,14249722,1,1,2) [2025-01-14 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249722', 'tblTempUsageDetail_20' ) start [2025-01-14 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249722', 'tblTempUsageDetail_20' ) end [2025-01-14 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:44:21] Production.INFO: ==15978== Releasing lock... [2025-01-14 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:44:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:45:04 [end_date_ymd] => 2025-01-14 23:45:04 [RateCDR] => 1 ) [2025-01-14 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:45:04' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:45:17] Production.INFO: count ==637 [2025-01-14 23:45:17] Production.ERROR: pbx CDR StartTime 2025-01-14 20:45:04 - End Time 2025-01-14 23:45:04 [2025-01-14 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249727', 'tblTempUsageDetail_20' ) start [2025-01-14 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249727', 'tblTempUsageDetail_20' ) end [2025-01-14 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249727', 'tblTempVendorCDR_20' ) start [2025-01-14 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249727', 'tblTempVendorCDR_20' ) end [2025-01-14 23:45:17] Production.INFO: ProcessCDR(1,14249727,1,1,2) [2025-01-14 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249727', 'tblTempUsageDetail_20' ) start [2025-01-14 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249727', 'tblTempUsageDetail_20' ) end [2025-01-14 23:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:45:20] Production.INFO: ==16055== Releasing lock... [2025-01-14 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:45:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:46:06 [end_date_ymd] => 2025-01-14 23:46:06 [RateCDR] => 1 ) [2025-01-14 23:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:46:06' and `end` < '2025-01-14 23:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:46:20] Production.INFO: count ==637 [2025-01-14 23:46:20] Production.ERROR: pbx CDR StartTime 2025-01-14 20:46:06 - End Time 2025-01-14 23:46:06 [2025-01-14 23:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249732', 'tblTempUsageDetail_20' ) start [2025-01-14 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249732', 'tblTempUsageDetail_20' ) end [2025-01-14 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249732', 'tblTempVendorCDR_20' ) start [2025-01-14 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249732', 'tblTempVendorCDR_20' ) end [2025-01-14 23:46:20] Production.INFO: ProcessCDR(1,14249732,1,1,2) [2025-01-14 23:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249732', 'tblTempUsageDetail_20' ) start [2025-01-14 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249732', 'tblTempUsageDetail_20' ) end [2025-01-14 23:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:46:23] Production.INFO: ==16132== Releasing lock... [2025-01-14 23:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:46:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:47:05 [end_date_ymd] => 2025-01-14 23:47:05 [RateCDR] => 1 ) [2025-01-14 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:47:05' and `end` < '2025-01-14 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:47:18] Production.INFO: count ==637 [2025-01-14 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:47:05 - End Time 2025-01-14 23:47:05 [2025-01-14 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249737', 'tblTempUsageDetail_20' ) start [2025-01-14 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249737', 'tblTempUsageDetail_20' ) end [2025-01-14 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249737', 'tblTempVendorCDR_20' ) start [2025-01-14 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249737', 'tblTempVendorCDR_20' ) end [2025-01-14 23:47:18] Production.INFO: ProcessCDR(1,14249737,1,1,2) [2025-01-14 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249737', 'tblTempUsageDetail_20' ) start [2025-01-14 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249737', 'tblTempUsageDetail_20' ) end [2025-01-14 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:47:21] Production.INFO: ==16209== Releasing lock... [2025-01-14 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:47:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:48:06 [end_date_ymd] => 2025-01-14 23:48:06 [RateCDR] => 1 ) [2025-01-14 23:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:48:06' and `end` < '2025-01-14 23:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:48:19] Production.INFO: count ==637 [2025-01-14 23:48:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:48:06 - End Time 2025-01-14 23:48:06 [2025-01-14 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249742', 'tblTempUsageDetail_20' ) start [2025-01-14 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249742', 'tblTempUsageDetail_20' ) end [2025-01-14 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249742', 'tblTempVendorCDR_20' ) start [2025-01-14 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249742', 'tblTempVendorCDR_20' ) end [2025-01-14 23:48:19] Production.INFO: ProcessCDR(1,14249742,1,1,2) [2025-01-14 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249742', 'tblTempUsageDetail_20' ) start [2025-01-14 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249742', 'tblTempUsageDetail_20' ) end [2025-01-14 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:48:23] Production.INFO: ==16286== Releasing lock... [2025-01-14 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:48:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:49:05 [end_date_ymd] => 2025-01-14 23:49:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:49:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:49:19] Production.INFO: count ==636 [2025-01-14 23:49:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:49:05 - End Time 2025-01-14 23:49:05 [2025-01-14 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249747', 'tblTempUsageDetail_20' ) start [2025-01-14 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249747', 'tblTempUsageDetail_20' ) end [2025-01-14 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249747', 'tblTempVendorCDR_20' ) start [2025-01-14 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249747', 'tblTempVendorCDR_20' ) end [2025-01-14 23:49:19] Production.INFO: ProcessCDR(1,14249747,1,1,2) [2025-01-14 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249747', 'tblTempUsageDetail_20' ) start [2025-01-14 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249747', 'tblTempUsageDetail_20' ) end [2025-01-14 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:49:22] Production.INFO: ==16366== Releasing lock... [2025-01-14 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:49:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-14 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:50:05 [end_date_ymd] => 2025-01-14 23:50:05 [RateCDR] => 1 ) [2025-01-14 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:50:05' and `end` < '2025-01-14 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:50:18] Production.INFO: count ==634 [2025-01-14 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:50:05 - End Time 2025-01-14 23:50:05 [2025-01-14 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249753', 'tblTempUsageDetail_20' ) start [2025-01-14 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249753', 'tblTempUsageDetail_20' ) end [2025-01-14 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249753', 'tblTempVendorCDR_20' ) start [2025-01-14 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249753', 'tblTempVendorCDR_20' ) end [2025-01-14 23:50:18] Production.INFO: ProcessCDR(1,14249753,1,1,2) [2025-01-14 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249753', 'tblTempUsageDetail_20' ) start [2025-01-14 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249753', 'tblTempUsageDetail_20' ) end [2025-01-14 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:50:21] Production.INFO: ==16448== Releasing lock... [2025-01-14 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:50:21] Production.INFO: 32 MB #Memory Used# [2025-01-14 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:51:05 [end_date_ymd] => 2025-01-14 23:51:05 [RateCDR] => 1 ) [2025-01-14 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:51:05' and `end` < '2025-01-14 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:51:18] Production.INFO: count ==624 [2025-01-14 23:51:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:51:05 - End Time 2025-01-14 23:51:05 [2025-01-14 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249758', 'tblTempUsageDetail_20' ) start [2025-01-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249758', 'tblTempUsageDetail_20' ) end [2025-01-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249758', 'tblTempVendorCDR_20' ) start [2025-01-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249758', 'tblTempVendorCDR_20' ) end [2025-01-14 23:51:18] Production.INFO: ProcessCDR(1,14249758,1,1,2) [2025-01-14 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249758', 'tblTempUsageDetail_20' ) start [2025-01-14 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249758', 'tblTempUsageDetail_20' ) end [2025-01-14 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:51:22] Production.INFO: ==16532== Releasing lock... [2025-01-14 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:51:22] Production.INFO: 32 MB #Memory Used# [2025-01-14 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:52:05 [end_date_ymd] => 2025-01-14 23:52:05 [RateCDR] => 1 ) [2025-01-14 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:52:05' and `end` < '2025-01-14 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:52:18] Production.INFO: count ==624 [2025-01-14 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:52:05 - End Time 2025-01-14 23:52:05 [2025-01-14 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249763', 'tblTempUsageDetail_20' ) start [2025-01-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249763', 'tblTempUsageDetail_20' ) end [2025-01-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249763', 'tblTempVendorCDR_20' ) start [2025-01-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249763', 'tblTempVendorCDR_20' ) end [2025-01-14 23:52:18] Production.INFO: ProcessCDR(1,14249763,1,1,2) [2025-01-14 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249763', 'tblTempUsageDetail_20' ) start [2025-01-14 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249763', 'tblTempUsageDetail_20' ) end [2025-01-14 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:52:21] Production.INFO: ==16618== Releasing lock... [2025-01-14 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:52:21] Production.INFO: 32 MB #Memory Used# [2025-01-14 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:53:05 [end_date_ymd] => 2025-01-14 23:53:05 [RateCDR] => 1 ) [2025-01-14 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:53:05' and `end` < '2025-01-14 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:53:17] Production.INFO: count ==624 [2025-01-14 23:53:17] Production.ERROR: pbx CDR StartTime 2025-01-14 20:53:05 - End Time 2025-01-14 23:53:05 [2025-01-14 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249767', 'tblTempUsageDetail_20' ) start [2025-01-14 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249767', 'tblTempUsageDetail_20' ) end [2025-01-14 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249767', 'tblTempVendorCDR_20' ) start [2025-01-14 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249767', 'tblTempVendorCDR_20' ) end [2025-01-14 23:53:17] Production.INFO: ProcessCDR(1,14249767,1,1,2) [2025-01-14 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249767', 'tblTempUsageDetail_20' ) start [2025-01-14 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249767', 'tblTempUsageDetail_20' ) end [2025-01-14 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:53:22] Production.INFO: ==16706== Releasing lock... [2025-01-14 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:53:22] Production.INFO: 32 MB #Memory Used# [2025-01-14 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:54:05 [end_date_ymd] => 2025-01-14 23:54:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:54:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:54:18] Production.INFO: count ==624 [2025-01-14 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:54:05 - End Time 2025-01-14 23:54:05 [2025-01-14 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249773', 'tblTempUsageDetail_20' ) start [2025-01-14 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249773', 'tblTempUsageDetail_20' ) end [2025-01-14 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249773', 'tblTempVendorCDR_20' ) start [2025-01-14 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249773', 'tblTempVendorCDR_20' ) end [2025-01-14 23:54:19] Production.INFO: ProcessCDR(1,14249773,1,1,2) [2025-01-14 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249773', 'tblTempUsageDetail_20' ) start [2025-01-14 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249773', 'tblTempUsageDetail_20' ) end [2025-01-14 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:54:22] Production.INFO: ==16795== Releasing lock... [2025-01-14 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:54:22] Production.INFO: 32 MB #Memory Used# [2025-01-14 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:55:05 [end_date_ymd] => 2025-01-14 23:55:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:55:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:55:18] Production.INFO: count ==624 [2025-01-14 23:55:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:55:05 - End Time 2025-01-14 23:55:05 [2025-01-14 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249778', 'tblTempUsageDetail_20' ) start [2025-01-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249778', 'tblTempUsageDetail_20' ) end [2025-01-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249778', 'tblTempVendorCDR_20' ) start [2025-01-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249778', 'tblTempVendorCDR_20' ) end [2025-01-14 23:55:18] Production.INFO: ProcessCDR(1,14249778,1,1,2) [2025-01-14 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249778', 'tblTempUsageDetail_20' ) start [2025-01-14 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249778', 'tblTempUsageDetail_20' ) end [2025-01-14 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:55:21] Production.INFO: ==16877== Releasing lock... [2025-01-14 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:55:21] Production.INFO: 32 MB #Memory Used# [2025-01-14 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:56:06 [end_date_ymd] => 2025-01-14 23:56:06 [RateCDR] => 1 ) [2025-01-14 23:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:56:06' and `end` < '2025-01-14 23:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:56:19] Production.INFO: count ==624 [2025-01-14 23:56:19] Production.ERROR: pbx CDR StartTime 2025-01-14 20:56:06 - End Time 2025-01-14 23:56:06 [2025-01-14 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249783', 'tblTempUsageDetail_20' ) start [2025-01-14 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249783', 'tblTempUsageDetail_20' ) end [2025-01-14 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249783', 'tblTempVendorCDR_20' ) start [2025-01-14 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249783', 'tblTempVendorCDR_20' ) end [2025-01-14 23:56:19] Production.INFO: ProcessCDR(1,14249783,1,1,2) [2025-01-14 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249783', 'tblTempUsageDetail_20' ) start [2025-01-14 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249783', 'tblTempUsageDetail_20' ) end [2025-01-14 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:56:22] Production.INFO: ==16965== Releasing lock... [2025-01-14 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:56:22] Production.INFO: 32 MB #Memory Used# [2025-01-14 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:57:05 [end_date_ymd] => 2025-01-14 23:57:05 [RateCDR] => 1 ) [2025-01-14 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:57:05' and `end` < '2025-01-14 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:57:17] Production.INFO: count ==624 [2025-01-14 23:57:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:57:05 - End Time 2025-01-14 23:57:05 [2025-01-14 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249788', 'tblTempUsageDetail_20' ) start [2025-01-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249788', 'tblTempUsageDetail_20' ) end [2025-01-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249788', 'tblTempVendorCDR_20' ) start [2025-01-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249788', 'tblTempVendorCDR_20' ) end [2025-01-14 23:57:18] Production.INFO: ProcessCDR(1,14249788,1,1,2) [2025-01-14 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249788', 'tblTempUsageDetail_20' ) start [2025-01-14 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249788', 'tblTempUsageDetail_20' ) end [2025-01-14 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:57:21] Production.INFO: ==17090== Releasing lock... [2025-01-14 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:57:21] Production.INFO: 32 MB #Memory Used# [2025-01-14 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:58:05 [end_date_ymd] => 2025-01-14 23:58:05 [RateCDR] => 1 ) [2025-01-14 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` >= '2025-01-14 20:58:05' and `end` < '2025-01-14 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 ,'') [2025-01-14 23:58:20] Production.INFO: count ==618 [2025-01-14 23:58:20] Production.ERROR: pbx CDR StartTime 2025-01-14 20:58:05 - End Time 2025-01-14 23:58:05 [2025-01-14 23:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249793', 'tblTempUsageDetail_20' ) start [2025-01-14 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249793', 'tblTempUsageDetail_20' ) end [2025-01-14 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249793', 'tblTempVendorCDR_20' ) start [2025-01-14 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249793', 'tblTempVendorCDR_20' ) end [2025-01-14 23:58:20] Production.INFO: ProcessCDR(1,14249793,1,1,2) [2025-01-14 23:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249793', 'tblTempUsageDetail_20' ) start [2025-01-14 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249793', 'tblTempUsageDetail_20' ) end [2025-01-14 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:58:23] Production.INFO: ==17180== Releasing lock... [2025-01-14 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:58:23] Production.INFO: 32 MB #Memory Used# [2025-01-14 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-14 20:59:05 [end_date_ymd] => 2025-01-14 23:59:05 [RateCDR] => 1 ) [2025-01-14 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-14 20:59:05' and `end` < '2025-01-14 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-14 23:59:18] Production.INFO: count ==615 [2025-01-14 23:59:18] Production.ERROR: pbx CDR StartTime 2025-01-14 20:59:05 - End Time 2025-01-14 23:59:05 [2025-01-14 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249798', 'tblTempUsageDetail_20' ) start [2025-01-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14249798', 'tblTempUsageDetail_20' ) end [2025-01-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249798', 'tblTempVendorCDR_20' ) start [2025-01-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14249798', 'tblTempVendorCDR_20' ) end [2025-01-14 23:59:18] Production.INFO: ProcessCDR(1,14249798,1,1,2) [2025-01-14 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14249798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14249798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-14 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14249798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14249798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-14 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249798', 'tblTempUsageDetail_20' ) start [2025-01-14 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14249798', 'tblTempUsageDetail_20' ) end [2025-01-14 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-14 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-14 23:59:21] Production.INFO: ==17266== Releasing lock... [2025-01-14 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-14 23:59:21] Production.INFO: 32 MB #Memory Used#